Skip to content

Commit

Permalink
Add missing lifetime (#1439)
Browse files Browse the repository at this point in the history
* fix incorrect #[note] syntax

* more syntax fixes

* add missing lifetime
  • Loading branch information
CleanCut authored Aug 19, 2022
1 parent 0a80e53 commit f3fe248
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diagnostics/diagnostic-structs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f3fe248

Please sign in to comment.