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
379379 ty:: AdtKind :: Struct | ty:: AdtKind :: Union => None ,
380380 ty:: AdtKind :: Enum => {
381381 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 ) }
383383 }
384384 } ,
385385 _ => None ,
@@ -398,7 +398,7 @@ impl<'tcx> chalk_solve::RustIrDatabase<RustInterner<'tcx>> for RustIrDatabase<'t
398398 ty:: AdtKind :: Struct | ty:: AdtKind :: Union => None ,
399399 ty:: AdtKind :: Enum => {
400400 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 ) }
402402 }
403403 } ,
404404 _ => None ,
You can’t perform that action at this time.
0 commit comments