about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorUrgau <urgau@numericable.fr>2023-04-14 21:49:05 +0200
committerUrgau <urgau@numericable.fr>2023-05-10 19:36:02 +0200
commitd23f8957ae9f6a2e3121529422e7883d8bdbcc14 (patch)
tree6780d3822dcaef72f5fd0730013a701d00f7721e /compiler
parent457fa953a2ed374630e1f5cd0d8c599c2b4b0609 (diff)
downloadrust-d23f8957ae9f6a2e3121529422e7883d8bdbcc14.tar.gz
rust-d23f8957ae9f6a2e3121529422e7883d8bdbcc14.zip
Improve warning message by saying that it "does nothing"
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_lint/messages.ftl8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_lint/messages.ftl b/compiler/rustc_lint/messages.ftl
index 63424148e4d..e323570b5bc 100644
--- a/compiler/rustc_lint/messages.ftl
+++ b/compiler/rustc_lint/messages.ftl
@@ -521,14 +521,14 @@ lint_opaque_hidden_inferred_bound = opaque type `{$ty}` does not satisfy its ass
 
 lint_opaque_hidden_inferred_bound_sugg = add this bound
 
-lint_drop_ref = calls to `std::mem::drop` with a reference instead of an owned value
+lint_drop_ref = calls to `std::mem::drop` with a reference instead of an owned value does nothing
     .label = argument has type `{$arg_ty}`
 
-lint_drop_copy = calls to `std::mem::drop` with a value that implements `Copy`.
+lint_drop_copy = calls to `std::mem::drop` with a value that implements `Copy` does nothing
     .label = argument has type `{$arg_ty}`
 
-lint_forget_ref = calls to `std::mem::forget` with a reference instead of an owned value
+lint_forget_ref = calls to `std::mem::forget` with a reference instead of an owned value does nothing
     .label = argument has type `{$arg_ty}`
 
-lint_forget_copy = calls to `std::mem::forget` with a value that implements `Copy`.
+lint_forget_copy = calls to `std::mem::forget` with a value that implements `Copy` does nothing
     .label = argument has type `{$arg_ty}`