1
Fork 0

Add MVP suggestion for unsafe_op_in_unsafe_fn

Nemo157 rebase notes: Migrated the changes to the lint into fluent
This commit is contained in:
Léo Lanteri Thauvin 2022-07-28 00:03:16 +02:00 committed by Wim Looman
parent a525c7ddba
commit 975152ce30
No known key found for this signature in database
GPG key ID: C6F5748C6DD1607B
7 changed files with 105 additions and 11 deletions

View file

@ -55,6 +55,7 @@ mir_transform_unaligned_packed_ref = reference to packed field is unaligned
mir_transform_union_access_label = access to union field
mir_transform_union_access_note = the field may not be properly initialized: using uninitialized data will cause undefined behavior
mir_transform_unsafe_op_in_unsafe_fn = {$details} is unsafe and requires unsafe block (error E0133)
.suggestion = consider wrapping the function body in an unsafe block
mir_transform_unused_unsafe = unnecessary `unsafe` block
.label = because it's nested under this `unsafe` block