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

@@ -630,6 +630,7 @@ pub enum BuiltinLintDiag {
UnexpectedCfgName((Symbol, Span), Option<(Symbol, Span)>),
UnexpectedCfgValue((Symbol, Span), Option<(Symbol, Span)>),
DeprecatedWhereclauseLocation(Span, Option<(Span, String)>),
MissingUnsafeOnExtern,
SingleUseLifetime {
/// Span of the parameter which declares this lifetime.
param_span: Span,