-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Fix ICE in DerivePass #666
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
Conversation
We don't provide the correct parameter env, which casues https://gist.github.com/Amanieu/67fa4d9aceb7d2da18a6
Oups, my bad. I must have found that somewhere and reused it without too much thoughts. |
@mcarton this still fails on @Amanieu's code, though. http://vanquished.zapto.org/~amanieu/intrusive.zip Could you have a look? |
ICE, for reference:
|
Minimal example: #![feature(plugin)]
#![plugin(clippy)]
pub struct Cursor<'a> {
_foo: &'a u8,
}
impl<'a> Copy for Cursor<'a> {}
impl<'a> Clone for Cursor<'a> {
fn clone(&self) -> Cursor<'a> {
unimplemented!();
}
} |
Please avoid |
Could we have a run-pass test case? |
I’ve added a test in my PR (but not in run-pass as “The run-pass mode is strictly not necessary since it's baked right into Cargo, but I haven't bothered to take it out”). |
We don't provide the correct parameter env, which casues https://gist.github.com/Amanieu/67fa4d9aceb7d2da18a6