librustc: Implement moves based on type. r=nmatsakis

This commit is contained in:
Patrick Walton 2012-12-04 15:38:04 -08:00
parent f02e9db212
commit 33c1e47c1b
19 changed files with 363 additions and 47 deletions

View file

@ -100,8 +100,8 @@ enum matcher_pos_up { /* to break a circularity */
}
fn is_some(&&mpu: matcher_pos_up) -> bool {
match mpu {
matcher_pos_up(None) => false,
match &mpu {
&matcher_pos_up(None) => false,
_ => true
}
}