1 use rustc_hir::{self as hir, def_id::DefId};
2 use rustc_lint::LateContext;
4 use crate::utils::{match_def_path, paths, span_lint_and_help};
8 pub(super) fn check(cx: &LateContext<'_>, hir_ty: &hir::Ty<'_>, def_id: DefId) -> bool {
9 if match_def_path(cx, def_id, &paths::LINKED_LIST) {
14 "you seem to be using a `LinkedList`! Perhaps you meant some other data structure?",
16 "a `VecDeque` might work",