You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: compiler/rustc_lint/messages.ftl
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -476,6 +476,14 @@ lint_invalid_reference_casting_note_book = for more information, visit <https://
476
476
477
477
lint_invalid_reference_casting_note_ty_has_interior_mutability = even for types with interior mutability, the only legal way to obtain a mutable pointer from a shared reference is through `UnsafeCell::get`
478
478
479
+
lint_int_to_ptr_transmutes = transmuting a integer to a pointer without provenance is dangerous
480
+
.note = dereferencing the resulting pointer is Undefined Behavior as it doesn't have any provenance
481
+
.note_exposed_provenance = exposed provenance semantics can be used to create a pointer based on some previously exposed provenance
482
+
.help_transmute = for more information about transmute, see <https://doc.rust-lang.org/std/mem/fn.transmute.html#transmutation-between-pointers-and-integers>
483
+
.help_exposed_provenance = for more information about exposed provenance, see <https://doc.rust-lang.org/std/ptr/index.html#exposed-provenance>
484
+
.suggestion_as = use `as` cast instead to use a previously exposed provenance
485
+
.suggestion_without_provenance_mut = use `std::ptr::without_provenance_mut` to create a pointer without provenance
486
+
479
487
lint_legacy_derive_helpers = derive helper attribute is used before it is introduced
0 commit comments