Fix borrowed_box lint for Box<Any>

This commit is contained in:
Stanislav Tkach 2017-08-14 23:04:56 +03:00 committed by Stanislav Tkach
parent 7cdaeae1b8
commit 45ff467c31
3 changed files with 63 additions and 1 deletions

View file

@ -1,6 +1,7 @@
//! This module contains paths to types and functions Clippy needs to know
//! about.
pub const ANY_TRAIT: [&'static str; 3] = ["std", "any", "Any"];
pub const ASMUT_TRAIT: [&'static str; 3] = ["core", "convert", "AsMut"];
pub const ASREF_TRAIT: [&'static str; 3] = ["core", "convert", "AsRef"];
pub const BEGIN_PANIC: [&'static str; 3] = ["std", "panicking", "begin_panic"];