Skip to content

Commit de110f9

Browse files
committed
Pacify tidy.
1 parent 65c3c90 commit de110f9

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

compiler/rustc_infer/src/traits/engine.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pub trait TraitEngine<'tcx>: 'tcx {
4343
fn pending_obligations(&self) -> Vec<PredicateObligation<'tcx>>;
4444

4545
/// Among all pending obligations, collect those are stalled on a inference variable which has
46-
/// changed since the last call to `select_where_possible`. Those obligations are marked as
46+
/// changed since the last call to `select_where_possible`. Those obligations are marked as
4747
/// successful and returned.
4848
fn drain_unstalled_obligations(
4949
&mut self,

compiler/rustc_trait_selection/src/traits/query/normalize.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,11 @@ impl<'cx, 'tcx> FallibleTypeFolder<'tcx> for QueryNormalizer<'cx, 'tcx> {
216216
let substs = substs.try_fold_with(self)?;
217217
let recursion_limit = self.tcx().recursion_limit();
218218
if !recursion_limit.value_within_limit(self.anon_depth) {
219-
// A closure or generator may have itself as in its upvars. This
220-
// should be checked handled by the recursion check for opaque types,
221-
// but we may end up here before that check can happen. In that case,
222-
// we delay a bug to mark the trip, and continue without revealing the
223-
// opaque.
219+
// A closure or generator may have itself as in its upvars.
220+
// This should be checked handled by the recursion check for opaque
221+
// types, but we may end up here before that check can happen.
222+
// In that case, we delay a bug to mark the trip, and continue without
223+
// revealing the opaque.
224224
self.infcx
225225
.err_ctxt()
226226
.build_overflow_error(&ty, self.cause.span, true)

compiler/rustc_ty_utils/src/needs_drop.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ where
110110
for component in components {
111111
match *component.kind() {
112112
// The information required to determine whether a generator has drop is
113-
// computed on MIR, while this very method is used to build MIR. To avoid
114-
// cycles, we consider that generators always require drop.
113+
// computed on MIR, while this very method is used to build MIR.
114+
// To avoid cycles, we consider that generators always require drop.
115115
ty::Generator(..) if tcx.sess.opts.unstable_opts.drop_tracking_mir => {
116116
return Some(Err(AlwaysRequiresDrop));
117117
}

0 commit comments

Comments
 (0)