summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorNathan Stocks <cleancut@github.com>2022-08-18 18:53:51 -0600
committerGitHub <noreply@github.com>2022-08-18 17:53:51 -0700
commited711b71db616a1f1bf255d1e993463e93e1b0ec (patch)
treeb4165b360e1016051924484447ab103a3d2793ab /src/doc/rustc-dev-guide
parente47431416cead223f766447287d06ca8f2b0f464 (diff)
downloadrust-ed711b71db616a1f1bf255d1e993463e93e1b0ec.tar.gz
rust-ed711b71db616a1f1bf255d1e993463e93e1b0ec.zip
Add missing lifetime (#1439)
* fix incorrect #[note] syntax

* more syntax fixes

* add missing lifetime
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/diagnostics/diagnostic-structs.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/rustc-dev-guide/src/diagnostics/diagnostic-structs.md b/src/doc/rustc-dev-guide/src/diagnostics/diagnostic-structs.md
index d30dd180bb1..f676e7ff761 100644
--- a/src/doc/rustc-dev-guide/src/diagnostics/diagnostic-structs.md
+++ b/src/doc/rustc-dev-guide/src/diagnostics/diagnostic-structs.md
@@ -113,7 +113,7 @@ In the end, the `SessionDiagnostic` derive will generate an implementation of
 `SessionDiagnostic` that looks like the following:
 
 ```rust,ignore
-impl SessionDiagnostic for FieldAlreadyDeclared {
+impl SessionDiagnostic<'_> for FieldAlreadyDeclared {
     fn into_diagnostic(self, sess: &'_ rustc_session::Session) -> DiagnosticBuilder<'_> {
         let mut diag = sess.struct_err(rustc_errors::fluent::typeck::field_already_declared);
         diag.set_span(self.span);