diff options
| author | Ellis Hoag <ellis.sparky.hoag@gmail.com> | 2022-08-29 20:22:03 -0700 |
|---|---|---|
| committer | Ellis Hoag <ellis.sparky.hoag@gmail.com> | 2022-09-24 10:24:48 -0700 |
| commit | fb488ad36605093d17ea22e9e533b2103559e376 (patch) | |
| tree | f5051cdafceac52d5c1b47cb3195f438b7ffe6da /compiler/rustc_errors/src | |
| parent | 1ce482adda7f5b18ff6b107351565e31056fd8f3 (diff) | |
| download | rust-fb488ad36605093d17ea22e9e533b2103559e376.tar.gz rust-fb488ad36605093d17ea22e9e533b2103559e376.zip | |
remove IntoDiagnosticArg impl for Option
Diffstat (limited to 'compiler/rustc_errors/src')
| -rw-r--r-- | compiler/rustc_errors/src/diagnostic.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/compiler/rustc_errors/src/diagnostic.rs b/compiler/rustc_errors/src/diagnostic.rs index f6af0f879ca..1c440a0a07e 100644 --- a/compiler/rustc_errors/src/diagnostic.rs +++ b/compiler/rustc_errors/src/diagnostic.rs @@ -114,15 +114,6 @@ impl IntoDiagnosticArg for char { } } -impl<T: IntoDiagnosticArg> IntoDiagnosticArg for Option<T> { - fn into_diagnostic_arg(self) -> DiagnosticArgValue<'static> { - match self { - Some(t) => t.into_diagnostic_arg(), - None => DiagnosticArgValue::Str(Cow::Borrowed("None")), - } - } -} - impl IntoDiagnosticArg for Symbol { fn into_diagnostic_arg(self) -> DiagnosticArgValue<'static> { self.to_ident_string().into_diagnostic_arg() |
