File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,8 @@ impl<'tcx> LateLintPass<'tcx> for MultipleSupertraitUpcastable {
46
46
. tcx
47
47
. explicit_super_predicates_of ( def_id)
48
48
. iter_identity_copied ( )
49
- . filter_map ( |( pred, _) | pred. as_trait_clause ( ) ) ;
49
+ . filter_map ( |( pred, _) | pred. as_trait_clause ( ) )
50
+ . filter ( |pred| !cx. tcx . is_lang_item ( pred. def_id ( ) , hir:: LangItem :: MetaSized ) ) ;
50
51
if direct_super_traits_iter. count ( ) > 1 {
51
52
cx. emit_span_lint (
52
53
MULTIPLE_SUPERTRAIT_UPCASTABLE ,
Original file line number Diff line number Diff line change @@ -269,7 +269,6 @@ impl<T: ?Sized> const Deref for &mut T {
269
269
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
270
270
#[ const_trait]
271
271
#[ rustc_const_unstable( feature = "const_deref" , issue = "88955" ) ]
272
- #[ allow( multiple_supertrait_upcastable) ]
273
272
pub trait DerefMut : ~const Deref + PointeeSized {
274
273
/// Mutably dereferences the value.
275
274
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
You can’t perform that action at this time.
0 commit comments