@@ -1051,8 +1051,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
10511051 #[ cfg( bootstrap) ]
10521052 { }
10531053
1054- if obligation. predicate . skip_binder ( ) . def_id ( ) == drop_trait
1055- {
1054+ if obligation. predicate . skip_binder ( ) . def_id ( ) == drop_trait {
10561055 return Ok ( ImplSourceConstDestructData { nested : vec ! [ ] } ) ;
10571056 }
10581057
@@ -1068,7 +1067,10 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
10681067 if let Some ( impl_def_id) = impl_def_id {
10691068 let obligations = self . infcx . commit_unconditionally ( |_| {
10701069 let mut new_obligation = obligation. clone ( ) ;
1071- new_obligation. predicate = new_obligation. predicate . map_bound ( |mut trait_pred| { trait_pred. trait_ref . def_id = drop_trait; trait_pred } ) ;
1070+ new_obligation. predicate = new_obligation. predicate . map_bound ( |mut trait_pred| {
1071+ trait_pred. trait_ref . def_id = drop_trait;
1072+ trait_pred
1073+ } ) ;
10721074 let substs = self . rematch_impl ( impl_def_id, & new_obligation) ;
10731075 debug ! ( ?substs, "impl substs" ) ;
10741076 let cause = obligation. derived_cause ( ImplDerivedObligation ) ;
@@ -1140,7 +1142,9 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
11401142 self_ty
11411143 . rebind ( ty:: TraitPredicate {
11421144 trait_ref : ty:: TraitRef {
1143- def_id : self . tcx ( ) . require_lang_item ( LangItem :: Destruct , None ) ,
1145+ def_id : self
1146+ . tcx ( )
1147+ . require_lang_item ( LangItem :: Destruct , None ) ,
11441148 substs : self . tcx ( ) . mk_substs_trait ( nested_ty, & [ ] ) ,
11451149 } ,
11461150 constness : ty:: BoundConstness :: ConstIfConst ,
0 commit comments