diff options
| author | Nathan Stocks <cleancut@github.com> | 2022-08-18 18:53:51 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-18 17:53:51 -0700 |
| commit | ed711b71db616a1f1bf255d1e993463e93e1b0ec (patch) | |
| tree | b4165b360e1016051924484447ab103a3d2793ab /src/doc/rustc-dev-guide | |
| parent | e47431416cead223f766447287d06ca8f2b0f464 (diff) | |
| download | rust-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.md | 2 |
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); |
