diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2025-05-18 18:46:15 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2025-05-19 22:47:57 +0200 |
| commit | bb724f34215ca54c0a82deadf20342d881af99d3 (patch) | |
| tree | 1d1401706fdf2e8b7b544f565aa4993ca6a5d8aa | |
| parent | d4e7e5ba3155ea04837636a70a65b65767b818e1 (diff) | |
| download | rust-bb724f34215ca54c0a82deadf20342d881af99d3.tar.gz rust-bb724f34215ca54c0a82deadf20342d881af99d3.zip | |
Sort the existing list of symbols
| -rw-r--r-- | clippy_utils/src/sym.rs | 98 |
1 files changed, 50 insertions, 48 deletions
diff --git a/clippy_utils/src/sym.rs b/clippy_utils/src/sym.rs index 9428262b99a..4e1e573ad90 100644 --- a/clippy_utils/src/sym.rs +++ b/clippy_utils/src/sym.rs @@ -29,26 +29,62 @@ macro_rules! generate { }; } +// List of extra symbols to be included in Clippy (for example, as `sym::ambiguous_glob_reexports`). +// An alternative content can be specified using a colon after the symbol name. generate! { + AsyncReadExt, + AsyncWriteExt, + BACKSLASH_SINGLE_QUOTE: r"\'", + Binary, + CLIPPY_ARGS, + CLIPPY_CONF_DIR, + CRLF: "\r\n", + Cargo_toml: "Cargo.toml", + Current, + DOUBLE_QUOTE: "\"", + Deserialize, + EarlyLintPass, + ErrorKind, + IntoIter, + Itertools, + LF: "\n", + Lazy, + Lint, + LowerExp, + LowerHex, + MAX, + MIN, + MsrvStack, + Octal, + OpenOptions, + Other, + PathLookup, + Regex, + RegexBuilder, + RegexSet, + Start, + Step, + Symbol, + SyntaxContext, + TBD, + UpperExp, + UpperHex, + V4, + V6, + Visitor, + Weak, abs, align_of, ambiguous_glob_reexports, as_bytes, - as_deref_mut, as_deref, + as_deref_mut, as_mut, - AsyncReadExt, - AsyncWriteExt, - BACKSLASH_SINGLE_QUOTE: r"\'", - Binary, build_hasher, bytes, cargo_clippy: "cargo-clippy", - Cargo_toml: "Cargo.toml", cast, chars, - CLIPPY_ARGS, - CLIPPY_CONF_DIR, clippy_utils, clone_into, cloned, @@ -56,26 +92,20 @@ generate! { const_ptr, contains, copied, - CRLF: "\r\n", - Current, de, - Deserialize, diagnostics, disallowed_types, - DOUBLE_QUOTE: "\"", - EarlyLintPass, ends_with, enum_glob_use, error, - ErrorKind, exp, extend, - finish_non_exhaustive, finish, + finish_non_exhaustive, flat_map, for_each, - from_bytes_with_nul_unchecked, from_bytes_with_nul, + from_bytes_with_nul_unchecked, from_ptr, from_raw, from_ref, @@ -89,7 +119,6 @@ generate! { int_roundings, into_bytes, into_owned, - IntoIter, io, is_ascii, is_empty, @@ -98,56 +127,40 @@ generate! { is_ok, is_some, itertools, - Itertools, kw, last, lazy_static, - Lazy, - LF: "\n", - Lint, ln, lock_api, log, - LowerExp, - LowerHex, macro_use_imports, - map_or_else, map_or, + map_or_else, max, - MAX, mem, min, - MIN, mode, module_name_repetitions, msrv, msrvs, - MsrvStack, mut_ptr, mutex, needless_return, next_tuple, - Octal, once_cell, - OpenOptions, or_default, - Other, parse, - PathLookup, paths, powf, powi, push, redundant_pub_crate, regex, - Regex, - RegexBuilder, - RegexSet, reserve, resize, restriction, - rustc_lint_defs, rustc_lint, + rustc_lint_defs, rustc_span, rustfmt_skip, rwlock, @@ -158,17 +171,12 @@ generate! { signum, single_component_path_imports, span_lint_and_then, - split_whitespace, split, + split_whitespace, sqrt, - Start, - Step, style, symbol, - Symbol, - SyntaxContext, take, - TBD, then_some, to_ascii_lowercase, to_ascii_uppercase, @@ -179,21 +187,15 @@ generate! { tokio, unreachable_pub, unsafe_removed_from_name, + unused, unused_braces, unused_extern_crates, unused_import_braces, unused_trait_names, - unused, unwrap_err, unwrap_or_default, unwrap_or_else, - UpperExp, - UpperHex, - V4, - V6, - Visitor, warnings, - Weak, wildcard_imports, with_capacity, wrapping_offset, |
