Say that diagnostic items are preferred over paths

This commit is contained in:
Philipp Hansch 2020-04-10 23:16:48 +02:00
parent 97aa8dc778
commit 1d1b6d886b
No known key found for this signature in database
GPG key ID: 2B4399C4BF4DCBDE

View file

@ -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"];