rust/src
bors 6718ea1cff Auto merge of #101834 - compiler-errors:super-deduce-closure-sig, r=lcnr
Elaborate supertrait obligations when deducing closure signatures

We elaborate the supertrait obligations of any registered predicates for a closure to see if we can infer a closure signature.

This is not as general of a fix as it *could* be, since we just elaborate supertrait bounds instead of doing a theoretical walk of _all_ registered predicates that might cause us to deduce `Fn` trait information for a closure infer var. I don't even know how to come up with an example that fails here but would work with a more general system.

Fixes #23012
Also fixes the existing compile failure in #57611

r? `@ghost` for now until I do a perf run
cc `@nikomatsakis` since you commented on https://github.com/rust-lang/rust/issues/23012#issuecomment-1152397290
2022-11-04 00:51:37 +00:00
..
bootstrap Ban dashes in miropt test file names 2022-11-02 15:54:46 -07:00
ci Revert "ci: Bring back ninja for dist builders" 2022-11-01 19:36:25 +01:00
doc Rollup merge of #103674 - ehuss:split-debuginfo-doc-unstable, r=davidtwco 2022-11-01 12:03:40 +09:00
etc Rollup merge of #102092 - kxxt:patch-1, r=joshtriplett 2022-10-14 23:43:42 +02:00
librustdoc Rollup merge of #103890 - notriddle:notriddle/mobile-rustdoc-padding-top, r=GuillaumeGomez 2022-11-02 22:06:29 +01:00
llvm-project@2a2ea6b49e Update LLVM submodule 2022-10-24 14:49:18 +02:00
rustdoc-json-types rustdoc-json-types: Improve ItemSummary::path docs 2022-10-28 10:25:48 +01:00
test Elaborate supertrait obligations when deducing closure signature 2022-11-03 15:52:38 +00:00
tools Revert "Update cargo" 2022-11-03 08:37:45 -04:00
README.md Remove miri from the submodule list and require it for CI to pass 2022-09-21 15:35:53 +00:00
stage0.json bump stage0 2022-09-26 10:13:46 +02:00
version Bump to 1.67.0 2022-10-29 10:28:52 -04:00

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.