2022-12-17 07:12:54 -06:00
|
|
|
error: hardcoded path to a diagnostic item
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui-internal/unnecessary_def_path_hardcoded_path.rs:10:36
|
2022-12-17 07:12:54 -06:00
|
|
|
|
|
2023-02-10 07:01:19 -06:00
|
|
|
LL | const DEREF_TRAIT: [&str; 4] = ["core", "ops", "deref", "Deref"];
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-12-17 07:12:54 -06:00
|
|
|
|
|
2023-02-10 07:01:19 -06:00
|
|
|
= help: convert all references to use `sym::Deref`
|
2023-02-25 18:08:29 -06:00
|
|
|
= note: `-D clippy::unnecessary-def-path` implied by `-D warnings`
|
2023-09-12 11:13:53 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::unnecessary_def_path)]`
|
2022-12-17 07:12:54 -06:00
|
|
|
|
2023-01-27 14:09:08 -06:00
|
|
|
error: hardcoded path to a language item
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui-internal/unnecessary_def_path_hardcoded_path.rs:11:40
|
2023-01-27 14:09:08 -06:00
|
|
|
|
|
|
|
|
LL | const DEREF_MUT_TRAIT: [&str; 4] = ["core", "ops", "deref", "DerefMut"];
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: convert all references to use `LangItem::DerefMut`
|
|
|
|
|
2023-02-25 18:08:29 -06:00
|
|
|
error: hardcoded path to a diagnostic item
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui-internal/unnecessary_def_path_hardcoded_path.rs:12:43
|
2023-02-25 18:08:29 -06:00
|
|
|
|
|
2023-09-26 22:56:38 -05:00
|
|
|
LL | const OPS_MOD: [&str; 5] = ["core", "ops"];
|
|
|
|
| ^^^^^^^^^^^^^^^
|
2023-02-25 18:08:29 -06:00
|
|
|
|
|
|
|
|
= help: convert all references to use `sym::deref_method`
|
|
|
|
|
2022-10-23 08:18:45 -05:00
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|