1
Fork 0

Rollup merge of #119948 - asquared31415:unsafe_op_in_unsafe_fn_fix, r=TaKO8Ki

Make `unsafe_op_in_unsafe_fn` migrated in edition 2024

fixes rust-lang/rust#119823
This commit is contained in:
Matthias Krüger 2024-01-22 16:13:28 +01:00 committed by GitHub
commit 34bab29ef9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 160 additions and 51 deletions

View file

@ -430,7 +430,7 @@ impl AddToDiagnostic for UnsafeNotInheritedLintNote {
diag.tool_only_multipart_suggestion(
fluent::mir_build_wrap_suggestion,
vec![(body_start, "{ unsafe ".into()), (body_end, "}".into())],
Applicability::MaybeIncorrect,
Applicability::MachineApplicable,
);
}
}