1
Fork 0

Make MISSING_UNSAFE_ON_EXTERN lint emit future compat info with suggestion to prepend unsafe

This commit is contained in:
Santiago Pastorino 2024-06-03 22:27:57 -03:00
parent 0380321e78
commit 1afc7d716c
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF
10 changed files with 40 additions and 16 deletions

View file

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