@@ -1051,8 +1051,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
1051
1051
#[ cfg( bootstrap) ]
1052
1052
{ }
1053
1053
1054
- if obligation. predicate . skip_binder ( ) . def_id ( ) == drop_trait
1055
- {
1054
+ if obligation. predicate . skip_binder ( ) . def_id ( ) == drop_trait {
1056
1055
return Ok ( ImplSourceConstDestructData { nested : vec ! [ ] } ) ;
1057
1056
}
1058
1057
@@ -1068,7 +1067,10 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
1068
1067
if let Some ( impl_def_id) = impl_def_id {
1069
1068
let obligations = self . infcx . commit_unconditionally ( |_| {
1070
1069
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
+ } ) ;
1072
1074
let substs = self . rematch_impl ( impl_def_id, & new_obligation) ;
1073
1075
debug ! ( ?substs, "impl substs" ) ;
1074
1076
let cause = obligation. derived_cause ( ImplDerivedObligation ) ;
@@ -1140,7 +1142,9 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
1140
1142
self_ty
1141
1143
. rebind ( ty:: TraitPredicate {
1142
1144
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 ) ,
1144
1148
substs : self . tcx ( ) . mk_substs_trait ( nested_ty, & [ ] ) ,
1145
1149
} ,
1146
1150
constness : ty:: BoundConstness :: ConstIfConst ,
0 commit comments