29 lines
1.1 KiB
Plaintext
29 lines
1.1 KiB
Plaintext
error: hardcoded path to a diagnostic item
|
|
--> tests/ui-internal/unnecessary_def_path_hardcoded_path.rs:10:36
|
|
|
|
|
LL | const DEREF_TRAIT: [&str; 4] = ["core", "ops", "deref", "Deref"];
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: convert all references to use `sym::Deref`
|
|
= note: `-D clippy::unnecessary-def-path` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::unnecessary_def_path)]`
|
|
|
|
error: hardcoded path to a language item
|
|
--> tests/ui-internal/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`
|
|
|
|
error: hardcoded path to a diagnostic item
|
|
--> tests/ui-internal/unnecessary_def_path_hardcoded_path.rs:12:43
|
|
|
|
|
LL | const OPS_MOD: [&str; 5] = ["core", "ops"];
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
= help: convert all references to use `sym::deref_method`
|
|
|
|
error: aborting due to 3 previous errors
|
|
|