Make extern blocks without unsafe warn in edition 2024

This commit is contained in:
Santiago Pastorino
2024-05-21 12:27:21 -03:00
parent 46cd80b691
commit 3ba8de0b60
10 changed files with 78 additions and 7 deletions

View File

@@ -205,6 +205,9 @@ pub(super) fn decorate_lint(sess: &Session, diagnostic: BuiltinLintDiag, diag: &
};
lints::DeprecatedWhereClauseLocation { suggestion }.decorate_lint(diag);
}
BuiltinLintDiag::MissingUnsafeOnExtern => {
lints::MissingUnsafeOnExtern.decorate_lint(diag);
}
BuiltinLintDiag::SingleUseLifetime {
param_span,
use_span: Some((use_span, elide)),