Skip to content

Commit 7391e39

Browse files
committed
Fix fallout from Clippy internal features
1 parent 4b1d13e commit 7391e39

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,11 @@
1-
error: hardcoded path to a language item
2-
--> $DIR/unnecessary_def_path_hardcoded_path.rs:11:40
3-
|
4-
LL | const DEREF_MUT_TRAIT: [&str; 4] = ["core", "ops", "deref", "DerefMut"];
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6-
|
7-
= help: convert all references to use `LangItem::DerefMut`
8-
= note: `-D clippy::unnecessary-def-path` implied by `-D warnings`
9-
101
error: hardcoded path to a diagnostic item
112
--> $DIR/unnecessary_def_path_hardcoded_path.rs:10:36
123
|
134
LL | const DEREF_TRAIT: [&str; 4] = ["core", "ops", "deref", "Deref"];
145
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
156
|
167
= help: convert all references to use `sym::Deref`
8+
= note: `-D clippy::unnecessary-def-path` implied by `-D warnings`
179

1810
error: hardcoded path to a diagnostic item
1911
--> $DIR/unnecessary_def_path_hardcoded_path.rs:12:43
@@ -23,5 +15,13 @@ LL | const DEREF_TRAIT_METHOD: [&str; 5] = ["core", "ops", "deref", "Deref",
2315
|
2416
= help: convert all references to use `sym::deref_method`
2517

18+
error: hardcoded path to a language item
19+
--> $DIR/unnecessary_def_path_hardcoded_path.rs:11:40
20+
|
21+
LL | const DEREF_MUT_TRAIT: [&str; 4] = ["core", "ops", "deref", "DerefMut"];
22+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23+
|
24+
= help: convert all references to use `LangItem::DerefMut`
25+
2626
error: aborting due to 3 previous errors
2727

0 commit comments

Comments
 (0)