diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-06-24 20:46:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-24 20:46:06 +0200 |
| commit | 4488018ef89d4a3015ba266bb1eada1b607ec176 (patch) | |
| tree | 4e084d65af470aba7a3d3b773ff22268e0540307 /compiler/rustc_expand/src/errors.rs | |
| parent | a73954c229fb373bebcfc37263c65f60a651b262 (diff) | |
| parent | db11e747230caa23aad3f159e42dc3b47baf7557 (diff) | |
| download | rust-4488018ef89d4a3015ba266bb1eada1b607ec176.tar.gz rust-4488018ef89d4a3015ba266bb1eada1b607ec176.zip | |
Rollup merge of #142943 - jieyouxu:no-rustc-version, r=compiler-errors
Don't include current rustc version string in feature removed help The version string is difficult to properly normalize out, and removing it isn't a huge deal (the user can query version info easily through `rustc --version` or `cargo --version`). The normalization options were all non-ideal (see https://github.com/rust-lang/rust/pull/142940#issuecomment-2998518450): - Per-test version string normalization is nasty to maintain, and we need to maintain `n` copies of it. See rust-lang/rust#142930 where the regex wasn't robust against different release channels. - Centralized compiletest normalization (with a directive opt-out) is also not ideal, because `cfg(version(..))` tests can't have those accidentally normalized out (and you'd have to remember to opt-out). r? `@workingjubilee` (discussed in rust-lang/rust#142940)
Diffstat (limited to 'compiler/rustc_expand/src/errors.rs')
| -rw-r--r-- | compiler/rustc_expand/src/errors.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/rustc_expand/src/errors.rs b/compiler/rustc_expand/src/errors.rs index 4167be93e7b..fe4d2af97a0 100644 --- a/compiler/rustc_expand/src/errors.rs +++ b/compiler/rustc_expand/src/errors.rs @@ -162,7 +162,6 @@ pub(crate) struct FeatureRemoved<'a> { #[subdiagnostic] pub reason: Option<FeatureRemovedReason<'a>>, pub removed_rustc_version: &'a str, - pub current_rustc_version: &'a str, pub pull_note: String, } |
