Skip to content

Commit 043d873

Browse files
committed
fix tidy errors
1 parent 119882e commit 043d873

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/librustc_trans/monomorphize.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ fn resolve_associated_item<'a, 'tcx>(
112112
def_id, trait_id, rcvr_substs);
113113

114114
let trait_ref = ty::TraitRef::from_method(tcx, trait_id, rcvr_substs);
115-
let vtbl = tcx.trans_fulfill_obligation(DUMMY_SP, ty::ParamEnv::empty(traits::Reveal::All), ty::Binder(trait_ref));
115+
let vtbl = tcx.trans_fulfill_obligation(
116+
DUMMY_SP, ty::ParamEnv::empty(traits::Reveal::All), ty::Binder(trait_ref));
116117

117118
// Now that we know which impl is being used, we can dispatch to
118119
// the actual function:
@@ -226,7 +227,8 @@ pub fn custom_coerce_unsize_info<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
226227
substs: tcx.mk_substs_trait(source_ty, &[target_ty])
227228
});
228229

229-
match tcx.trans_fulfill_obligation(DUMMY_SP, ty::ParamEnv::empty(traits::Reveal::All), trait_ref) {
230+
match tcx.trans_fulfill_obligation(
231+
DUMMY_SP, ty::ParamEnv::empty(traits::Reveal::All), trait_ref) {
230232
traits::VtableImpl(traits::VtableImplData { impl_def_id, .. }) => {
231233
tcx.coerce_unsized_info(impl_def_id).custom_kind.unwrap()
232234
}

0 commit comments

Comments
 (0)