File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/librustc_traits/chalk Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -379,7 +379,7 @@ impl<'tcx> chalk_solve::RustIrDatabase<RustInterner<'tcx>> for RustIrDatabase<'t
379
379
ty:: AdtKind :: Struct | ty:: AdtKind :: Union => None ,
380
380
ty:: AdtKind :: Enum => {
381
381
let constraint = self . tcx . adt_sized_constraint ( adt_def. did ) ;
382
- if constraint. 0 . len ( ) > 0 { unimplemented ! ( ) } else { Some ( true ) }
382
+ if ! constraint. 0 . is_empty ( ) { unimplemented ! ( ) } else { Some ( true ) }
383
383
}
384
384
} ,
385
385
_ => None ,
@@ -398,7 +398,7 @@ impl<'tcx> chalk_solve::RustIrDatabase<RustInterner<'tcx>> for RustIrDatabase<'t
398
398
ty:: AdtKind :: Struct | ty:: AdtKind :: Union => None ,
399
399
ty:: AdtKind :: Enum => {
400
400
let constraint = self . tcx . adt_sized_constraint ( adt_def. did ) ;
401
- if constraint. 0 . len ( ) > 0 { unimplemented ! ( ) } else { Some ( true ) }
401
+ if ! constraint. 0 . is_empty ( ) { unimplemented ! ( ) } else { Some ( true ) }
402
402
}
403
403
} ,
404
404
_ => None ,
You can’t perform that action at this time.
0 commit comments