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
*[other] valid forms for the attribute are {$suggestions}
322
+
}
323
+
315
324
lint_improper_ctypes = `extern` {$desc} uses type `{$ty}`, which is not FFI-safe
316
325
.label = not FFI-safe
317
326
.note = the type is defined here
@@ -377,6 +386,7 @@ lint_incomplete_include =
377
386
lint_inner_macro_attribute_unstable = inner macro attributes are unstable
378
387
379
388
lint_invalid_crate_type_value = invalid `crate_type` value
389
+
.suggestion = did you mean
380
390
381
391
# FIXME: we should ordinalize $valid_up_to when we add support for doing so
382
392
lint_invalid_from_utf8_checked = calls to `{$method}` with a invalid literal always return an error
@@ -406,14 +416,24 @@ lint_invalid_reference_casting_note_book = for more information, visit <https://
406
416
407
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`
408
418
409
-
lint_legacy_derive_helpers =
410
-
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
411
421
412
422
lint_lintpass_by_hand = implementing `LintPass` by hand
413
423
.help = try using `declare_lint_pass!` or `impl_lint_pass!` instead
macro-expanded `macro_export` macros from the current crate cannot be referred to by absolute paths
425
+
lint_macro_expanded_macro_exports_accessed_by_absolute_paths = macro-expanded `macro_export` macros from the current crate cannot be referred to by absolute paths
426
+
.note = the macro is defined here
427
+
428
+
lint_macro_is_private = macro `{$ident}` is private
deprecated `#[macro_use]` attribute used to import macros should be replaced at use sites with a `use` item to import the macro instead
@@ -427,6 +447,10 @@ lint_map_unit_fn = `Iterator::map` call that discard the iterator's values
427
447
.map_label = after this call to map, the resulting iterator is `impl Iterator<Item = ()>`, which means the only information carried by the iterator is the number of items
428
448
.suggestion = you might have meant to use `Iterator::for_each`
429
449
450
+
lint_metavariable_still_repeating = variable '{$name}' is still repeating at this depth
451
+
452
+
lint_metavariable_wrong_operator = meta-variable repeats with different Kleene operator
453
+
430
454
lint_missing_fragment_specifier = missing fragment specifier
431
455
432
456
lint_mixed_script_confusables =
@@ -545,8 +569,8 @@ lint_opaque_hidden_inferred_bound = opaque type `{$ty}` does not satisfy its ass
545
569
546
570
lint_opaque_hidden_inferred_bound_sugg = add this bound
547
571
548
-
lint_or_patterns_back_compat =
549
-
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
550
574
551
575
lint_overflowing_bin_hex = literal out of range for `{$ty}`
552
576
.negative_note = the literal `{$lit}` (decimal `{$dec}`) does not fit into the type `{$ty}`
@@ -583,7 +607,14 @@ lint_pattern_in_bodiless = patterns aren't allowed in functions without bodies
583
607
lint_pattern_in_foreign = patterns aren't allowed in foreign function declarations
584
608
.label = pattern not allowed in foreign function
585
609
586
-
lint_proc_macro_back_compat_rental = using an old version of `rental`
610
+
lint_private_extern_crate_reexport =
611
+
extern crate `{$ident}` is private, and cannot be re-exported (error E0365), consider declaring with `pub`
612
+
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
615
+
616
+
lint_proc_macro_derive_resolution_fallback = cannot find {$ns} `{$ident}` in this scope
617
+
.label = names from parent modules are not accessible without an explicit import
587
618
588
619
lint_ptr_null_checks_fn_ptr = function pointers are not nullable, so checking them for null will always return false
589
620
.help = wrap the function pointer inside an `Option` and use `Option::is_none` to check for null pointer value
@@ -606,6 +637,12 @@ lint_reason_must_be_string_literal = reason must be a string literal
606
637
607
638
lint_reason_must_come_last = reason in lint attribute must come last
608
639
640
+
lint_redundant_import = the item `{$ident}` is imported redundantly
641
+
.label_imported_here = the item `{ident}` is already imported here
642
+
.label_defined_here = the item `{ident}` is already defined here
643
+
.label_imported_prelude = the item `{ident}` is already imported by the extern prelude
644
+
.label_defined_prelude = the item `{ident}` is already defined by the extern prelude
645
+
609
646
lint_redundant_semicolons =
610
647
unnecessary trailing {$multiple->
611
648
[true] semicolons
@@ -618,6 +655,8 @@ lint_redundant_semicolons =
618
655
619
656
lint_reference_without_lifetime_not_allowed = `&` without an explicit lifetime name cannot be used here
620
657
658
+
lint_remove_mut_from_pattern = remove `mut` from the parameter
659
+
621
660
lint_removed_lint = lint `{$name}` has been removed: {$reason}
622
661
623
662
lint_renamed_lint = lint `{$name}` has been renamed to `{$replace}`
@@ -626,6 +665,10 @@ lint_renamed_lint = lint `{$name}` has been renamed to `{$replace}`
626
665
627
666
lint_requested_level = requested on the command line with `{$level}{$lint_name}`
628
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
+
629
672
lint_span_use_eq_ctxt = use `.eq_ctxt()` instead of `.ctxt() == .ctxt()`
630
673
631
674
lint_supertrait_as_deref_target = this `Deref` implementation is covered by an implicit supertrait coercion
using `.deref()` on a double reference, which returns `{$ty}` instead of dereferencing the inner type
641
684
642
-
lint_trailing_semi_macro =
643
-
trailing semicolon in macro used in expression position
685
+
lint_trailing_semi_macro = trailing semicolon in macro used in expression position
686
+
.note1 = macro invocations at the end of a block are treated as expressions
687
+
.note2 = to ignore the value produced by the macro, add a semicolon after the invocation of `{$name}`
644
688
645
689
lint_ty_qualified = usage of qualified `ty::{$ty}`
646
690
.suggestion = try importing it and using it unqualified
@@ -658,8 +702,15 @@ lint_undropped_manually_drops = calls to `std::mem::drop` with `std::mem::Manual
658
702
lint_ungated_async_fn_track_caller = `#[track_caller]` on async functions is a no-op
659
703
.label = this function will not propagate the caller location
660
704
661
-
lint_unicode_text_flow =
662
-
unicode codepoint changing visible direction of text present in comment
705
+
lint_unicode_text_flow = unicode codepoint changing visible direction of text present in comment
706
+
.label = {$num_codepoints->
707
+
[1] this comment contains an invisible unicode text flow control codepoint
708
+
*[other] this comment contains invisible unicode text flow control codepoints
709
+
}
710
+
.note = these kind of unicode codepoints change the way text flows on applications that support them, but can cause confusion because they change the order of characters on the screen
711
+
.suggestion = if their presence wasn't intentional, you can remove them
712
+
.label_comment_char = {$c_debug}
713
+
663
714
664
715
lint_unit_bindings = binding has unit type `()`
665
716
.label = this pattern is inferred to be the unit type `()`
0 commit comments