Skip to content

Commit 8b00850

Browse files
committed
Fix tidy
1 parent 8a93f34 commit 8b00850

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

src/librustc/middle/infer/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -653,13 +653,15 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
653653
.borrow_mut()
654654
.unsolved_variables()
655655
.into_iter()
656-
.map(|v| (self.tcx.mk_int_var(v), type_variable::Default::Integer));
656+
.map(|v| (self.tcx.mk_int_var(v),
657+
type_variable::Default::Integer));
657658

658659
let unbound_float_vars = self.float_unification_table
659660
.borrow_mut()
660661
.unsolved_variables()
661662
.into_iter()
662-
.map(|v| (self.tcx.mk_float_var(v), type_variable::Default::Float));
663+
.map(|v| (self.tcx.mk_float_var(v),
664+
type_variable::Default::Float));
663665

664666
variables.extend(unbound_ty_vars);
665667
variables.extend(unbound_int_vars);

src/librustc_typeck/check/mod.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1835,10 +1835,11 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
18351835
for &(ref ty, ref default) in &defaults_to_apply {
18361836
// We should NEVER process anything but a TyInfer.
18371837
assert!(match ty.sty { ty::TyInfer(_) => true, _ => false });
1838+
18381839
match default {
18391840
&Default::User(ref user_default) => {
1840-
debug!("select_all_obligations_and_apply_defaults: ty: {:?} with default: {:?}",
1841-
ty, default);
1841+
debug!("select_all_obligations_and_apply_defaults: \
1842+
ty: {:?} with default: {:?}", ty, default);
18421843

18431844
has_user_default.insert((*ty, user_default.clone()));
18441845
},
@@ -1958,9 +1959,9 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
19581959
// table then apply defaults until we find a conflict. That default must be the one
19591960
// that caused conflict earlier.
19601961
fn find_conflicting_default(&self,
1961-
tys_with_defaults: &HashSet<(Ty<'tcx>, type_variable::UserDefault<'tcx>)>,
1962-
conflict: &(Ty<'tcx>, type_variable::UserDefault<'tcx>))
1963-
-> Option<type_variable::UserDefault<'tcx>> {
1962+
tys_with_defaults: &HashSet<(Ty<'tcx>, type_variable::UserDefault<'tcx>)>,
1963+
conflict: &(Ty<'tcx>, type_variable::UserDefault<'tcx>))
1964+
-> Option<type_variable::UserDefault<'tcx>> {
19641965
// Ensure that we apply the conflicting default first
19651966
let mut unbound_tyvars = Vec::with_capacity(tys_with_defaults.len() + 1);
19661967
unbound_tyvars.push(conflict);

0 commit comments

Comments
 (0)