Implement allow-by-default multiple_supertrait_upcastable lint

This commit is contained in:
Gary Guo
2022-12-09 02:27:03 +00:00
parent 7632db0e87
commit 5e44a65517
7 changed files with 74 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ use crate::fmt::{Debug, Display};
#[stable(feature = "rust1", since = "1.0.0")]
#[cfg_attr(not(test), rustc_diagnostic_item = "Error")]
#[rustc_has_incoherent_inherent_impls]
#[cfg_attr(not(bootstrap), allow(multiple_supertrait_upcastable))]
pub trait Error: Debug + Display {
/// The lower-level source of this error, if any.
///