Uh oh!
There was an error while loading. Please reload this page.
Match binding is assignment - #12508
Conversation
alexcrichton
commented
Feb 24, 2014
Can you elaborate some more in the commit message about what the bug was and how this fixes it? |
edwardw
commented
Feb 24, 2014
Added more description in commit message. Also tweaked the fix a little bit to follow the convention of existing code more closely. |
There was a problem hiding this comment.
Could you add a small description to these tests about what they are supposed to do and the bug that they're testing?
nikomatsakis
commented
Feb 24, 2014
Also, what @flaper87 said. Something like "// Test that immutable pattern bindings cannot be reassigned." |
edwardw
commented
Feb 24, 2014
r? |
flaper87
commented
Feb 24, 2014
@edwardw Could you squash those commits? Also, I think those tests could live in the same file. Not sure what others think but I'd prefer having just 1 |
edwardw
commented
Feb 24, 2014
@flaper87, can one compile-fail test have multiple failures? |
flaper87
commented
Feb 24, 2014
In its first pass, namely gather_loans, the borrow checker tracks the initialization sites among other things it does. It does so for let bindings with initializers but not for bindings in match arms, which are effectively also assignments. This patch does that for borrow checker. Closesrust-lang#12452.
edwardw
commented
Feb 24, 2014
r? |
fix: Don't respond to cancelled requests when retrying them Fixesrust-lang/rust-analyzer#12482
Fix infinite loop in `cast_sign_loss` when peeling unwrap method calls Fixesrust-lang#12506 The lint wants to peel method calls but didn't actually reassign the expression, leading to an infinite loop. ---- changelog: Fix infinite loop in [`cast_sign_loss`] when having two chained `.unwrap()` calls
Fix infinite loop in `cast_sign_loss` when peeling unwrap method calls Fixesrust-lang#12506 The lint wants to peel method calls but didn't actually reassign the expression, leading to an infinite loop. ---- changelog: Fix infinite loop in [`cast_sign_loss`] when having two chained `.unwrap()` calls
Fix infinite loop in `cast_sign_loss` when peeling unwrap method calls Fixesrust-lang#12506 The lint wants to peel method calls but didn't actually reassign the expression, leading to an infinite loop. ---- changelog: Fix infinite loop in [`cast_sign_loss`] when having two chained `.unwrap()` calls
In its first pass, namely gather_loans, the borrow checker tracks the
initialization sites among other things it does. It does so for let
bindings with initializers but not for bindings in match arms, which are
effectively also assignments. This patch does that for borrow checker.
Closes#12452.