-
Notifications
You must be signed in to change notification settings - Fork 356
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
Retagging: Recurse into compound values #526
Conversation
} | ||
_ => {}, // nothing to do | ||
} | ||
let mutbl = match place.layout.ty.sty { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this can be simplified to an if let on builtin_deref(false)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately that reports immutable for Box
, making it useless.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a comment explaining this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wat. I need to review all uses of that method now -.-
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do.^^ And/or fix that method? ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this is related to the fact that
fn foo(x: &mut i32) { *x = 3 }
works but
fn foo(x: Box<i32>) { *x = 3 }
says it needs a mut
, as in mut x: Box<i32>
.
Bumped Rust version and merged #523, this should work now. |
This matches rust-lang/rust#55916, waiting for that to land.