From 1d1b6d886b26b76918d9b42079bf596f499a68b3 Mon Sep 17 00:00:00 2001 From: Philipp Hansch Date: Fri, 10 Apr 2020 23:16:48 +0200 Subject: [PATCH] Say that diagnostic items are preferred over paths --- clippy_lints/src/utils/paths.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clippy_lints/src/utils/paths.rs b/clippy_lints/src/utils/paths.rs index b79ba345d..7a6a6b02e 100644 --- a/clippy_lints/src/utils/paths.rs +++ b/clippy_lints/src/utils/paths.rs @@ -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 for more information. pub const ANY_TRAIT: [&str; 3] = ["std", "any", "Any"]; pub const ARC: [&str; 3] = ["alloc", "sync", "Arc"];