This might not actually be a regression an instead the code may have previously erroneously compiled. I cannot find an an open issue obviously related to this though.
As you can see here this code does not compile with a "borrowed value does not live long enough" where it did previously. This comes from a call to diff::diff which has this signature.
The error message states that n may be dropped while the borrow in the next param state is still active. This fails to compile on both 1.50 and 1.49 if the param state is move to a local variable.
@rustbot modify labels: +regression-from-stable-to-beta
This might not actually be a regression an instead the code may have previously erroneously compiled. I cannot find an an open issue obviously related to this though.
As you can see here this code does not compile with a "borrowed value does not live long enough" where it did previously. This comes from a call to
diff::diffwhich has this signature.The error message states that
nmay be dropped while the borrow in the next paramstateis still active. This fails to compile on both 1.50 and 1.49 if the paramstateis move to a local variable.@rustbot modify labels: +regression-from-stable-to-beta