Uh oh!
There was an error while loading. Please reload this page.
Forbid lifetime bounds in nested opaque types in binders - #96970
Conversation
rust-highfive
commented
May 12, 2022
(rust-highfive has picked a reviewer for you, use r? to override) |
oli-obk
commented
May 12, 2022
cc @cjgillot on the HIR lowering changes. I think it's fine to only do this for named lifetimes, as all others are forbidden anyway ( |
oli-obk
commented
May 12, 2022
@bors try |
bors
commented
May 12, 2022
⌛ Trying commit 1b73e54 with merge 3f7b27fe41ccd116a4c0829bd9a14b65bada4578... |
apiraino
commented
May 12, 2022
bors
commented
May 12, 2022
☀️ Try build successful - checks-actions |
oli-obk
commented
May 12, 2022
@craterbot check |
craterbot
commented
May 12, 2022
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
craterbot
commented
May 12, 2022
🚧 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
cjgillot
commented
May 12, 2022
@oli-obk I don't understand your comment about anonymous lifetimes.
To be on the safe side, I'd rather have named and anonymous lifetimes treated the same way. The "other errors" are feature gates for impl-trait in |
compiler-errors
commented
May 13, 2022
r=me if you're still in search for a reviewer, I am satisfied with the most recent changes after the second commit |
oli-obk
commented
May 13, 2022
@bors r=compiler-errors p=1 |
bors
commented
May 13, 2022
📌 Commit 193a16b has been approved by |
Mark-Simulacrum
commented
May 13, 2022
This doesn't cherry pick cleanly onto beta, so I'm holding off on a backport until someone can prepare that -- the diff doesn't look trivial to me, though I haven't looked super closely. If necessary I'll probably devote a few hours on the weekend or Monday to push it through. |
bors
commented
May 14, 2022
⌛ Testing commit 193a16b with merge 71e302eebe4f7c63d76f39c5b03453e12b6c3db0... |
rust-log-analyzer
commented
May 14, 2022
The job Click to see the possible cause of the failure (guessed by this bot) |
bors
commented
May 14, 2022
💔 Test failed - checks-actions |
NLL tests need to be blessed, but @pnkfelix has pointed out an interesting side effect of this PR, being:
Current nightly accepts the following code, for example: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=f25115b4ae04c819e56781bf952b766f @bors r- until that issue is settled |
Forbid nested opaque types to reference HRTB from opaque types. Avoids rust-lang#96194 Alternative to rust-lang#96970 r? `@oli-obk`
oli-obk
commented
May 14, 2022
Closing as @cjgillot wrote an actual fix instead of overzealous patch that this PR was |
Mark-Simulacrum
commented
May 15, 2022
De-accepting from beta backport. |
…Simulacrum Bump to 1.63 r? `@Mark-Simulacrum` Posting this now, but will only approve later today / early tomorrow to give a little more time for not-yet-approved PRs to land on master (e.g., rust-lang#96970).
craterbot
commented
May 15, 2022
🎉 Experiment
|
avoids #96194
Not closing the issue until we have this behind a feature gate and with a corresponding tracking issue.
Since this change is supposed to get backported to beta, I don't want to add a gate and more logic in this PR. Instead, it will happen on a follow up PR solely on nightly.