Skip to content

Commit 350a682

Browse files
committed
Auto merge of rust-lang#116849 - oli-obk:error_shenanigans, r=cjgillot
Avoid a `track_errors` by bubbling up most errors from `check_well_formed` I believe `track_errors` is mostly papering over issues that a sufficiently convoluted query graph can hit. I made this change, while the actual change I want to do is to stop bailing out early on errors, and instead use this new `ErrorGuaranteed` to invoke `check_well_formed` for individual items before doing all the `typeck` logic on them. This works towards resolving rust-lang#97477 and various other ICEs, as well as allowing us to use parallel rustc more (which is currently rather limited/bottlenecked due to the very sequential nature in which we do `rustc_hir_analysis::check_crate`) cc `@SparrowLii` `@Zoxc` for the new `try_par_for_each_in` function
2 parents 8e7d167 + 4fc503e commit 350a682

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

tests/ui/crashes/ice-6252.stderr

+2-12
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,6 @@ help: you might be missing a type parameter
2424
LL | impl<N, M, VAL> TypeVal<usize> for Multiply<N, M> where N: TypeVal<VAL> {}
2525
| +++++
2626

27-
error[E0046]: not all trait items implemented, missing: `VAL`
28-
--> $DIR/ice-6252.rs:11:1
29-
|
30-
LL | const VAL: T;
31-
| ------------ `VAL` from trait
32-
...
33-
LL | impl<N, M> TypeVal<usize> for Multiply<N, M> where N: TypeVal<VAL> {}
34-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `VAL` in implementation
35-
36-
error: aborting due to 3 previous errors
27+
error: aborting due to 2 previous errors
3728

38-
Some errors have detailed explanations: E0046, E0412.
39-
For more information about an error, try `rustc --explain E0046`.
29+
For more information about this error, try `rustc --explain E0412`.

0 commit comments

Comments
 (0)