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
+16-5
Original file line number
Diff line number
Diff line change
@@ -254,6 +254,8 @@ lint_expectation = this lint expectation is unfulfilled
254
254
lint_extern_crate_not_idiomatic = `extern crate` is not idiomatic in the new edition
255
255
256
256
lint_extern_without_abi = extern declarations without an explicit ABI are deprecated
257
+
.label = ABI should be specified here
258
+
.help = the default ABI is {$default_abi}
257
259
258
260
lint_for_loops_over_fallibles =
259
261
for loop over {$article} `{$ty}`. This is more readably written as an `if let` statement
@@ -414,8 +416,8 @@ lint_invalid_reference_casting_note_book = for more information, visit <https://
414
416
415
417
lint_invalid_reference_casting_note_ty_has_interior_mutability = even for types with interior mutability, the only legal way to obtain a mutable pointer from a shared reference is through `UnsafeCell::get`
416
418
417
-
lint_legacy_derive_helpers =
418
-
derive helper attribute is used before it is introduced
419
+
lint_legacy_derive_helpers =derive helper attribute is used before it is introduced
420
+
.label = the attribute is introduced here
419
421
420
422
lint_lintpass_by_hand = implementing `LintPass` by hand
421
423
.help = try using `declare_lint_pass!` or `impl_lint_pass!` instead
@@ -567,8 +569,8 @@ lint_opaque_hidden_inferred_bound = opaque type `{$ty}` does not satisfy its ass
567
569
568
570
lint_opaque_hidden_inferred_bound_sugg = add this bound
569
571
570
-
lint_or_patterns_back_compat =
571
-
the meaning of the `pat` fragment specifier is changing in Rust 2021, which may affect this macro
572
+
lint_or_patterns_back_compat =the meaning of the `pat` fragment specifier is changing in Rust 2021, which may affect this macro
573
+
.suggestion = use pat_param to preserve semantics
572
574
573
575
lint_overflowing_bin_hex = literal out of range for `{$ty}`
574
576
.negative_note = the literal `{$lit}` (decimal `{$dec}`) does not fit into the type `{$ty}`
@@ -608,7 +610,8 @@ lint_pattern_in_foreign = patterns aren't allowed in foreign function declaratio
608
610
lint_private_extern_crate_reexport =
609
611
extern crate `{$ident}` is private, and cannot be re-exported (error E0365), consider declaring with `pub`
610
612
611
-
lint_proc_macro_back_compat_rental = using an old version of `rental`
613
+
lint_proc_macro_back_compat = using an old version of `{$crate_name}`
614
+
.note = older versions of the `{$crate_name}` crate will stop compiling in future versions of Rust; please update to `{$crate_name}` v{$fixed_version}, or switch to one of the `{$crate_name}` alternatives
612
615
613
616
lint_proc_macro_derive_resolution_fallback = cannot find {$ns} `{$ident}` in this scope
614
617
.label = names from parent modules are not accessible without an explicit import
@@ -652,6 +655,8 @@ lint_redundant_semicolons =
652
655
653
656
lint_reference_without_lifetime_not_allowed = `&` without an explicit lifetime name cannot be used here
654
657
658
+
lint_remove_mut_from_pattern = remove `mut` from the parameter
659
+
655
660
lint_removed_lint = lint `{$name}` has been removed: {$reason}
656
661
657
662
lint_renamed_lint = lint `{$name}` has been renamed to `{$replace}`
@@ -660,6 +665,10 @@ lint_renamed_lint = lint `{$name}` has been renamed to `{$replace}`
660
665
661
666
lint_requested_level = requested on the command line with `{$level}{$lint_name}`
662
667
668
+
lint_reserved_prefix = prefix `{$prefix}` is unknown
669
+
.label = unknown prefix
670
+
.suggestion = insert whitespace here to avoid this being parsed as a prefix in Rust 2021
671
+
663
672
lint_span_use_eq_ctxt = use `.eq_ctxt()` instead of `.ctxt() == .ctxt()`
664
673
665
674
lint_supertrait_as_deref_target = this `Deref` implementation is covered by an implicit supertrait coercion
@@ -763,6 +772,8 @@ lint_unused_delim = unnecessary {$delim} around {$item}
763
772
.suggestion = remove these {$delim}
764
773
765
774
lint_unused_doc_comment = unused doc comment
775
+
.label = rustdoc does not generate documentation for macro invocations
776
+
.help = to document an item produced by a macro, the macro must produce the documentation as part of its expansion
766
777
767
778
lint_unused_import_braces = braces around {$node} is unnecessary
0 commit comments