diff options
| -rw-r--r-- | compiler/rustc_infer/src/traits/engine.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/query/normalize.rs | 10 | ||||
| -rw-r--r-- | compiler/rustc_ty_utils/src/needs_drop.rs | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/compiler/rustc_infer/src/traits/engine.rs b/compiler/rustc_infer/src/traits/engine.rs index ef2fee02e08..f75344f20b6 100644 --- a/compiler/rustc_infer/src/traits/engine.rs +++ b/compiler/rustc_infer/src/traits/engine.rs @@ -43,7 +43,7 @@ pub trait TraitEngine<'tcx>: 'tcx { fn pending_obligations(&self) -> Vec<PredicateObligation<'tcx>>; /// Among all pending obligations, collect those are stalled on a inference variable which has - /// changed since the last call to `select_where_possible`. Those obligations are marked as + /// changed since the last call to `select_where_possible`. Those obligations are marked as /// successful and returned. fn drain_unstalled_obligations( &mut self, diff --git a/compiler/rustc_trait_selection/src/traits/query/normalize.rs b/compiler/rustc_trait_selection/src/traits/query/normalize.rs index 8249144f57a..1b2533a5cf6 100644 --- a/compiler/rustc_trait_selection/src/traits/query/normalize.rs +++ b/compiler/rustc_trait_selection/src/traits/query/normalize.rs @@ -216,11 +216,11 @@ impl<'cx, 'tcx> FallibleTypeFolder<'tcx> for QueryNormalizer<'cx, 'tcx> { let substs = substs.try_fold_with(self)?; let recursion_limit = self.tcx().recursion_limit(); if !recursion_limit.value_within_limit(self.anon_depth) { - // A closure or generator may have itself as in its upvars. This - // should be checked handled by the recursion check for opaque types, - // but we may end up here before that check can happen. In that case, - // we delay a bug to mark the trip, and continue without revealing the - // opaque. + // A closure or generator may have itself as in its upvars. + // This should be checked handled by the recursion check for opaque + // types, but we may end up here before that check can happen. + // In that case, we delay a bug to mark the trip, and continue without + // revealing the opaque. self.infcx .err_ctxt() .build_overflow_error(&ty, self.cause.span, true) diff --git a/compiler/rustc_ty_utils/src/needs_drop.rs b/compiler/rustc_ty_utils/src/needs_drop.rs index f519ea01a2c..cd1475391a4 100644 --- a/compiler/rustc_ty_utils/src/needs_drop.rs +++ b/compiler/rustc_ty_utils/src/needs_drop.rs @@ -110,8 +110,8 @@ where for component in components { match *component.kind() { // The information required to determine whether a generator has drop is - // computed on MIR, while this very method is used to build MIR. To avoid - // cycles, we consider that generators always require drop. + // computed on MIR, while this very method is used to build MIR. + // To avoid cycles, we consider that generators always require drop. ty::Generator(..) if tcx.sess.opts.unstable_opts.drop_tracking_mir => { return Some(Err(AlwaysRequiresDrop)); } |
