rust/src
Guillaume Gomez 32502404e5
Rollup merge of #86506 - b-naber:gen_trait_impl_inconsistent, r=jackh726
Don't normalize xform_ret_ty during method candidate assembly

Fixes https://github.com/rust-lang/rust/issues/85671

Normalizing the return type of a method candidate together with the expected receiver type of the method can lead to valid method candidates being rejected during probing. Specifically in the example of the fixed issue we have a `self_ty` of the form `&A<&[Coef]>` whereas the `impl_ty` of the method would be `&A<_>`, if we normalize the projection in the return type we unify the inference variable with `Cont`, which will lead us to reject the candidate in the sup type check in `consider_probe`. Since we don't actually need the normalized return type during candidate assembly, we postpone the normalization until we consider candidates in `consider_probe`.
2021-10-08 22:30:38 +02:00
..
bootstrap Add wrapper for -Z gcc-ld=lld to invoke rust-lld with the correct flavor 2021-10-07 16:59:13 +02:00
build_helper Migrate to 2021 2021-09-20 22:21:42 -04:00
ci Get rid of broken ct-ng oldconfig everywhere and directly provide a suitable .config file. 2021-10-06 18:26:01 +02:00
doc Rollup merge of #89082 - smoelius:master, r=kennytm 2021-10-07 20:26:12 -07:00
etc Encode json files with UTF-8 2021-09-30 00:11:14 +09:00
librustdoc Auto merge of #89576 - tom7980:issue-89275-fix, r=estebank 2021-10-08 11:44:45 +00:00
llvm-project@a7348ae0df Update to the final LLVM 13.0.0 release 2021-10-01 21:06:19 -07:00
rustdoc-json-types Don't ignore impls for primitive types 2021-09-29 23:57:01 +09:00
test Rollup merge of #86506 - b-naber:gen_trait_impl_inconsistent, r=jackh726 2021-10-08 22:30:38 +02:00
tools Auto merge of #89659 - workingjubilee:rollup-0vggc69, r=workingjubilee 2021-10-08 06:16:31 +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 rustdoc, rls, etc.

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