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