rust/src
bors 397b66e77b 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
2022-12-15 11:11:49 +00:00
..
bootstrap Rollup merge of #105624 - compiler-errors:cache-unsound, r=jyn514 2022-12-14 17:17:58 +01:00
ci Rollup merge of #105663 - andrewpollack:patch-1, r=tmandry 2022-12-14 10:58:47 +01:00
doc
etc
librustdoc Auto merge of #105657 - oli-obk:mk_projection_ty, r=lcnr 2022-12-15 04:21:25 +00:00
llvm-project@3dfd4d93fa
rustdoc-json-types
test Auto merge of #105285 - compiler-errors:conflicting-param-env-2, r=estebank 2022-12-15 11:11:49 +00:00
tools Auto merge of #105713 - bjorn3:sync_cg_clif-2022-12-14, r=bjorn3 2022-12-15 07:23:38 +00:00
README.md
stage0.json
version

This directory contains the source code of the rust project, including:

  • The test suite
  • The bootstrapping build system
  • Various submodules for tools, like cargo, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.