diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-07-25 22:00:13 +0200 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2023-07-30 13:18:33 +0200 |
| commit | 23815467a2ba4a5219149cb96bada4c7bea741bf (patch) | |
| tree | d8d1459a45a207350907114dffebd6134b14be50 /compiler/rustc_session/src/options.rs | |
| parent | 2e0136a131f6ed5f6071adf36db08dd8d2205d19 (diff) | |
| download | rust-23815467a2ba4a5219149cb96bada4c7bea741bf.tar.gz rust-23815467a2ba4a5219149cb96bada4c7bea741bf.zip | |
inline format!() args up to and including rustc_middle
Diffstat (limited to 'compiler/rustc_session/src/options.rs')
| -rw-r--r-- | compiler/rustc_session/src/options.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_session/src/options.rs b/compiler/rustc_session/src/options.rs index 4a535f80b8a..8eab0fb33a7 100644 --- a/compiler/rustc_session/src/options.rs +++ b/compiler/rustc_session/src/options.rs @@ -330,8 +330,7 @@ fn build_options<O: Default>( match value { None => handler.early_error( format!( - "{0} option `{1}` requires {2} ({3} {1}=<value>)", - outputname, key, type_desc, prefix + "{outputname} option `{key}` requires {type_desc} ({prefix} {key}=<value>)" ), ), Some(value) => handler.early_error( |
