about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAnthony Eid <56899983+Anthony-Eid@users.noreply.github.com>2024-12-05 06:06:51 -0500
committerAnthony Eid <hello@anthonyeid.me>2024-12-05 06:12:27 -0500
commitbab8a413348e838d8ca0b369ebdc586f8542a120 (patch)
treebf6de4fa25da50d032f2b567322958b5099e9c8c
parent6d95b5baefd2b310db223c865dd96571269fe976 (diff)
downloadrust-bab8a413348e838d8ca0b369ebdc586f8542a120.tar.gz
rust-bab8a413348e838d8ca0b369ebdc586f8542a120.zip
Update compiler/rustc_lint/messages.ftl
Co-authored-by: Urgau <3616612+Urgau@users.noreply.github.com>
-rw-r--r--compiler/rustc_lint/messages.ftl5
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/rustc_lint/messages.ftl b/compiler/rustc_lint/messages.ftl
index da8401ebaf8..3570126de74 100644
--- a/compiler/rustc_lint/messages.ftl
+++ b/compiler/rustc_lint/messages.ftl
@@ -209,11 +209,10 @@ lint_dangling_pointers_from_temporaries = a dangling pointer will be produced be
     .label_ptr = this pointer will immediately be invalid
     .label_temporary = this `{$ty}` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
     .note = pointers do not have a lifetime; when calling `{$callee}` the `{$ty}` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
-    .help_info = you must make sure that the variable you bind the `{$typ}` to lives at least as long as the pointer returned by the call to `{$callee}`
-    .help_info = in particular, if this pointer is returned from the current function, binding the `{$typ}` inside the function will not suffice
+    .help_bind = you must make sure that the variable you bind the `{$typ}` to lives at least as long as the pointer returned by the call to `{$callee}`
+    .help_returned = in particular, if this pointer is returned from the current function, binding the `{$typ}` inside the function will not suffice
     .help_visit = for more information, see <https://doc.rust-lang.org/reference/destructors.html>
 
-
 lint_default_hash_types = prefer `{$preferred}` over `{$used}`, it has better performance
     .note = a `use rustc_data_structures::fx::{$preferred}` may be necessary