Rollup merge of #92619 - Alexendoo:macro-diagnostic-items, r=matthewjasper
Add diagnostic items for macros For use in Clippy, it adds diagnostic items to all the stable public macros Clippy has lints that look for almost all of these (currently by name or path), but there are a few that aren't currently part of any lint, I could remove those if it's preferred to add them as needed rather than ahead of time
This commit is contained in:
commit
cf4549c920
5 changed files with 62 additions and 0 deletions
|
@ -336,8 +336,10 @@ symbols! {
|
|||
asm_sym,
|
||||
asm_unwind,
|
||||
assert,
|
||||
assert_eq_macro,
|
||||
assert_inhabited,
|
||||
assert_macro,
|
||||
assert_ne_macro,
|
||||
assert_receiver_is_total_eq,
|
||||
assert_uninit_valid,
|
||||
assert_zero_valid,
|
||||
|
@ -407,6 +409,7 @@ symbols! {
|
|||
cfg_doctest,
|
||||
cfg_eval,
|
||||
cfg_hide,
|
||||
cfg_macro,
|
||||
cfg_panic,
|
||||
cfg_sanitize,
|
||||
cfg_target_abi,
|
||||
|
@ -434,15 +437,18 @@ symbols! {
|
|||
coerce_unsized,
|
||||
cold,
|
||||
column,
|
||||
column_macro,
|
||||
compare_and_swap,
|
||||
compare_exchange,
|
||||
compare_exchange_weak,
|
||||
compile_error,
|
||||
compile_error_macro,
|
||||
compiler_builtins,
|
||||
compiler_fence,
|
||||
concat,
|
||||
concat_bytes,
|
||||
concat_idents,
|
||||
concat_macro,
|
||||
conservative_impl_trait,
|
||||
console,
|
||||
const_allocate,
|
||||
|
@ -522,10 +528,13 @@ symbols! {
|
|||
custom_inner_attributes,
|
||||
custom_test_frameworks,
|
||||
d,
|
||||
dbg_macro,
|
||||
dead_code,
|
||||
dealloc,
|
||||
debug,
|
||||
debug_assert_eq_macro,
|
||||
debug_assert_macro,
|
||||
debug_assert_ne_macro,
|
||||
debug_assertions,
|
||||
debug_struct,
|
||||
debug_trait_builder,
|
||||
|
@ -597,6 +606,9 @@ symbols! {
|
|||
encode,
|
||||
end,
|
||||
env,
|
||||
env_macro,
|
||||
eprint_macro,
|
||||
eprintln_macro,
|
||||
eq,
|
||||
ermsb_target_feature,
|
||||
exact_div,
|
||||
|
@ -644,6 +656,7 @@ symbols! {
|
|||
field,
|
||||
field_init_shorthand,
|
||||
file,
|
||||
file_macro,
|
||||
fill,
|
||||
finish,
|
||||
flags,
|
||||
|
@ -666,6 +679,7 @@ symbols! {
|
|||
format,
|
||||
format_args,
|
||||
format_args_capture,
|
||||
format_args_macro,
|
||||
format_args_nl,
|
||||
format_macro,
|
||||
freeze,
|
||||
|
@ -732,7 +746,10 @@ symbols! {
|
|||
in_band_lifetimes,
|
||||
include,
|
||||
include_bytes,
|
||||
include_bytes_macro,
|
||||
include_macro,
|
||||
include_str,
|
||||
include_str_macro,
|
||||
inclusive_range_syntax,
|
||||
index,
|
||||
index_mut,
|
||||
|
@ -780,6 +797,7 @@ symbols! {
|
|||
lifetime,
|
||||
likely,
|
||||
line,
|
||||
line_macro,
|
||||
link,
|
||||
link_args,
|
||||
link_cfg,
|
||||
|
@ -823,6 +841,7 @@ symbols! {
|
|||
masked,
|
||||
match_beginning_vert,
|
||||
match_default_bindings,
|
||||
matches_macro,
|
||||
maxnumf32,
|
||||
maxnumf64,
|
||||
may_dangle,
|
||||
|
@ -859,6 +878,7 @@ symbols! {
|
|||
modifiers,
|
||||
module,
|
||||
module_path,
|
||||
module_path_macro,
|
||||
more_qualified_paths,
|
||||
more_struct_aliases,
|
||||
movbe_target_feature,
|
||||
|
@ -942,6 +962,7 @@ symbols! {
|
|||
optin_builtin_traits,
|
||||
option,
|
||||
option_env,
|
||||
option_env_macro,
|
||||
options,
|
||||
or,
|
||||
or_patterns,
|
||||
|
@ -1005,6 +1026,8 @@ symbols! {
|
|||
prelude_import,
|
||||
preserves_flags,
|
||||
primitive,
|
||||
print_macro,
|
||||
println_macro,
|
||||
proc_dash_macro: "proc-macro",
|
||||
proc_macro,
|
||||
proc_macro_attribute,
|
||||
|
@ -1292,6 +1315,7 @@ symbols! {
|
|||
str,
|
||||
str_alloc,
|
||||
stringify,
|
||||
stringify_macro,
|
||||
struct_field_attributes,
|
||||
struct_inherit,
|
||||
struct_variant,
|
||||
|
@ -1335,6 +1359,8 @@ symbols! {
|
|||
then_with,
|
||||
thread,
|
||||
thread_local,
|
||||
thread_local_macro,
|
||||
todo_macro,
|
||||
tool_attributes,
|
||||
tool_lints,
|
||||
trace_macros,
|
||||
|
@ -1385,6 +1411,7 @@ symbols! {
|
|||
underscore_imports,
|
||||
underscore_lifetimes,
|
||||
uniform_paths,
|
||||
unimplemented_macro,
|
||||
unit,
|
||||
universal_impl_trait,
|
||||
unix,
|
||||
|
@ -1393,6 +1420,7 @@ symbols! {
|
|||
unpin,
|
||||
unreachable,
|
||||
unreachable_code,
|
||||
unreachable_macro,
|
||||
unrestricted_attribute_tokens,
|
||||
unsafe_block_in_unsafe_fn,
|
||||
unsafe_cell,
|
||||
|
@ -1423,6 +1451,7 @@ symbols! {
|
|||
var,
|
||||
variant_count,
|
||||
vec,
|
||||
vec_macro,
|
||||
version,
|
||||
vis,
|
||||
visible_private_types,
|
||||
|
@ -1447,7 +1476,9 @@ symbols! {
|
|||
wrapping_sub,
|
||||
wreg,
|
||||
write_bytes,
|
||||
write_macro,
|
||||
write_str,
|
||||
writeln_macro,
|
||||
x87_reg,
|
||||
xer,
|
||||
xmm_reg,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue