about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui-internal/unnecessary_def_path.stderr
blob: 4abb1be7406c166807e08fc82400508d969d5677 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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