summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui-internal/unnecessary_def_path_hardcoded_path.stderr
blob: 3ca45404e44bb88290ad846bccca89f21b88f6a7 (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
error: hardcoded path to a diagnostic item
  --> $DIR/unnecessary_def_path_hardcoded_path.rs:10:36
   |
LL |     const DEREF_TRAIT: [&str; 4] = ["core", "ops", "deref", "Deref"];
   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: convert all references to use `sym::Deref`
   = note: `-D clippy::unnecessary-def-path` implied by `-D warnings`

error: hardcoded path to a language item
  --> $DIR/unnecessary_def_path_hardcoded_path.rs:11:40
   |
LL |     const DEREF_MUT_TRAIT: [&str; 4] = ["core", "ops", "deref", "DerefMut"];
   |                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: convert all references to use `LangItem::DerefMut`

error: hardcoded path to a diagnostic item
  --> $DIR/unnecessary_def_path_hardcoded_path.rs:12:43
   |
LL |     const DEREF_TRAIT_METHOD: [&str; 5] = ["core", "ops", "deref", "Deref", "deref"];
   |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: convert all references to use `sym::deref_method`

error: aborting due to 3 previous errors