Commit 27195ed
authored
Rollup merge of rust-lang#96383 - compiler-errors:issue-96381, r=estebank
Fix erased region escaping into wfcheck due to rust-lang#95395
We can just use `liberate_late_bound_regions` instead of `erase_late_bound_regions`... This gives us `ReEarlyBound` instead of `ReErased`, the former being something typeck actually knows how to deal with...
Fixes rust-lang#96381
Side-note: We only actually get far enough in the compiler pipeline to cause this ICE when we're invoking rustdoc. We actually abort rustc right before wfcheck because of the error that we emit (having `_` in the type signature). Why does rustdoc keep going even though we raise an error?File tree
2 files changed
+20
-4
lines changed- compiler/rustc_typeck/src/astconv
- src/test/rustdoc
2 files changed
+20
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2681 | 2681 | | |
2682 | 2682 | | |
2683 | 2683 | | |
2684 | | - | |
| 2684 | + | |
2685 | 2685 | | |
2686 | 2686 | | |
2687 | 2687 | | |
2688 | 2688 | | |
2689 | 2689 | | |
2690 | 2690 | | |
2691 | | - | |
| 2691 | + | |
2692 | 2692 | | |
2693 | | - | |
| 2693 | + | |
2694 | 2694 | | |
2695 | 2695 | | |
2696 | 2696 | | |
2697 | 2697 | | |
2698 | | - | |
| 2698 | + | |
2699 | 2699 | | |
2700 | 2700 | | |
2701 | 2701 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
0 commit comments