error: a diagnostic name exists for this path: sym::Option --> tests/ui-internal/unnecessary_def_path.rs:6:29 | LL | static OPTION: PathLookup = type_path!(core::option::Option); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: remove the `PathLookup` and use utilities such as `cx.tcx.is_diagnostic_item` instead = help: see also https://doc.rust-lang.org/nightly/nightly-rustc/?search=diag&filter-crate=clippy_utils = note: `-D clippy::unnecessary-def-path` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::unnecessary_def_path)]` error: a language item exists for this path: LangItem::OptionSome --> tests/ui-internal/unnecessary_def_path.rs:8:27 | LL | static SOME: PathLookup = type_path!(core::option::Option::Some); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: remove the `PathLookup` and use utilities such as `cx.tcx.lang_items` instead = help: see also https://doc.rust-lang.org/nightly/nightly-rustc/?search=lang&filter-crate=clippy_utils error: a diagnostic name exists for this path: sym::Result --> tests/ui-internal/unnecessary_def_path.rs:11:29 | LL | static RESULT: PathLookup = type_path!(core::result::Result); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: remove the `PathLookup` and use utilities such as `cx.tcx.is_diagnostic_item` instead = help: see also https://doc.rust-lang.org/nightly/nightly-rustc/?search=diag&filter-crate=clippy_utils error: a diagnostic name exists for this path: sym::Result --> tests/ui-internal/unnecessary_def_path.rs:13:37 | LL | static RESULT_VIA_STD: PathLookup = type_path!(std::result::Result); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: remove the `PathLookup` and use utilities such as `cx.tcx.is_diagnostic_item` instead = help: see also https://doc.rust-lang.org/nightly/nightly-rustc/?search=diag&filter-crate=clippy_utils error: a diagnostic name exists for this path: sym::vec_new --> tests/ui-internal/unnecessary_def_path.rs:16:30 | LL | static VEC_NEW: PathLookup = value_path!(alloc::vec::Vec::new); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: remove the `PathLookup` and use utilities such as `cx.tcx.is_diagnostic_item` instead = help: see also https://doc.rust-lang.org/nightly/nightly-rustc/?search=diag&filter-crate=clippy_utils error: a diagnostic name exists for this path: sym::vec_macro --> tests/ui-internal/unnecessary_def_path.rs:19:32 | LL | static VEC_MACRO: PathLookup = macro_path!(std::vec); | ^^^^^^^^^^^^^^^^^^^^^ | = help: remove the `PathLookup` and use utilities such as `cx.tcx.is_diagnostic_item` instead = help: see also https://doc.rust-lang.org/nightly/nightly-rustc/?search=diag&filter-crate=clippy_utils error: aborting due to 6 previous errors