Add missing lifetime (#1439)

* fix incorrect #[note] syntax

* more syntax fixes

* add missing lifetime
This commit is contained in:
Nathan Stocks 2022-08-18 18:53:51 -06:00 committed by GitHub
parent 7536ff8e9a
commit 8b298d3cdc
1 changed files with 1 additions and 1 deletions

View File

@ -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);