Skip to content

Commit d605e95

Browse files
Anthony-EidUrgau
andauthored
Update compiler/rustc_lint/messages.ftl
Co-authored-by: Urgau <3616612+Urgau@users.noreply.github.com>
1 parent 1b02604 commit d605e95

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

compiler/rustc_lint/messages.ftl

+2-3
Original file line numberDiff line numberDiff line change
@@ -209,11 +209,10 @@ lint_dangling_pointers_from_temporaries = a dangling pointer will be produced be
209209
.label_ptr = this pointer will immediately be invalid
210210
.label_temporary = this `{$ty}` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
211211
.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
212-
.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}`
213-
.help_info = in particular, if this pointer is returned from the current function, binding the `{$typ}` inside the function will not suffice
212+
.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}`
213+
.help_returned = in particular, if this pointer is returned from the current function, binding the `{$typ}` inside the function will not suffice
214214
.help_visit = for more information, see <https://doc.rust-lang.org/reference/destructors.html>
215215
216-
217216
lint_default_hash_types = prefer `{$preferred}` over `{$used}`, it has better performance
218217
.note = a `use rustc_data_structures::fx::{$preferred}` may be necessary
219218

0 commit comments

Comments
 (0)