You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(rust): Display string pin credits a changed format placeholder #9836
Found by a read-only review of #9682 (comment 6351427568). changes_only_string_literals in classify/related_tests/fmt_dispatch.rs strips string-literal contents and compares the rest, so any edit inside the format string counts as a literal-text change, including the {..} placeholders themselves.
Repro
write!(f, "{}°C", self.0) pinned by assert_eq!(Temp(21).to_string(), "21°C"):
"{}°C" to "{:?}°C" prints 21°C for an integer; the pin still passes.
"{}" to "{0}", "{:}" or "{:<1}" (width no wider than the value) print the same for the chosen value.
{{ / }} escape edits can cancel on a value that has no braces.
The tail is credited exposed where a mutant survives. Narrow, but it is the false-credit direction we fail closed on.
Goal it hurts
Trustworthy verdicts: no false exposed. The idiom-display-string-pin row is unaffected, so no existing corpus row catches this.
Fix
Treat a changed string as literal-only only when the edit leaves the ordered list of {..} placeholder groups identical after unescaping {{ / }}. Negatives: "{}°C" to "{:?}°C", to "{0}°C", and a {{ escape edit stay weakly_exposed; positive: only the °C text changes.
Activity
Parse placeholders only in the format template; add a production-verd…
Merge main into #9836 branch
Merge main (#10480 took 1.110/0.117) into #9836 branch; bump cache to…
Merge main into #9836 branch
Merge main into #9836 branch
Merge main into #9836 branch; keep both honesty-corpus entries
Keep literal-only credit beside brace fill characters (#9836 follow-up)
Compare format groups and fixed fragments by source; keep spelling-on…
Merge main into #9836 branch
Merge main into #9836 branch; keep both Display honesty rows
fix: drop dead fragment guard; name nested-argument width/precision g…
Merge origin/main; bump classified cache to 1.114 / 0.121; name the f…
test: rebless display placeholder goldens for main's repair-route wor…
Merge origin/main; bump classified cache to 1.115 / 0.122 past #10784 (…
Merge origin/main; renumber cache to 1.120 / 0.127 past #8610 line (#…
Merge origin/main (#9836)
Merge origin/main (#10647 took 1.120/0.127) (#9836)
fix(rust): re-bless display fixture human output, bump cache to 1.121…
fix(rust): a changed format placeholder is not a literal-only edit (#…
Merge origin/main; re-bump cache to 1.122/0.129 past #9836 (#10684)