Repository navigation
Conversation
bd1a065 to
920b5af
Compare
|
r? mir |
|
Some changes occurred in match lowering cc @Nadrieril |
|
Does this need a crater run? If so, a check run or a test run? |
|
@theemathas strictly speaking, it affects dynamic semantics, so yeah it should have a test run. practically, I find it unlikely that we'd actually get a test failure from it. assuming that this indeed only affects dynamic semantics1, we'd need:
so if there's any planned build-and-test crater rollups, my preference would be to include this there to deduplicate some of the work triaging spurious failures Footnotes
|
|
I don't think we're doing any build-and-test crater runs in the near future other than the beta crater run for 1.101. @bors try |
…try> deduplicate `super let` bindings that have the scope of an `if let` guard's scrutinee
This comment has been minimized.
This comment has been minimized.
|
@craterbot run mode=build-and-test |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
|
🎉 Experiment
Footnotes
|
|
@craterbot run mode=build-and-test crates=https://crater-reports.s3.amazonaws.com/pr-165363-1/retry-regressed-list.txt p=1 |
|
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
Match guard lowering assumes all the locals in an
if letguard's top-level scope are de-duplicated across instances of the guard, so that only one instance of each has to be dropped when leaving the arm body. We already do this for temporaries created byBuilder::as_temp, butsuper letbindings can also end up there since they're scoped like temporaries; let's deduplicate them too.Fixes #165322: we were creating a separate instance of each such
super letbinding for each time the guard was lowered, but only one of them was dropped in the match body.