diff options
| author | TheOddGarlic <umutinanerdogan@pm.me> | 2022-08-24 20:16:50 +0300 |
|---|---|---|
| committer | mejrs <> | 2022-12-17 19:08:24 +0100 |
| commit | 71a9cb9b7ebc1a4d56f8d837ea8b4b696fae9e89 (patch) | |
| tree | 28ad14ac77d5b873aa64e6a8372ef72ad9923595 /compiler/rustc_error_messages | |
| parent | 64f3e4f195265a13648e5e201669ebb265bae421 (diff) | |
| download | rust-71a9cb9b7ebc1a4d56f8d837ea8b4b696fae9e89.tar.gz rust-71a9cb9b7ebc1a4d56f8d837ea8b4b696fae9e89.zip | |
Migrate "unused unsafe" lint
Diffstat (limited to 'compiler/rustc_error_messages')
| -rw-r--r-- | compiler/rustc_error_messages/locales/en-US/mir_build.ftl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/rustc_error_messages/locales/en-US/mir_build.ftl b/compiler/rustc_error_messages/locales/en-US/mir_build.ftl index fd42cc6cb08..9dab6f8e883 100644 --- a/compiler/rustc_error_messages/locales/en-US/mir_build.ftl +++ b/compiler/rustc_error_messages/locales/en-US/mir_build.ftl @@ -169,3 +169,9 @@ mir_build_call_to_fn_with_requires_unsafe_unsafe_op_in_unsafe_fn_allowed = call to function `{$function}` with `#[target_feature]` is unsafe and requires unsafe function or block .note = can only be called if the required target features are available .label = call to function with `#[target_feature]` + +mir_build_unused_unsafe = unnecessary `unsafe` block + .label = unnecessary `unsafe` block + +mir_build_unused_unsafe_enclosing_block_label = because it's nested under this `unsafe` block +mir_build_unused_unsafe_enclosing_fn_label = because it's nested under this `unsafe` fn |
