]> git.lizzy.rs Git - rust.git/blob - clippy_lints/src/utils/paths.rs
Auto merge of #4110 - rust-lang:symbolic_wasteland, r=oli-obk
[rust.git] / clippy_lints / src / utils / paths.rs
1 //! This module contains paths to types and functions Clippy needs to know
2 //! about.
3
4 pub const ANY_TRAIT: [&str; 3] = ["std", "any", "Any"];
5 pub const ARC: [&str; 3] = ["alloc", "sync", "Arc"];
6 pub const ASMUT_TRAIT: [&str; 3] = ["core", "convert", "AsMut"];
7 pub const ASREF_TRAIT: [&str; 3] = ["core", "convert", "AsRef"];
8 pub const BEGIN_PANIC: [&str; 3] = ["std", "panicking", "begin_panic"];
9 pub const BEGIN_PANIC_FMT: [&str; 3] = ["std", "panicking", "begin_panic_fmt"];
10 pub const BINARY_HEAP: [&str; 4] = ["alloc", "collections", "binary_heap", "BinaryHeap"];
11 pub const BORROW_TRAIT: [&str; 3] = ["core", "borrow", "Borrow"];
12 pub const BTREEMAP: [&str; 5] = ["alloc", "collections", "btree", "map", "BTreeMap"];
13 pub const BTREEMAP_ENTRY: [&str; 5] = ["alloc", "collections", "btree", "map", "Entry"];
14 pub const BTREESET: [&str; 5] = ["alloc", "collections", "btree", "set", "BTreeSet"];
15 pub const CLONE_TRAIT: [&str; 3] = ["core", "clone", "Clone"];
16 pub const CLONE_TRAIT_METHOD: [&str; 4] = ["core", "clone", "Clone", "clone"];
17 pub const CMP_MAX: [&str; 3] = ["core", "cmp", "max"];
18 pub const CMP_MIN: [&str; 3] = ["core", "cmp", "min"];
19 pub const COW: [&str; 3] = ["alloc", "borrow", "Cow"];
20 pub const CSTRING_NEW: [&str; 5] = ["std", "ffi", "c_str", "CString", "new"];
21 pub const DEFAULT_TRAIT: [&str; 3] = ["core", "default", "Default"];
22 pub const DEFAULT_TRAIT_METHOD: [&str; 4] = ["core", "default", "Default", "default"];
23 pub const DEREF_TRAIT_METHOD: [&str; 5] = ["core", "ops", "deref", "Deref", "deref"];
24 pub const DISPLAY_FMT_METHOD: [&str; 4] = ["core", "fmt", "Display", "fmt"];
25 pub const DOUBLE_ENDED_ITERATOR: [&str; 4] = ["core", "iter", "traits", "DoubleEndedIterator"];
26 pub const DROP: [&str; 3] = ["core", "mem", "drop"];
27 pub const DROP_TRAIT: [&str; 4] = ["core", "ops", "drop", "Drop"];
28 pub const DURATION: [&str; 3] = ["core", "time", "Duration"];
29 pub const EARLY_CONTEXT: [&str; 4] = ["rustc", "lint", "context", "EarlyContext"];
30 pub const FMT_ARGUMENTS_NEWV1: [&str; 4] = ["core", "fmt", "Arguments", "new_v1"];
31 pub const FMT_ARGUMENTS_NEWV1FORMATTED: [&str; 4] = ["core", "fmt", "Arguments", "new_v1_formatted"];
32 pub const FROM_FROM: [&str; 4] = ["core", "convert", "From", "from"];
33 pub const FROM_TRAIT: [&str; 3] = ["core", "convert", "From"];
34 pub const HASH: [&str; 2] = ["hash", "Hash"];
35 pub const HASHMAP: [&str; 5] = ["std", "collections", "hash", "map", "HashMap"];
36 pub const HASHMAP_ENTRY: [&str; 5] = ["std", "collections", "hash", "map", "Entry"];
37 pub const HASHSET: [&str; 5] = ["std", "collections", "hash", "set", "HashSet"];
38 pub const INDEX: [&str; 3] = ["core", "ops", "Index"];
39 pub const INDEX_MUT: [&str; 3] = ["core", "ops", "IndexMut"];
40 pub const INIT: [&str; 4] = ["core", "intrinsics", "", "init"];
41 pub const INTO: [&str; 3] = ["core", "convert", "Into"];
42 pub const INTO_ITERATOR: [&str; 5] = ["core", "iter", "traits", "collect", "IntoIterator"];
43 pub const IO_READ: [&str; 3] = ["std", "io", "Read"];
44 pub const IO_WRITE: [&str; 3] = ["std", "io", "Write"];
45 pub const ITERATOR: [&str; 5] = ["core", "iter", "traits", "iterator", "Iterator"];
46 pub const LATE_CONTEXT: [&str; 4] = ["rustc", "lint", "context", "LateContext"];
47 pub const LINKED_LIST: [&str; 4] = ["alloc", "collections", "linked_list", "LinkedList"];
48 pub const LINT: [&str; 3] = ["rustc", "lint", "Lint"];
49 pub const LINT_PASS: [&str; 3] = ["rustc", "lint", "LintPass"];
50 pub const MEM_DISCRIMINANT: [&str; 3] = ["core", "mem", "discriminant"];
51 pub const MEM_FORGET: [&str; 3] = ["core", "mem", "forget"];
52 pub const MEM_REPLACE: [&str; 3] = ["core", "mem", "replace"];
53 pub const MEM_UNINIT: [&str; 3] = ["core", "mem", "uninitialized"];
54 pub const MEM_ZEROED: [&str; 3] = ["core", "mem", "zeroed"];
55 pub const MUTEX: [&str; 4] = ["std", "sync", "mutex", "Mutex"];
56 pub const OPEN_OPTIONS: [&str; 3] = ["std", "fs", "OpenOptions"];
57 pub const OPS_MODULE: [&str; 2] = ["core", "ops"];
58 pub const OPTION: [&str; 3] = ["core", "option", "Option"];
59 pub const OPTION_NONE: [&str; 4] = ["core", "option", "Option", "None"];
60 pub const OPTION_SOME: [&str; 4] = ["core", "option", "Option", "Some"];
61 pub const ORD: [&str; 3] = ["core", "cmp", "Ord"];
62 pub const OS_STRING: [&str; 4] = ["std", "ffi", "os_str", "OsString"];
63 pub const OS_STR_TO_OS_STRING: [&str; 5] = ["std", "ffi", "os_str", "OsStr", "to_os_string"];
64 pub const PARTIAL_ORD: [&str; 3] = ["core", "cmp", "PartialOrd"];
65 pub const PATH: [&str; 3] = ["std", "path", "Path"];
66 pub const PATH_BUF: [&str; 3] = ["std", "path", "PathBuf"];
67 pub const PATH_TO_PATH_BUF: [&str; 4] = ["std", "path", "Path", "to_path_buf"];
68 pub const PTR_NULL: [&str; 2] = ["ptr", "null"];
69 pub const PTR_NULL_MUT: [&str; 2] = ["ptr", "null_mut"];
70 pub const RANGE: [&str; 3] = ["core", "ops", "Range"];
71 pub const RANGE_ARGUMENT_TRAIT: [&str; 3] = ["core", "ops", "RangeBounds"];
72 pub const RANGE_FROM: [&str; 3] = ["core", "ops", "RangeFrom"];
73 pub const RANGE_FROM_STD: [&str; 3] = ["std", "ops", "RangeFrom"];
74 pub const RANGE_FULL: [&str; 3] = ["core", "ops", "RangeFull"];
75 pub const RANGE_FULL_STD: [&str; 3] = ["std", "ops", "RangeFull"];
76 pub const RANGE_INCLUSIVE_NEW: [&str; 4] = ["core", "ops", "RangeInclusive", "new"];
77 pub const RANGE_INCLUSIVE_STD_NEW: [&str; 4] = ["std", "ops", "RangeInclusive", "new"];
78 pub const RANGE_STD: [&str; 3] = ["std", "ops", "Range"];
79 pub const RANGE_TO: [&str; 3] = ["core", "ops", "RangeTo"];
80 pub const RANGE_TO_INCLUSIVE: [&str; 3] = ["core", "ops", "RangeToInclusive"];
81 pub const RANGE_TO_INCLUSIVE_STD: [&str; 3] = ["std", "ops", "RangeToInclusive"];
82 pub const RANGE_TO_STD: [&str; 3] = ["std", "ops", "RangeTo"];
83 pub const RC: [&str; 3] = ["alloc", "rc", "Rc"];
84 pub const RECEIVER: [&str; 4] = ["std", "sync", "mpsc", "Receiver"];
85 pub const REGEX: [&str; 3] = ["regex", "re_unicode", "Regex"];
86 pub const REGEX_BUILDER_NEW: [&str; 5] = ["regex", "re_builder", "unicode", "RegexBuilder", "new"];
87 pub const REGEX_BYTES_BUILDER_NEW: [&str; 5] = ["regex", "re_builder", "bytes", "RegexBuilder", "new"];
88 pub const REGEX_BYTES_NEW: [&str; 4] = ["regex", "re_bytes", "Regex", "new"];
89 pub const REGEX_BYTES_SET_NEW: [&str; 5] = ["regex", "re_set", "bytes", "RegexSet", "new"];
90 pub const REGEX_NEW: [&str; 4] = ["regex", "re_unicode", "Regex", "new"];
91 pub const REGEX_SET_NEW: [&str; 5] = ["regex", "re_set", "unicode", "RegexSet", "new"];
92 pub const REPEAT: [&str; 3] = ["core", "iter", "repeat"];
93 pub const RESULT: [&str; 3] = ["core", "result", "Result"];
94 pub const RESULT_ERR: [&str; 4] = ["core", "result", "Result", "Err"];
95 pub const RESULT_OK: [&str; 4] = ["core", "result", "Result", "Ok"];
96 pub const SERDE_DE_VISITOR: [&str; 3] = ["serde", "de", "Visitor"];
97 pub const SLICE_INTO_VEC: [&str; 4] = ["alloc", "slice", "<impl [T]>", "into_vec"];
98 pub const SLICE_ITER: [&str; 3] = ["core", "slice", "Iter"];
99 pub const STDERR: [&str; 4] = ["std", "io", "stdio", "stderr"];
100 pub const STDOUT: [&str; 4] = ["std", "io", "stdio", "stdout"];
101 pub const STD_MEM_TRANSMUTE: [&str; 3] = ["std", "mem", "transmute"];
102 pub const STD_PTR_NULL: [&str; 3] = ["std", "ptr", "null"];
103 pub const STRING: [&str; 3] = ["alloc", "string", "String"];
104 pub const TO_OWNED: [&str; 3] = ["alloc", "borrow", "ToOwned"];
105 pub const TO_OWNED_METHOD: [&str; 4] = ["alloc", "borrow", "ToOwned", "to_owned"];
106 pub const TO_STRING: [&str; 3] = ["alloc", "string", "ToString"];
107 pub const TO_STRING_METHOD: [&str; 4] = ["alloc", "string", "ToString", "to_string"];
108 pub const TRANSMUTE: [&str; 4] = ["core", "intrinsics", "", "transmute"];
109 pub const TRY_INTO_RESULT: [&str; 4] = ["std", "ops", "Try", "into_result"];
110 pub const UNINIT: [&str; 4] = ["core", "intrinsics", "", "uninit"];
111 pub const VEC: [&str; 3] = ["alloc", "vec", "Vec"];
112 pub const VEC_DEQUE: [&str; 4] = ["alloc", "collections", "vec_deque", "VecDeque"];
113 pub const VEC_FROM_ELEM: [&str; 3] = ["alloc", "vec", "from_elem"];
114 pub const WEAK_ARC: [&str; 3] = ["alloc", "sync", "Weak"];
115 pub const WEAK_RC: [&str; 3] = ["alloc", "rc", "Weak"];