Skip to content

Commit 46bb36d

Browse files
committed
implicit_infer: apply rustfmt
1 parent cb33248 commit 46bb36d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/librustc_typeck/outlives/implicit_infer.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ impl<'cx, 'tcx> ItemLikeVisitor<'tcx> for InferVisitor<'cx, 'tcx> {
6565

6666
debug!("InferVisitor::visit_item(item={:?})", item_did);
6767

68-
let node_id = self
69-
.tcx
68+
let node_id = self.tcx
7069
.hir
7170
.as_local_node_id(item_did)
7271
.expect("expected local def-id");
@@ -108,8 +107,7 @@ impl<'cx, 'tcx> ItemLikeVisitor<'tcx> for InferVisitor<'cx, 'tcx> {
108107
// Therefore mark `predicates_added` as true and which will ensure
109108
// we walk the crates again and re-calculate predicates for all
110109
// items.
111-
let item_predicates_len: usize = self
112-
.global_inferred_outlives
110+
let item_predicates_len: usize = self.global_inferred_outlives
113111
.get(&item_did)
114112
.map(|p| p.len())
115113
.unwrap_or(0);
@@ -211,7 +209,10 @@ fn insert_required_predicates_to_be_wf<'tcx>(
211209
// predicates in `check_explicit_predicates` we
212210
// need to ignore checking the explicit_map for
213211
// Self type.
214-
let substs = ex_trait_ref.with_self_ty(tcx, tcx.types.usize).skip_binder().substs;
212+
let substs = ex_trait_ref
213+
.with_self_ty(tcx, tcx.types.usize)
214+
.skip_binder()
215+
.substs;
215216
check_explicit_predicates(
216217
tcx,
217218
&ex_trait_ref.skip_binder().def_id,

0 commit comments

Comments
 (0)