2022-11-05 09:08:37 -05:00
|
|
|
error: hardcoded path to a diagnostic item
|
2023-02-10 04:33:45 -06:00
|
|
|
--> $DIR/unnecessary_def_path_hardcoded_path.rs:12:43
|
2022-10-23 08:18:45 -05:00
|
|
|
|
|
2023-02-10 04:33:45 -06:00
|
|
|
LL | const DEREF_TRAIT_METHOD: [&str; 5] = ["core", "ops", "deref", "Deref", "deref"];
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-10-23 08:18:45 -05:00
|
|
|
|
|
2023-02-10 04:33:45 -06:00
|
|
|
= help: convert all references to use `sym::deref_method`
|
2022-12-01 11:29:38 -06:00
|
|
|
= note: `-D clippy::unnecessary-def-path` implied by `-D warnings`
|
2022-10-23 08:18:45 -05:00
|
|
|
|
2022-12-17 07:12:54 -06:00
|
|
|
error: hardcoded path to a diagnostic item
|
2023-02-10 04:33:45 -06:00
|
|
|
--> $DIR/unnecessary_def_path_hardcoded_path.rs:10:36
|
2022-12-17 07:12:54 -06:00
|
|
|
|
|
2023-02-10 04:33:45 -06:00
|
|
|
LL | const DEREF_TRAIT: [&str; 4] = ["core", "ops", "deref", "Deref"];
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-12-17 07:12:54 -06:00
|
|
|
|
|
2023-02-10 04:33:45 -06:00
|
|
|
= help: convert all references to use `sym::Deref`
|
2022-12-17 07:12:54 -06:00
|
|
|
|
2023-01-27 14:09:08 -06:00
|
|
|
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`
|
|
|
|
|
2022-10-23 08:18:45 -05:00
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|