diff options
| author | Jubilee Young <workingjubilee@gmail.com> | 2022-03-24 22:11:05 -0700 |
|---|---|---|
| committer | Jubilee Young <workingjubilee@gmail.com> | 2022-03-24 22:38:13 -0700 |
| commit | de66e08957987c3faad81a201c728a236e401b56 (patch) | |
| tree | b47f41fd9fe68eab1cc6fd9405fa5234c39109cc /compiler/rustc_session/src/parse.rs | |
| parent | 7941b3f1473331d2abb2b8796046adc0105c8f94 (diff) | |
| download | rust-de66e08957987c3faad81a201c728a236e401b56.tar.gz rust-de66e08957987c3faad81a201c728a236e401b56.zip | |
Prettify rustc_session fmt with capturing args (nfc)
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")); } } |
