fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1mir_transform_arithmetic_overflow = this arithmetic operation will overflow 2mir_transform_call_to_unsafe_label = call to unsafe function 3mir_transform_call_to_unsafe_note = consult the function's documentation for information on how to avoid undefined behavior 4mir_transform_const_defined_here = `const` item defined here 5 6mir_transform_const_modify = attempting to modify a `const` item 7 .note = each usage of a `const` item creates a new temporary; the original `const` item will not be modified 8 9mir_transform_const_mut_borrow = taking a mutable reference to a `const` item 10 .note = each usage of a `const` item creates a new temporary 11 .note2 = the mutable reference will refer to this temporary, not the original `const` item 12 .note3 = mutable reference created due to call to this method 13 14mir_transform_const_ptr2int_label = cast of pointer to int 15mir_transform_const_ptr2int_note = casting pointers to integers in constants 16mir_transform_deref_ptr_label = dereference of raw pointer 17mir_transform_deref_ptr_note = raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior 18mir_transform_ffi_unwind_call = call to {$foreign -> 19 [true] foreign function 20 *[false] function pointer 21 } with FFI-unwind ABI 22 23mir_transform_fn_item_ref = taking a reference to a function item does not give a function pointer 24 .suggestion = cast `{$ident}` to obtain a function pointer 25 26mir_transform_initializing_valid_range_label = initializing type with `rustc_layout_scalar_valid_range` attr 27mir_transform_initializing_valid_range_note = initializing a layout restricted type's field with a value outside the valid range is undefined behavior 28mir_transform_must_not_suspend = {$pre}`{$def_path}`{$post} held across a suspend point, but should not be 29 .label = the value is held across this suspend point 30 .note = {$reason} 31 .help = consider using a block (`{"{ ... }"}`) to shrink the value's scope, ending before the suspend point 32 33mir_transform_mutation_layout_constrained_borrow_label = borrow of layout constrained field with interior mutability 34mir_transform_mutation_layout_constrained_borrow_note = references to fields of layout constrained fields lose the constraints. Coupled with interior mutability, the field can be changed to invalid values 35mir_transform_mutation_layout_constrained_label = mutation of layout constrained field 36mir_transform_mutation_layout_constrained_note = mutating layout constrained fields cannot statically be checked for valid values 37mir_transform_operation_will_panic = this operation will panic at runtime 38 39mir_transform_requires_unsafe = {$details} is unsafe and requires unsafe {$op_in_unsafe_fn_allowed -> 40 [true] function or block 41 *[false] block 42 } 43 .not_inherited = items do not inherit unsafety from separate enclosing items 44 45mir_transform_target_feature_call_label = call to function with `#[target_feature]` 46mir_transform_target_feature_call_note = can only be called if the required target features are available 47 48mir_transform_unaligned_packed_ref = reference to packed field is unaligned 49 .note = packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses 50 .note_ub = creating a misaligned reference is undefined behavior (even if that reference is never dereferenced) 51 .help = copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers) 52 53mir_transform_union_access_label = access to union field 54mir_transform_union_access_note = the field may not be properly initialized: using uninitialized data will cause undefined behavior 55mir_transform_unsafe_op_in_unsafe_fn = {$details} is unsafe and requires unsafe block (error E0133) 56 .suggestion = consider wrapping the function body in an unsafe block 57 .note = an unsafe function restricts its caller, but its body is safe by default 58 59mir_transform_unused_unsafe = unnecessary `unsafe` block 60 .label = because it's nested under this `unsafe` block 61 62mir_transform_use_of_asm_label = use of inline assembly 63mir_transform_use_of_asm_note = inline assembly is entirely unchecked and can cause undefined behavior 64mir_transform_use_of_extern_static_label = use of extern static 65mir_transform_use_of_extern_static_note = extern statics are not controlled by the Rust type system: invalid data, aliasing violations or data races will cause undefined behavior 66mir_transform_use_of_static_mut_label = use of mutable static 67mir_transform_use_of_static_mut_note = mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior