2017-08-09 07:30:56 +00:00
|
|
|
//! This module contains paths to types and functions Clippy needs to know
|
|
|
|
//! about.
|
2016-04-14 16:13:15 +00:00
|
|
|
|
2017-10-20 12:41:24 +00:00
|
|
|
pub const ANY_TRAIT: [&str; 3] = ["std", "any", "Any"];
|
2018-07-01 11:36:14 +00:00
|
|
|
pub const ARC: [&str; 3] = ["alloc", "sync", "Arc"];
|
2017-10-20 12:41:24 +00:00
|
|
|
pub const ASMUT_TRAIT: [&str; 3] = ["core", "convert", "AsMut"];
|
|
|
|
pub const ASREF_TRAIT: [&str; 3] = ["core", "convert", "AsRef"];
|
|
|
|
pub const BEGIN_PANIC: [&str; 3] = ["std", "panicking", "begin_panic"];
|
2017-10-16 21:06:31 +00:00
|
|
|
pub const BEGIN_PANIC_FMT: [&str; 3] = ["std", "panicking", "begin_panic_fmt"];
|
2018-07-01 11:36:14 +00:00
|
|
|
pub const BINARY_HEAP: [&str; 4] = ["alloc", "collections", "binary_heap", "BinaryHeap"];
|
2017-10-20 12:41:24 +00:00
|
|
|
pub const BORROW_TRAIT: [&str; 3] = ["core", "borrow", "Borrow"];
|
2018-07-01 11:36:14 +00:00
|
|
|
pub const BTREEMAP: [&str; 5] = ["alloc", "collections", "btree", "map", "BTreeMap"];
|
|
|
|
pub const BTREEMAP_ENTRY: [&str; 5] = ["alloc", "collections", "btree", "map", "Entry"];
|
|
|
|
pub const BTREESET: [&str; 5] = ["alloc", "collections", "btree", "set", "BTreeSet"];
|
2017-10-20 12:41:24 +00:00
|
|
|
pub const CLONE_TRAIT: [&str; 3] = ["core", "clone", "Clone"];
|
2018-10-23 07:01:45 +00:00
|
|
|
pub const CLONE_TRAIT_METHOD: [&str; 4] = ["core", "clone", "Clone", "clone"];
|
2017-10-20 12:41:24 +00:00
|
|
|
pub const CMP_MAX: [&str; 3] = ["core", "cmp", "max"];
|
|
|
|
pub const CMP_MIN: [&str; 3] = ["core", "cmp", "min"];
|
|
|
|
pub const COW: [&str; 3] = ["alloc", "borrow", "Cow"];
|
|
|
|
pub const CSTRING_NEW: [&str; 5] = ["std", "ffi", "c_str", "CString", "new"];
|
|
|
|
pub const DEFAULT_TRAIT: [&str; 3] = ["core", "default", "Default"];
|
2018-06-14 07:57:27 +00:00
|
|
|
pub const DEFAULT_TRAIT_METHOD: [&str; 4] = ["core", "default", "Default", "default"];
|
2018-10-23 07:01:45 +00:00
|
|
|
pub const DEREF_TRAIT_METHOD: [&str; 5] = ["core", "ops", "deref", "Deref", "deref"];
|
2017-10-20 12:41:24 +00:00
|
|
|
pub const DISPLAY_FMT_METHOD: [&str; 4] = ["core", "fmt", "Display", "fmt"];
|
|
|
|
pub const DOUBLE_ENDED_ITERATOR: [&str; 4] = ["core", "iter", "traits", "DoubleEndedIterator"];
|
|
|
|
pub const DROP: [&str; 3] = ["core", "mem", "drop"];
|
2019-02-17 04:28:16 +00:00
|
|
|
pub const DROP_TRAIT: [&str; 4] = ["core", "ops", "drop", "Drop"];
|
2018-03-18 20:27:15 +00:00
|
|
|
pub const DURATION: [&str; 3] = ["core", "time", "Duration"];
|
2018-09-14 10:38:09 +00:00
|
|
|
pub const EARLY_CONTEXT: [&str; 4] = ["rustc", "lint", "context", "EarlyContext"];
|
2019-01-19 12:13:06 +00:00
|
|
|
pub const FMT_ARGUMENTS_NEWV1: [&str; 4] = ["core", "fmt", "Arguments", "new_v1"];
|
2018-04-05 03:46:39 +00:00
|
|
|
pub const FMT_ARGUMENTS_NEWV1FORMATTED: [&str; 4] = ["core", "fmt", "Arguments", "new_v1_formatted"];
|
2017-10-20 12:41:24 +00:00
|
|
|
pub const FROM_FROM: [&str; 4] = ["core", "convert", "From", "from"];
|
2017-10-16 21:06:31 +00:00
|
|
|
pub const FROM_TRAIT: [&str; 3] = ["core", "convert", "From"];
|
2017-10-20 12:41:24 +00:00
|
|
|
pub const HASH: [&str; 2] = ["hash", "Hash"];
|
|
|
|
pub const HASHMAP: [&str; 5] = ["std", "collections", "hash", "map", "HashMap"];
|
|
|
|
pub const HASHMAP_ENTRY: [&str; 5] = ["std", "collections", "hash", "map", "Entry"];
|
|
|
|
pub const HASHSET: [&str; 5] = ["std", "collections", "hash", "set", "HashSet"];
|
2018-03-05 03:56:03 +00:00
|
|
|
pub const INDEX: [&str; 3] = ["core", "ops", "Index"];
|
|
|
|
pub const INDEX_MUT: [&str; 3] = ["core", "ops", "IndexMut"];
|
2017-10-20 12:41:24 +00:00
|
|
|
pub const INIT: [&str; 4] = ["core", "intrinsics", "", "init"];
|
|
|
|
pub const INTO: [&str; 3] = ["core", "convert", "Into"];
|
2019-01-28 09:16:34 +00:00
|
|
|
pub const INTO_ITERATOR: [&str; 5] = ["core", "iter", "traits", "collect", "IntoIterator"];
|
2017-10-20 12:41:24 +00:00
|
|
|
pub const IO_READ: [&str; 3] = ["std", "io", "Read"];
|
|
|
|
pub const IO_WRITE: [&str; 3] = ["std", "io", "Write"];
|
2019-01-28 09:09:45 +00:00
|
|
|
pub const ITERATOR: [&str; 5] = ["core", "iter", "traits", "iterator", "Iterator"];
|
2018-09-14 10:38:09 +00:00
|
|
|
pub const LATE_CONTEXT: [&str; 4] = ["rustc", "lint", "context", "LateContext"];
|
2018-07-01 11:36:14 +00:00
|
|
|
pub const LINKED_LIST: [&str; 4] = ["alloc", "collections", "linked_list", "LinkedList"];
|
2018-09-11 23:34:04 +00:00
|
|
|
pub const LINT: [&str; 3] = ["rustc", "lint", "Lint"];
|
2018-10-29 19:37:47 +00:00
|
|
|
pub const LINT_PASS: [&str; 3] = ["rustc", "lint", "LintPass"];
|
2018-10-21 03:46:13 +00:00
|
|
|
pub const MEM_DISCRIMINANT: [&str; 3] = ["core", "mem", "discriminant"];
|
2017-10-20 12:41:24 +00:00
|
|
|
pub const MEM_FORGET: [&str; 3] = ["core", "mem", "forget"];
|
2018-09-16 23:25:33 +00:00
|
|
|
pub const MEM_REPLACE: [&str; 3] = ["core", "mem", "replace"];
|
2017-10-20 12:41:24 +00:00
|
|
|
pub const MEM_UNINIT: [&str; 3] = ["core", "mem", "uninitialized"];
|
|
|
|
pub const MEM_ZEROED: [&str; 3] = ["core", "mem", "zeroed"];
|
|
|
|
pub const MUTEX: [&str; 4] = ["std", "sync", "mutex", "Mutex"];
|
|
|
|
pub const OPEN_OPTIONS: [&str; 3] = ["std", "fs", "OpenOptions"];
|
|
|
|
pub const OPS_MODULE: [&str; 2] = ["core", "ops"];
|
|
|
|
pub const OPTION: [&str; 3] = ["core", "option", "Option"];
|
|
|
|
pub const OPTION_NONE: [&str; 4] = ["core", "option", "Option", "None"];
|
|
|
|
pub const OPTION_SOME: [&str; 4] = ["core", "option", "Option", "Some"];
|
2018-06-01 13:13:53 +00:00
|
|
|
pub const ORD: [&str; 3] = ["core", "cmp", "Ord"];
|
2018-10-23 07:01:45 +00:00
|
|
|
pub const OS_STRING: [&str; 4] = ["std", "ffi", "os_str", "OsString"];
|
|
|
|
pub const OS_STR_TO_OS_STRING: [&str; 5] = ["std", "ffi", "os_str", "OsStr", "to_os_string"];
|
2018-06-01 13:13:53 +00:00
|
|
|
pub const PARTIAL_ORD: [&str; 3] = ["core", "cmp", "PartialOrd"];
|
2019-02-20 08:10:25 +00:00
|
|
|
pub const PATH: [&str; 3] = ["std", "path", "Path"];
|
2018-10-23 07:01:45 +00:00
|
|
|
pub const PATH_BUF: [&str; 3] = ["std", "path", "PathBuf"];
|
|
|
|
pub const PATH_TO_PATH_BUF: [&str; 4] = ["std", "path", "Path", "to_path_buf"];
|
2017-10-20 12:41:24 +00:00
|
|
|
pub const PTR_NULL: [&str; 2] = ["ptr", "null"];
|
|
|
|
pub const PTR_NULL_MUT: [&str; 2] = ["ptr", "null_mut"];
|
|
|
|
pub const RANGE: [&str; 3] = ["core", "ops", "Range"];
|
2018-03-30 08:35:51 +00:00
|
|
|
pub const RANGE_ARGUMENT_TRAIT: [&str; 3] = ["core", "ops", "RangeBounds"];
|
2017-10-20 12:41:24 +00:00
|
|
|
pub const RANGE_FROM: [&str; 3] = ["core", "ops", "RangeFrom"];
|
|
|
|
pub const RANGE_FROM_STD: [&str; 3] = ["std", "ops", "RangeFrom"];
|
|
|
|
pub const RANGE_FULL: [&str; 3] = ["core", "ops", "RangeFull"];
|
|
|
|
pub const RANGE_FULL_STD: [&str; 3] = ["std", "ops", "RangeFull"];
|
2018-05-03 13:52:44 +00:00
|
|
|
pub const RANGE_INCLUSIVE_NEW: [&str; 4] = ["core", "ops", "RangeInclusive", "new"];
|
|
|
|
pub const RANGE_INCLUSIVE_STD_NEW: [&str; 4] = ["std", "ops", "RangeInclusive", "new"];
|
2017-10-20 12:41:24 +00:00
|
|
|
pub const RANGE_STD: [&str; 3] = ["std", "ops", "Range"];
|
|
|
|
pub const RANGE_TO: [&str; 3] = ["core", "ops", "RangeTo"];
|
|
|
|
pub const RANGE_TO_INCLUSIVE: [&str; 3] = ["core", "ops", "RangeToInclusive"];
|
|
|
|
pub const RANGE_TO_INCLUSIVE_STD: [&str; 3] = ["std", "ops", "RangeToInclusive"];
|
|
|
|
pub const RANGE_TO_STD: [&str; 3] = ["std", "ops", "RangeTo"];
|
|
|
|
pub const RC: [&str; 3] = ["alloc", "rc", "Rc"];
|
2019-02-20 18:12:24 +00:00
|
|
|
pub const RECEIVER: [&str; 4] = ["std", "sync", "mpsc", "Receiver"];
|
2017-10-20 12:41:24 +00:00
|
|
|
pub const REGEX: [&str; 3] = ["regex", "re_unicode", "Regex"];
|
|
|
|
pub const REGEX_BUILDER_NEW: [&str; 5] = ["regex", "re_builder", "unicode", "RegexBuilder", "new"];
|
|
|
|
pub const REGEX_BYTES_BUILDER_NEW: [&str; 5] = ["regex", "re_builder", "bytes", "RegexBuilder", "new"];
|
|
|
|
pub const REGEX_BYTES_NEW: [&str; 4] = ["regex", "re_bytes", "Regex", "new"];
|
|
|
|
pub const REGEX_BYTES_SET_NEW: [&str; 5] = ["regex", "re_set", "bytes", "RegexSet", "new"];
|
|
|
|
pub const REGEX_NEW: [&str; 4] = ["regex", "re_unicode", "Regex", "new"];
|
|
|
|
pub const REGEX_SET_NEW: [&str; 5] = ["regex", "re_set", "unicode", "RegexSet", "new"];
|
|
|
|
pub const REPEAT: [&str; 3] = ["core", "iter", "repeat"];
|
|
|
|
pub const RESULT: [&str; 3] = ["core", "result", "Result"];
|
|
|
|
pub const RESULT_ERR: [&str; 4] = ["core", "result", "Result", "Err"];
|
|
|
|
pub const RESULT_OK: [&str; 4] = ["core", "result", "Result", "Ok"];
|
|
|
|
pub const SERDE_DE_VISITOR: [&str; 3] = ["serde", "de", "Visitor"];
|
|
|
|
pub const SLICE_INTO_VEC: [&str; 4] = ["alloc", "slice", "<impl [T]>", "into_vec"];
|
2017-08-22 21:45:08 +00:00
|
|
|
pub const SLICE_ITER: [&str; 3] = ["core", "slice", "Iter"];
|
2017-10-20 12:41:24 +00:00
|
|
|
pub const STRING: [&str; 3] = ["alloc", "string", "String"];
|
|
|
|
pub const TO_OWNED: [&str; 3] = ["alloc", "borrow", "ToOwned"];
|
2018-10-23 07:01:45 +00:00
|
|
|
pub const TO_OWNED_METHOD: [&str; 4] = ["alloc", "borrow", "ToOwned", "to_owned"];
|
2017-10-20 12:41:24 +00:00
|
|
|
pub const TO_STRING: [&str; 3] = ["alloc", "string", "ToString"];
|
2018-10-23 07:01:45 +00:00
|
|
|
pub const TO_STRING_METHOD: [&str; 4] = ["alloc", "string", "ToString", "to_string"];
|
2017-10-20 12:41:24 +00:00
|
|
|
pub const TRANSMUTE: [&str; 4] = ["core", "intrinsics", "", "transmute"];
|
|
|
|
pub const TRY_INTO_RESULT: [&str; 4] = ["std", "ops", "Try", "into_result"];
|
|
|
|
pub const UNINIT: [&str; 4] = ["core", "intrinsics", "", "uninit"];
|
|
|
|
pub const VEC: [&str; 3] = ["alloc", "vec", "Vec"];
|
2018-07-01 11:36:14 +00:00
|
|
|
pub const VEC_DEQUE: [&str; 4] = ["alloc", "collections", "vec_deque", "VecDeque"];
|
2017-10-20 12:41:24 +00:00
|
|
|
pub const VEC_FROM_ELEM: [&str; 3] = ["alloc", "vec", "from_elem"];
|
2018-07-01 11:36:14 +00:00
|
|
|
pub const WEAK_ARC: [&str; 3] = ["alloc", "sync", "Weak"];
|
2017-10-20 12:41:24 +00:00
|
|
|
pub const WEAK_RC: [&str; 3] = ["alloc", "rc", "Weak"];
|