diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-01-30 11:19:20 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-30 11:19:20 +0100 |
| commit | f99b510429f90723105d9773f4ca9a6085685c3c (patch) | |
| tree | a1cedb3a474b136af8e66685aee0381bd6dcdddb /compiler/rustc_resolve/src | |
| parent | 63a8885fcc015e903ac3e3316c91f6eaac79eaa8 (diff) | |
| parent | 514a5d8d556a6e28f586551c31ad0e9c83224caf (diff) | |
| download | rust-f99b510429f90723105d9773f4ca9a6085685c3c.tar.gz rust-f99b510429f90723105d9773f4ca9a6085685c3c.zip | |
Rollup merge of #120488 - nnethercote:diag-lifetimes, r=oli-obk
Diagnostic lifetimes cleanups Some diagnostic simplifications. r? `@oli-obk`
Diffstat (limited to 'compiler/rustc_resolve/src')
| -rw-r--r-- | compiler/rustc_resolve/src/late.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/late.rs b/compiler/rustc_resolve/src/late.rs index 0743ff03864..9788fcb3c7d 100644 --- a/compiler/rustc_resolve/src/late.rs +++ b/compiler/rustc_resolve/src/late.rs @@ -90,7 +90,7 @@ impl PatternSource { } impl IntoDiagnosticArg for PatternSource { - fn into_diagnostic_arg(self) -> DiagnosticArgValue<'static> { + fn into_diagnostic_arg(self) -> DiagnosticArgValue { DiagnosticArgValue::Str(Cow::Borrowed(self.descr())) } } |
