Skip to content

Commit 70fafb1

Browse files
author
Alexander Regueiro
committed
Fixed rebase fallout.
1 parent f62872f commit 70fafb1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/librustc_typeck/astconv.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ impl<'o, 'gcx: 'tcx, 'tcx> dyn AstConv<'gcx, 'tcx> + 'o {
709709
}
710710
}
711711

712-
/// The given trait ref must actually be a trait.
712+
/// The given trait-ref must actually be a trait.
713713
pub(super) fn instantiate_poly_trait_ref_inner(&self,
714714
trait_ref: &hir::TraitRef,
715715
self_ty: Ty<'tcx>,
@@ -979,9 +979,9 @@ impl<'o, 'gcx: 'tcx, 'tcx> dyn AstConv<'gcx, 'tcx> + 'o {
979979

980980
for trait_bound in trait_bounds[1..].iter().rev() {
981981
// sanity check for non-principal trait bounds
982-
let tr = self.instantiate_poly_trait_ref(trait_bound,
983-
dummy_self,
984-
&mut Vec::new());
982+
let (tr, _) = self.instantiate_poly_trait_ref(trait_bound,
983+
dummy_self,
984+
&mut Vec::new());
985985
bound_trait_refs.push((tr, trait_bound.span));
986986
}
987987
bound_trait_refs.push((principal, trait_bounds[0].span));
@@ -1082,11 +1082,11 @@ impl<'o, 'gcx: 'tcx, 'tcx> dyn AstConv<'gcx, 'tcx> + 'o {
10821082
let mut potential_assoc_types_spans = vec![];
10831083
if let Some(potential_assoc_types) = potential_assoc_types {
10841084
if potential_assoc_types.len() == associated_types.len() {
1085-
// Only suggest when the amount of missing associated types is equals to the
1085+
// Only suggest when the number of missing associated types equals the number of
10861086
// extra type arguments present, as that gives us a relatively high confidence
10871087
// that the user forgot to give the associtated type's name. The canonical
10881088
// example would be trying to use `Iterator<isize>` instead of
1089-
// `Iterator<Item=isize>`.
1089+
// `Iterator<Item = isize>`.
10901090
suggest = true;
10911091
potential_assoc_types_spans = potential_assoc_types;
10921092
}

0 commit comments

Comments
 (0)