1
- error: hardcoded path to a diagnostic item
2
- --> $DIR/unnecessary_def_path_hardcoded_path.rs:12:43
3
- |
4
- LL | const DEREF_TRAIT_METHOD: [&str; 5] = ["core", "ops", "deref", "Deref", "deref"];
5
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
- |
7
- = help: convert all references to use `sym::deref_method`
8
- = note: `-D clippy::unnecessary-def-path` implied by `-D warnings`
9
-
10
1
error: hardcoded path to a diagnostic item
11
2
--> $DIR/unnecessary_def_path_hardcoded_path.rs:10:36
12
3
|
13
4
LL | const DEREF_TRAIT: [&str; 4] = ["core", "ops", "deref", "Deref"];
14
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15
6
|
16
7
= help: convert all references to use `sym::Deref`
8
+ = note: `-D clippy::unnecessary-def-path` implied by `-D warnings`
17
9
18
10
error: hardcoded path to a language item
19
11
--> $DIR/unnecessary_def_path_hardcoded_path.rs:11:40
@@ -23,5 +15,13 @@ LL | const DEREF_MUT_TRAIT: [&str; 4] = ["core", "ops", "deref", "DerefMut"]
23
15
|
24
16
= help: convert all references to use `LangItem::DerefMut`
25
17
18
+ error: hardcoded path to a diagnostic item
19
+ --> $DIR/unnecessary_def_path_hardcoded_path.rs:12:43
20
+ |
21
+ LL | const DEREF_TRAIT_METHOD: [&str; 5] = ["core", "ops", "deref", "Deref", "deref"];
22
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23
+ |
24
+ = help: convert all references to use `sym::deref_method`
25
+
26
26
error: aborting due to 3 previous errors
27
27
0 commit comments