-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Nightly borrowck regression #29103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
P-high
High priority
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
triage: I-nominated |
triage: P-high |
Not sure what's going on here just yet. |
|
Minified: #[derive(Clone)]
struct S;
fn borrow<'a>(s: &'a S) -> Vec<&'a S> { vec![s] }
fn main() {
let s = S;
match <Vec<&S> as IntoIterator>::into_iter(borrow(&s)) {
_ => drop(s)
};
} |
/me actively investigating now |
@pnkfelix can you confirm? |
I agree. Closing as dup of #29166. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
P-high
High priority
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following code compiles on stable and beta but not on the current nightly:
The text was updated successfully, but these errors were encountered: