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
lint_ambiguous_wide_pointer_comparisons = ambiguous wide pointer comparison, the comparison includes metadata which may not be expected
2
7
.addr_metadata_suggestion = use explicit `std::ptr::eq` method to compare metadata and addresses
3
8
.addr_suggestion = use `std::ptr::addr_eq` or untyped pointers to only compare their addresses
@@ -26,10 +31,19 @@ lint_atomic_ordering_load = atomic loads cannot have `Release` or `AcqRel` order
26
31
lint_atomic_ordering_store = atomic stores cannot have `Acquire` or `AcqRel` ordering
27
32
.help = consider using ordering modes `Release`, `SeqCst` or `Relaxed`
28
33
34
+
lint_avoid_att_syntax =
35
+
avoid using `.att_syntax`, prefer using `options(att_syntax)` instead
36
+
37
+
lint_avoid_intel_syntax =
38
+
avoid using `.intel_syntax`, Intel syntax is the default
39
+
29
40
lint_bad_attribute_argument = bad attribute argument
30
41
31
42
lint_bad_opt_access = {$msg}
32
43
44
+
lint_break_with_label_and_loop =
45
+
this labeled break expression is easy to confuse with an unlabeled break with a labeled value expression
46
+
33
47
lint_builtin_allow_internal_unsafe =
34
48
`allow_internal_unsafe` allows defining macros using unsafe without triggering the `unsafe_code` lint at their call site
35
49
@@ -184,6 +198,8 @@ lint_cstring_ptr = getting the inner pointer of a temporary `CString`
184
198
.note = pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
185
199
.help = for more information, see https://doc.rust-lang.org/reference/destructors.html
186
200
201
+
lint_custom_inner_attribute_unstable = custom inner attributes are unstable
202
+
187
203
lint_default_hash_types = prefer `{$preferred}` over `{$used}`, it has better performance
188
204
.note = a `use rustc_data_structures::fx::{$preferred}` may be necessary
189
205
@@ -214,6 +230,11 @@ lint_dropping_references = calls to `std::mem::drop` with a reference instead of
214
230
.label = argument has type `{$arg_ty}`
215
231
.note = use `let _ = ...` to ignore the expression or result
216
232
233
+
lint_duplicate_macro_attribute =
234
+
duplicated attribute
235
+
236
+
lint_elided_lifetime_not_allowed = `'_` cannot be used here
237
+
217
238
lint_enum_intrinsics_mem_discriminant =
218
239
the return value of `mem::discriminant` is unspecified when called with a non-enum type
219
240
.note = the argument to `discriminant` should be a reference to an enum, but it was passed a reference to a `{$ty_param}`, which is not an enum.
@@ -226,6 +247,8 @@ lint_expectation = this lint expectation is unfulfilled
226
247
.note = the `unfulfilled_lint_expectations` lint can't be expected and will always produce this message
227
248
.rationale = {$rationale}
228
249
250
+
lint_extern_crate_not_idiomatic = `extern crate` is not idiomatic in the new edition
251
+
229
252
lint_extern_without_abi = extern declarations without an explicit ABI are deprecated
230
253
231
254
lint_for_loops_over_fallibles =
@@ -242,6 +265,10 @@ lint_forgetting_references = calls to `std::mem::forget` with a reference instea
242
265
.label = argument has type `{$arg_ty}`
243
266
.note = use `let _ = ...` to ignore the expression or result
244
267
268
+
lint_hidden_glob_reexport = private item shadows public glob re-export
269
+
270
+
lint_hidden_lifetime_parameters = hidden lifetime parameters in types are deprecated
271
+
245
272
lint_hidden_unicode_codepoints = unicode codepoint changing visible direction of text present in {$label}
246
273
.label = this {$label} contains {$count->
247
274
[one] an invisible
@@ -342,6 +369,13 @@ lint_improper_ctypes_union_layout_help = consider adding a `#[repr(C)]` or `#[re
342
369
lint_improper_ctypes_union_layout_reason = this union has unspecified layout
343
370
lint_improper_ctypes_union_non_exhaustive = this union is non-exhaustive
344
371
372
+
lint_incomplete_include =
373
+
include macro expected single expression in source
374
+
375
+
lint_inner_macro_attribute_unstable = inner macro attributes are unstable
376
+
377
+
lint_invalid_crate_type_value = invalid `crate_type` value
378
+
345
379
# FIXME: we should ordinalize $valid_up_to when we add support for doing so
346
380
lint_invalid_from_utf8_checked = calls to `{$method}` with a invalid literal always return an error
347
381
.label = the literal was valid UTF-8 up to the {$valid_up_to} bytes
@@ -370,9 +404,18 @@ lint_invalid_reference_casting_note_book = for more information, visit <https://
370
404
371
405
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`
372
406
407
+
lint_legacy_derive_helpers =
408
+
derive helper attribute is used before it is introduced
409
+
373
410
lint_lintpass_by_hand = implementing `LintPass` by hand
374
411
.help = try using `declare_lint_pass!` or `impl_lint_pass!` instead
lint_map_unit_fn = `Iterator::map` call that discard the iterator's values
@@ -382,6 +425,8 @@ lint_map_unit_fn = `Iterator::map` call that discard the iterator's values
382
425
.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
383
426
.suggestion = you might have meant to use `Iterator::for_each`
384
427
428
+
lint_missing_fragment_specifier = missing fragment specifier
429
+
385
430
lint_mixed_script_confusables =
386
431
the usage of Script Group `{$set}` in this crate consists solely of mixed script confusables
387
432
.includes_note = the usage includes {$includes}
@@ -498,6 +543,9 @@ lint_opaque_hidden_inferred_bound = opaque type `{$ty}` does not satisfy its ass
498
543
499
544
lint_opaque_hidden_inferred_bound_sugg = add this bound
500
545
546
+
lint_or_patterns_back_compat =
547
+
the meaning of the `pat` fragment specifier is changing in Rust 2021, which may affect this macro
548
+
501
549
lint_overflowing_bin_hex = literal out of range for `{$ty}`
502
550
.negative_note = the literal `{$lit}` (decimal `{$dec}`) does not fit into the type `{$ty}`
503
551
.negative_becomes_note = and the value `-{$lit}` will become `{$actually}{$ty}`
@@ -533,6 +581,8 @@ lint_pattern_in_bodiless = patterns aren't allowed in functions without bodies
533
581
lint_pattern_in_foreign = patterns aren't allowed in foreign function declarations
534
582
.label = pattern not allowed in foreign function
535
583
584
+
lint_proc_macro_back_compat_rental = using an old version of `rental`
585
+
536
586
lint_ptr_null_checks_fn_ptr = function pointers are not nullable, so checking them for null will always return false
537
587
.help = wrap the function pointer inside an `Option` and use `Option::is_none` to check for null pointer value
538
588
.label = expression has type `{$orig_ty}`
@@ -564,6 +614,8 @@ lint_redundant_semicolons =
564
614
*[false] this semicolon
565
615
}
566
616
617
+
lint_reference_without_lifetime_not_allowed = `&` without an explicit lifetime name cannot be used here
618
+
567
619
lint_removed_lint = lint `{$name}` has been removed: {$reason}
568
620
569
621
lint_renamed_lint = lint `{$name}` has been renamed to `{$replace}`
0 commit comments