1
Fork 0

make unsafe_op_in_unsafe_fn MachineApplicable and add it to 2024 compatibility

This commit is contained in:
asquared31415 2024-01-13 23:06:34 +00:00
parent bfcc027a75
commit a8bb418ae5
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,
);
}
}