1
Fork 0

s/paths::LL/paths::LINKED_LIST

All other paths had non-abbreviated names.
This commit is contained in:
mcarton 2016-04-14 18:41:38 +02:00
parent 48a672b4ee
commit cd12a2369a
3 changed files with 3 additions and 3 deletions

View file

@ -736,7 +736,7 @@ fn is_ref_iterable_type(cx: &LateContext, e: &Expr) -> bool {
let ty = cx.tcx.expr_ty(e);
is_iterable_array(ty) ||
match_type(cx, ty, &paths::VEC) ||
match_type(cx, ty, &paths::LL) ||
match_type(cx, ty, &paths::LINKED_LIST) ||
match_type(cx, ty, &paths::HASHMAP) ||
match_type(cx, ty, &["std", "collections", "hash", "set", "HashSet"]) ||
match_type(cx, ty, &["collections", "vec_deque", "VecDeque"]) ||

View file

@ -75,7 +75,7 @@ impl LateLintPass for TypePass {
"`Vec<T>` is already on the heap, `Box<Vec<T>>` makes an extra allocation.");
}
}
} else if match_def_path(cx, did.def_id(), &paths::LL) {
} else if match_def_path(cx, did.def_id(), &paths::LINKED_LIST) {
span_help_and_lint(cx,
LINKEDLIST,
ast_ty.span,

View file

@ -19,7 +19,7 @@ pub const HASHMAP_ENTRY: [&'static str; 5] = ["std", "collections", "hash", "map
pub const HASHMAP: [&'static str; 5] = ["std", "collections", "hash", "map", "HashMap"];
pub const HASH: [&'static str; 2] = ["hash", "Hash"];
pub const IO_PRINT: [&'static str; 3] = ["std", "io", "_print"];
pub const LL: [&'static str; 3] = ["collections", "linked_list", "LinkedList"];
pub const LINKED_LIST: [&'static str; 3] = ["collections", "linked_list", "LinkedList"];
pub const MUTEX: [&'static str; 4] = ["std", "sync", "mutex", "Mutex"];
pub const OPEN_OPTIONS: [&'static str; 3] = ["std", "fs", "OpenOptions"];
pub const OPTION: [&'static str; 3] = ["core", "option", "Option"];