Does the MIR generated for match still build in order-deps visible to MIR-borrowck? #58646
Labels
A-NLL
Area: Non-lexical lifetimes (NLL)
NLL-complete
Working towards the "valid code works" goal
P-medium
Medium priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Spawned off of PR #57609
The above PR has an interesting unit test that checks that we aren't assuming too much order dependence; the test (from file named "match-cfg-fake-edges.rs") looks like this (play):
while reviewing that test case, I wondered whether order-dependence, as implicitly defined by the above test, would also include this variant:
Today,
all_previous_tests_may_be_done
is rejected (with a warning under NLL migration mode, and a hard error if you opt into#![feature(nll)
, butany_tests_may_be_done
is accepted.Is this an internally consistent policy?
Maybe my question is most simply put like this:
That would increase our flexibility for MIR code-generation, in theory, even further, right?
The text was updated successfully, but these errors were encountered: