or_patterns: implement :pat edition-specific behavior#80100
Conversation
This comment has been minimized.
This comment has been minimized.
|
I keep getting:
I've tried everything... |
This comment has been minimized.
This comment has been minimized.
|
Some UI tests need an update. |
This comment has been minimized.
This comment has been minimized.
|
For some reason, I keep getting the same bootstrapping error above. I'm unable to run any tests locally :( |
|
|
|
r=me with commits squashed. |
|
@petrochenkov squashed. |
|
@rustbot modify labels: +S-waiting-on-review -S-waiting-on-author |
|
@bors r+ |
|
📌 Commit fd4ae3a has been approved by |
This comment has been minimized.
This comment has been minimized.
|
⌛ Testing commit 1a7d00a with merge e88476cacdce4e89097f37c14e73962b68bcf642... |
|
The job Click to see the possible cause of the failure (guessed by this bot) |
|
💔 Test failed - checks-actions |
|
I don't understand the CI failure. It looks like llvm is missing? Seems unrelated? |
|
The failure looks unrelated to this PR. |
|
☀️ Test successful - checks-actions |
|
This seems to have been a slight regression in instruction counts (0.5%) on the deep vector benchmark. I think it would probably be good to modify the code to lazily query the edition if we encounter a pat pattern (or, even better, one that would differ in behavior) - edition queries are relatively expensive. |
|
@Mark-Simulacrum Hmm... that's good to know. Yeah, I can do that. I think we will want to do something different altogether, though -- adding a new I can hack something together to address the regression now if you want, but I would prefer to just do the above (it might take a bit longer though; not sure I can do it before the beta branches)... |
|
I am not worried about this hitting beta - regression is minor. I agree that the long term planning in this area probably means we don't need a temporary fix for now. |
|
FYI, if someone is following up perf regressions, #80459 should resolve this regression and recently merged. |
cc #54883 @joshtriplett
This PR implements the edition-specific behavior of
:patwrt or-patterns, as determined by the crater runs and T-lang consensus in #54883 (comment).I believe this can unblock stabilization of or_patterns.
r? @petrochenkov