You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: compiler/rustc_lint/messages.ftl
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -405,10 +405,10 @@ lint_incomplete_include =
405
405
406
406
lint_inner_macro_attribute_unstable = inner macro attributes are unstable
407
407
408
-
lint_instantly_dangling = this pointer will immediately dangle
409
-
.ptr_label = this pointer will be invalid
410
-
.temporary_label = this `{$ty}` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
411
-
.note = pointers do not have a lifetime; when calling `{$method}` the `{$ty}` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
408
+
lint_instantly_dangling = getting a pointer from a temporary `{$ty}` will result in a dangling pointer
409
+
.label_ptr = this pointer will immediately be invalid
410
+
.label_temporary = this `{$ty}` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
411
+
.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
412
412
.help = for more information, see https://doc.rust-lang.org/reference/destructors.html
413
413
414
414
lint_invalid_asm_label_binary = avoid using labels containing only the digits `0` and `1` in inline assembly
0 commit comments