diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-02-02 10:14:14 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-02-03 09:02:50 +1100 |
| commit | 6fdaf3ef7fb5ea72345520a1219ea5cc77d0f71c (patch) | |
| tree | 7108042a53f43e2546bc6e625ae3079058bfb455 /compiler/rustc_errors/src | |
| parent | df322fc29ffc984d488bbaf3a58e95c4002d4b7e (diff) | |
| download | rust-6fdaf3ef7fb5ea72345520a1219ea5cc77d0f71c.tar.gz rust-6fdaf3ef7fb5ea72345520a1219ea5cc77d0f71c.zip | |
Use `DiagnosticArgName` in a few more places.
Diffstat (limited to 'compiler/rustc_errors/src')
| -rw-r--r-- | compiler/rustc_errors/src/diagnostic.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/diagnostic.rs b/compiler/rustc_errors/src/diagnostic.rs index 789889973e2..5579b50e85a 100644 --- a/compiler/rustc_errors/src/diagnostic.rs +++ b/compiler/rustc_errors/src/diagnostic.rs @@ -900,7 +900,7 @@ impl Diagnostic { pub fn arg( &mut self, - name: impl Into<Cow<'static, str>>, + name: impl Into<DiagnosticArgName>, arg: impl IntoDiagnosticArg, ) -> &mut Self { self.args.insert(name.into(), arg.into_diagnostic_arg()); |
