2022-12-17 13:12:54 +00:00
|
|
|
error: hardcoded path to a diagnostic item
|
2023-02-10 13:01:19 +00:00
|
|
|
--> $DIR/unnecessary_def_path_hardcoded_path.rs:10:36
|
2022-12-17 13:12:54 +00:00
|
|
|
|
|
2023-02-10 13:01:19 +00:00
|
|
|
LL | const DEREF_TRAIT: [&str; 4] = ["core", "ops", "deref", "Deref"];
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-12-17 13:12:54 +00:00
|
|
|
|
|
2023-02-10 13:01:19 +00:00
|
|
|
= help: convert all references to use `sym::Deref`
|
2023-02-26 00:08:29 +00:00
|
|
|
= note: `-D clippy::unnecessary-def-path` implied by `-D warnings`
|
2023-09-07 19:43:06 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::unnecessary_def_path)]`
|
2022-12-17 13:12:54 +00:00
|
|
|
|
2023-01-27 20:09:08 +00: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`
|
|
|
|
|
2023-02-26 00:08:29 +00:00
|
|
|
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`
|
|
|
|
|
2022-10-23 13:18:45 +00:00
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|