rust/src
bors 9cdefd763b Auto merge of #93691 - compiler-errors:mir-tainted-by-errors, r=oli-obk
Implement `tainted_by_errors` in MIR borrowck, use it to skip CTFE

Putting this up for initial review. The issue that I found is when we're evaluating a const, we're doing borrowck, but doing nothing with the fact that borrowck fails.

This implements a `tainted_by_errors` field for MIR borrowck like we have in infcx, so we can use that information to return an `Err` during const eval if our const fails to borrowck.

This PR needs some cleaning up. I should probably just use `Result` in more places, instead of `.expect`ing in the places I am, but I just wanted it to compile so I could see if it worked!

Fixes #93646

r? `@oli-obk`
feel free to reassign
2022-02-12 05:19:33 +00:00
..
bootstrap Revert "Auto merge of #92007 - oli-obk:lazy_tait2, r=nikomatsakis" 2022-02-11 07:18:06 +00:00
build_helper
ci Split x86_64 apple builder into two 2022-02-10 15:27:00 -05:00
doc add missing space 2022-02-08 09:34:36 +01:00
etc Auto merge of #93626 - wesleywiser:fix_hashmap_natvis, r=michaelwoerister 2022-02-08 10:05:05 +00:00
librustdoc Auto merge of #93893 - oli-obk:sad_revert, r=oli-obk 2022-02-11 17:39:34 +00:00
llvm-project@fdc8f411ec Update llvm-project submodule 2022-02-05 21:00:23 +00:00
rustdoc-json-types
test Auto merge of #93691 - compiler-errors:mir-tainted-by-errors, r=oli-obk 2022-02-12 05:19:33 +00:00
tools Rollup merge of #93660 - aDotInTheVoid:rustdoc-type-tests, r=CraftSpider 2022-02-11 21:48:47 +01: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.