summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2023-01-21 10:12:11 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2023-01-27 22:01:25 +0000
commitde110f920844f5dd299c6db9ea182efacf7800cf (patch)
tree07f5d0bcc11689b2e0ba61e115d1eb9fbd1d70b1 /compiler/rustc_trait_selection/src
parent65c3c90f3ecaa011bd7067efd562397de219facf (diff)
downloadrust-de110f920844f5dd299c6db9ea182efacf7800cf.tar.gz
rust-de110f920844f5dd299c6db9ea182efacf7800cf.zip
Pacify tidy.
Diffstat (limited to 'compiler/rustc_trait_selection/src')
-rw-r--r--compiler/rustc_trait_selection/src/traits/query/normalize.rs10
1 files changed, 5 insertions, 5 deletions
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)