Skip to content

Commit 06c463b

Browse files
more comment fixups where obvious
1 parent 228cd00 commit 06c463b

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

compiler/rustc_hir_analysis/src/collect/resolve_bound_vars.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -728,8 +728,7 @@ impl<'a, 'tcx> Visitor<'tcx> for BoundVarContext<'a, 'tcx> {
728728
where_bound_origin: None,
729729
};
730730
self.with(scope, |this| {
731-
// a bare fn has no bounds, so everything
732-
// contained within is scoped within its binder.
731+
// a FnPtr has no bounds, so everything within is scoped within its binder
733732
intravisit::walk_ty(this, ty);
734733
});
735734
}
@@ -758,8 +757,7 @@ impl<'a, 'tcx> Visitor<'tcx> for BoundVarContext<'a, 'tcx> {
758757
where_bound_origin: None,
759758
};
760759
self.with(scope, |this| {
761-
// a bare fn has no bounds, so everything
762-
// contained within is scoped within its binder.
760+
// everything within is scoped within its binder
763761
intravisit::walk_ty(this, ty);
764762
});
765763
}

compiler/rustc_hir_typeck/src/callee.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
203203
let adjusted_ty =
204204
self.structurally_resolve_type(autoderef.span(), autoderef.final_ty(false));
205205

206-
// If the callee is a bare function or a closure, then we're all set.
206+
// If the callee is a function pointer or a closure, then we're all set.
207207
match *adjusted_ty.kind() {
208208
ty::FnDef(..) | ty::FnPtr(..) => {
209209
let adjustments = self.adjust_steps(autoderef);

0 commit comments

Comments
 (0)