diff options
Diffstat (limited to 'compiler/rustc_session/src/parse.rs')
| -rw-r--r-- | compiler/rustc_session/src/parse.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/rustc_session/src/parse.rs b/compiler/rustc_session/src/parse.rs index 36bbccf1b90..6f0c4761841 100644 --- a/compiler/rustc_session/src/parse.rs +++ b/compiler/rustc_session/src/parse.rs @@ -120,14 +120,13 @@ pub fn add_feature_diagnostics_for_issue<'a>( ) { if let Some(n) = find_feature_issue(feature, issue) { err.note(&format!( - "see issue #{} <https://github.com/rust-lang/rust/issues/{}> for more information", - n, n, + "see issue #{n} <https://github.com/rust-lang/rust/issues/{n}> for more information" )); } // #23973: do not suggest `#![feature(...)]` if we are in beta/stable if sess.unstable_features.is_nightly_build() { - err.help(&format!("add `#![feature({})]` to the crate attributes to enable", feature)); + err.help(&format!("add `#![feature({feature})]` to the crate attributes to enable")); } } |
