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 0a80e53608
commit f3fe248549
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);