Skip to content

Commit e0b0ffa

Browse files
authored
Rollup merge of #117159 - oli-obk:error_shenanigans, r=estebank
Work around the fact that `check_mod_type_wf` may spuriously return `ErrorGuaranteed` Even if that error is only emitted by `check_mod_item_types`. fixes rust-lang/rust#117153 A cleaner refactoring would merge/chain these queries in ways that ensure we only actually get an `ErrorGuaranteed` if there was an error emitted.
2 parents d6c241e + 49ab99a commit e0b0ffa

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

tests/ui/crashes/ice-6252.stderr

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@ 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: aborting due to 2 previous errors
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
2837

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

0 commit comments

Comments
 (0)