Skip to content

revert #75443, update mir validator#78410

Merged
bors merged 2 commits intorust-lang:masterfrom
lcnr:revert75443
Nov 8, 2020
Merged

revert #75443, update mir validator#78410
bors merged 2 commits intorust-lang:masterfrom
lcnr:revert75443

Conversation

@lcnr
Copy link
Contributor

@lcnr lcnr commented Oct 26, 2020

This PR reverts #75443 to fix #75992 and instead uses #75419 to fix #75313.

Adapts #75419 to correctly deal with unevaluated constants as otherwise some feature(const_evaluatable_checked) tests would ICE.

Note that #72793 was also fixed by #75443, but as that issue only concerns feature(type_alias_impl_trait) I deleted that test case for now and would reopen that issue.

#75443 may have also allowed some other code to now successfully compile which would make this revert a breaking change after 2 stable versions, but I hope that this is a purely theoretical concern.

See https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp/topic/generator.20upvars/near/214617274 for more reasoning about this.

r? @nikomatsakis @eddyb @RalfJung

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-mir-opt Area: MIR optimizations A-type-system Area: Type system beta-accepted Accepted for backporting to the compiler in the beta channel. merged-by-bors This PR was explicitly merged by bors. relnotes Marks issues that should be documented in the release notes of the next release. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Increasingly slow compilation as more levels of async are added in Rust 1.46 Panic when compiling gluon on 1.46