diff options
author | bors <bors@rust-lang.org> | 2022-12-15 11:11:49 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2022-12-15 11:11:49 +0000 |
commit | 397b66e77b279de5006facf87979f9ecff5c7f87 (patch) | |
tree | 5ab37d8577f6e34c7976464f39bc3bbe6a7d14d6 /tests/rustdoc-js-std/parser-errors.js | |
parent | d67000e44e1b9908c81fc4d5de875608f1b80ae9 (diff) | |
parent | d10f6b44e1243bf4d68ed4f0f5038049330a047e (diff) | |
download | rust-397b66e77b279de5006facf87979f9ecff5c7f87.tar.gz |
Auto merge of #105285 - compiler-errors:conflicting-param-env-2, r=estebank
Highlight conflicting param-env candidates, again
Un-reverts #98794 (i.e. reverts #99290).
The previous time I attempted to land this PR, it was because of an incremental issue (#99233). The repro instructions in the issue is no longer manifest the ICE -- I think it's because this ambiguity code was refactored (I think by `@lcnr)` to no longer store the ambiguities in the fulfillment error, but instead recompute them on the fly.
The main motivation for trying to re-land this is that it fixes #105131 by highlighting the root-cause of the issue, which is conflicting param-env candidates:
```
error[E0283]: type annotations needed: cannot satisfy `Self: Gen<'source>`
|
note: multiple `impl`s or `where` clauses satisfying `Self: Gen<'source>` found
--> $DIR/conflicting-bounds.rs:3:1
|
LL | pub trait Gen<'source> {
| ^^^^^^^^^^^^^^^^^^^^^^
...
LL | Self: for<'s> Gen<'s, Output = T>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0283`.
```
Fixes #105131.
Fixes (again) #98786
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions