#[deprecated_safe_2024]
: Also use the // TODO:
hint in the compiler error
This doesn't work for translated compiler error messages.
This commit is contained in:
parent
399ef23d2b
commit
811d7dd113
7 changed files with 18 additions and 11 deletions
|
@ -30,7 +30,7 @@ mir_build_call_to_deprecated_safe_fn_requires_unsafe =
|
|||
call to deprecated safe function `{$function}` is unsafe and requires unsafe block
|
||||
.note = consult the function's documentation for information on how to avoid undefined behavior
|
||||
.label = call to unsafe function
|
||||
.suggestion = you can wrap the call in an `unsafe` block if you can guarantee its unsafe preconditions
|
||||
.suggestion = you can wrap the call in an `unsafe` block if you can guarantee {$guarantee}
|
||||
|
||||
mir_build_call_to_fn_with_requires_unsafe =
|
||||
call to function `{$function}` with `#[target_feature]` is unsafe and requires unsafe block
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue