diff options
| author | bors <bors@rust-lang.org> | 2022-02-12 05:19:33 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-02-12 05:19:33 +0000 |
| commit | 9cdefd763b910ffd1d42233a8c752ab5fd84ca4d (patch) | |
| tree | 5609a6af2043d0103323f5b77e32fcb286a4dd18 /compiler/rustc_data_structures/src/stack.rs | |
| parent | fc323035ac49b8d834fc2a0f580af8fd45e90b30 (diff) | |
| parent | 67ad0ffdf8a979535eac7da6bec8626a87fb2843 (diff) | |
| download | rust-9cdefd763b910ffd1d42233a8c752ab5fd84ca4d.tar.gz rust-9cdefd763b910ffd1d42233a8c752ab5fd84ca4d.zip | |
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
Diffstat (limited to 'compiler/rustc_data_structures/src/stack.rs')
0 files changed, 0 insertions, 0 deletions
