match guard is lengthening borrow unexpectedly under NLL #62170
Labels
A-NLL
Area: Non-lexical lifetimes (NLL)
C-bug
Category: This is a bug.
NLL-complete
Working towards the "valid code works" goal
NLL-polonius
Issues related for using Polonius in the borrow checker
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Spawned off of #60914, namely the regression of the cs_review crate
I was looking for examples of soundness issues fixed by NLL for a blog post that I'm working on, and the first crate I looked at stymied me.
Maybe I'm forgetting something crucial, but I would think we might be able to accept this code (play):
Note: I don't think we're going to hit this "regression" too often, because it critically depends on some bug in AST-borrowck where I believe AST-borrowck mishandled
{ ... }
around the match input. Since I do not think that is a common pattern in match inputs, we probably can get away with not addressing this for a while.The text was updated successfully, but these errors were encountered: