Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c07a8b4

Browse files
committed
Auto merge of #101039 - ouz-a:issue-100991, r=compiler-errors
Don't catch overflow when running with cargo doc Fixes #100991 r? `@compiler-errors`
2 parents 450e99f + 36faf8f commit c07a8b4

File tree

1 file changed

+4
-1
lines changed
  • compiler/rustc_trait_selection/src/traits

1 file changed

+4
-1
lines changed

‎compiler/rustc_trait_selection/src/traits/project.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,10 @@ impl<'a, 'b, 'tcx> TypeFolder<'tcx> for AssocTypeNormalizer<'a, 'b, 'tcx> {
557557
// For cases like #95134 we would like to catch overflows early
558558
// otherwise they slip away away and cause ICE.
559559
let recursion_limit = self.tcx().recursion_limit();
560-
if !recursion_limit.value_within_limit(self.depth) {
560+
if !recursion_limit.value_within_limit(self.depth)
561+
// HACK: Don't overflow when running cargo doc see #100991
562+
&& !self.tcx().sess.opts.actually_rustdoc
563+
{
561564
let obligation = Obligation::with_depth(
562565
self.cause.clone(),
563566
recursion_limit.0,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /