mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 07:00:55 +00:00
Say that diagnostic items are preferred over paths
This commit is contained in:
parent
97aa8dc778
commit
1d1b6d886b
1 changed files with 3 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
|||
//! This module contains paths to types and functions Clippy needs to know
|
||||
//! about.
|
||||
//!
|
||||
//! Whenever possible, please consider diagnostic items over hardcoded paths.
|
||||
//! See <https://github.com/rust-lang/rust-clippy/issues/5393> for more information.
|
||||
|
||||
pub const ANY_TRAIT: [&str; 3] = ["std", "any", "Any"];
|
||||
pub const ARC: [&str; 3] = ["alloc", "sync", "Arc"];
|
||||
|
|
Loading…
Reference in a new issue