You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously, the warn_ attribute is used to add warning diagnostics. But it was changed to warning in this PR.
Some information is also outdated in both Diagnostic and Subdiagnostic derives, e.g. no warning reference in Subdiagnostic, the attribute is also applicable on structs.
Diagnostic derive documentation from nightly rustc (source of truth):
Previously, the
warn_
attribute is used to add warning diagnostics. But it was changed towarning
in this PR.Some information is also outdated in both
Diagnostic
andSubdiagnostic
derives, e.g. nowarning
reference inSubdiagnostic
, the attribute is also applicable on structs.Diagnostic derive documentation from nightly rustc (source of truth):
#[derive(Diagnostic)
#[derive(LintDiagnostic)]
#[derive(Subdiagnostic)]
What we have in the guide instead:
#[derive(Diagnostic)]
dev guide reference#[derive(Subdiagnostic)]
dev guide referenceUpdating the
warning
references in the guide can help new contributors to support the translation effort (issue tracker rust-lang/rust#100717)The text was updated successfully, but these errors were encountered: