Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upNightly borrowck regression #29103
Comments
This comment has been minimized.
This comment has been minimized.
|
triage: I-nominated |
rust-highfive
added
the
I-nominated
label
Oct 16, 2015
This comment has been minimized.
This comment has been minimized.
|
triage: P-high |
rust-highfive
removed
the
I-nominated
label
Oct 16, 2015
nikomatsakis
self-assigned this
Oct 16, 2015
rust-highfive
added
the
P-high
label
Oct 16, 2015
This comment has been minimized.
This comment has been minimized.
|
Not sure what's going on here just yet. |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
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)
};
} |
This comment has been minimized.
This comment has been minimized.
|
/me actively investigating now |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@pnkfelix can you confirm? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
I agree. Closing as dup of #29166. |
nikomatsakis
closed this
Oct 21, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
arcnmx commentedOct 16, 2015
The following code compiles on stable and beta but not on the current nightly: