Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit ed711b7

Browse files
authored
Add missing lifetime (rust-lang#1439)
* fix incorrect #[note] syntax * more syntax fixes * add missing lifetime
1 parent e474314 commit ed711b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/rustc-dev-guide/src/diagnostics/diagnostic-structs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ In the end, the `SessionDiagnostic` derive will generate an implementation of
113113
`SessionDiagnostic` that looks like the following:
114114

115115
```rust,ignore
116-
impl SessionDiagnostic for FieldAlreadyDeclared {
116+
impl SessionDiagnostic<'_> for FieldAlreadyDeclared {
117117
fn into_diagnostic(self, sess: &'_ rustc_session::Session) -> DiagnosticBuilder<'_> {
118118
let mut diag = sess.struct_err(rustc_errors::fluent::typeck::field_already_declared);
119119
diag.set_span(self.span);

0 commit comments

Comments
 (0)