Repository navigation
fix: ignore format literal source availability in stable hashes - #166377
Merged
rust-bors[bot] merged 1 commit intoNov 27, 2026
Merged
Conversation
This comment has been minimized.
This comment has been minimized.
rust-cloud-vms
Bot
force-pushed
the
fix-svh-rust-src-153898-clean
branch
from
November 23, 2026 09:53
9476d23 to
9710d00
Compare
JonathanBrouwer
requested changes
Nov 23, 2026
rust-cloud-vms
Bot
force-pushed
the
fix-svh-rust-src-153898-clean
branch
from
November 23, 2026 12:03
9710d00 to
bc2da2c
Compare
Collaborator
|
Some changes occurred in compiler/rustc_ast_lowering/src/format.rs cc @m-ou-se |
Member
Author
|
@rustbot ready!! |
Member
|
@rustbot reroll |
Contributor
|
Stable hashing is tricky and I don't know this place very well. I'm going to guess based on the area.. r? petrochenkov |
Contributor
|
I dislike the whole chain of PRs leading to this issue, source map (besides the currently compiled crate) shouldn't participate in anything that may end up in the compiled binaries. |
Contributor
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Nov 27, 2026
…3898-clean, r=petrochenkov fix: ignore format literal source availability in stable hashes fixes [rust-lang#153898](rust-lang#153898). installing rust-src could change a crate's strict version hash (SVH) due to source-dependent format-string desugaring. this change excludes the diagnostic-only FormatLiteral.source field from stable hashing while preserving diagnostic behavior. adds a regression test covering unimplemented!, todo!, unreachable!, and generic functions. verifies metadata with and without rust-src using identical compiler flags. r? compiler
rust-bors Bot
pushed a commit
that referenced
this pull request
Nov 27, 2026
…uwer Rollup of 9 pull requests Successful merges: - #163895 (Stabilize `--remap-path-scope` in rustdoc and the `documentation` scope) - #163910 (debugger: stabilize trim-paths unremap file loading) - #166175 (Use `__fastfail()` for `crash()` on Windows) - #166377 (fix: ignore format literal source availability in stable hashes) - #166510 (add c-variadic support for `x87_f80`) - #166650 (Don't round the number of bits passed to `{Size,Align}::from_bits`) - #161531 (Remove `T: Send + Sync` bound from `Arc::downcast`) - #166641 (fix: bootstrap build directory handling with --set) - #166655 (Submodule update of rustc-perf)
rust-bors Bot
pushed a commit
that referenced
this pull request
Nov 27, 2026
…uwer Rollup of 9 pull requests Successful merges: - #163895 (Stabilize `--remap-path-scope` in rustdoc and the `documentation` scope) - #163910 (debugger: stabilize trim-paths unremap file loading) - #166377 (fix: ignore format literal source availability in stable hashes) - #166510 (add c-variadic support for `x87_f80`) - #166631 (Remove `fn terminator()` and `terminator_mut()`) - #166650 (Don't round the number of bits passed to `{Size,Align}::from_bits`) - #161531 (Remove `T: Send + Sync` bound from `Arc::downcast`) - #166641 (fix: bootstrap build directory handling with --set) - #166655 (Submodule update of rustc-perf)
rust-bors Bot
pushed a commit
that referenced
this pull request
Nov 27, 2026
Rollup merge of #166377 - paradoxicalguy:fix-svh-rust-src-153898-clean, r=petrochenkov fix: ignore format literal source availability in stable hashes fixes [#153898](#153898). installing rust-src could change a crate's strict version hash (SVH) due to source-dependent format-string desugaring. this change excludes the diagnostic-only FormatLiteral.source field from stable hashing while preserving diagnostic behavior. adds a regression test covering unimplemented!, todo!, unreachable!, and generic functions. verifies metadata with and without rust-src using identical compiler flags. r? compiler
mehmettoplu-rs
pushed a commit
to mehmettoplu-rs/miri
that referenced
this pull request
Nov 28, 2026
…uwer Rollup of 9 pull requests Successful merges: - rust-lang/rust#163895 (Stabilize `--remap-path-scope` in rustdoc and the `documentation` scope) - rust-lang/rust#163910 (debugger: stabilize trim-paths unremap file loading) - rust-lang/rust#166377 (fix: ignore format literal source availability in stable hashes) - rust-lang/rust#166510 (add c-variadic support for `x87_f80`) - rust-lang/rust#166631 (Remove `fn terminator()` and `terminator_mut()`) - rust-lang/rust#166650 (Don't round the number of bits passed to `{Size,Align}::from_bits`) - rust-lang/rust#161531 (Remove `T: Send + Sync` bound from `Arc::downcast`) - rust-lang/rust#166641 (fix: bootstrap build directory handling with --set) - rust-lang/rust#166655 (Submodule update of rustc-perf)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes #153898.
installing rust-src could change a crate's strict version hash (SVH) due to source-dependent format-string desugaring.
this change excludes the diagnostic-only FormatLiteral.source field from stable hashing while preserving diagnostic behavior.
adds a regression test covering unimplemented!, todo!, unreachable!, and generic functions.
verifies metadata with and without rust-src using identical compiler flags.
r? compiler