We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9012a2 commit e014ab9Copy full SHA for e014ab9
src/librustc/middle/borrowck/gather_loans/gather_moves.rs
@@ -105,7 +105,8 @@ fn check_is_legal_to_move_from(bccx: @BorrowckCtxt,
105
mc::cat_implicit_self(*) |
106
mc::cat_copied_upvar(*) |
107
mc::cat_deref(_, _, mc::region_ptr(*)) |
108
- mc::cat_deref(_, _, mc::gc_ptr(*)) => {
+ mc::cat_deref(_, _, mc::gc_ptr(*)) |
109
+ mc::cat_deref(_, _, mc::unsafe_ptr(*)) => {
110
bccx.span_err(
111
cmt0.span,
112
fmt!("cannot move out of %s",
@@ -129,8 +130,7 @@ fn check_is_legal_to_move_from(bccx: @BorrowckCtxt,
129
130
mc::cat_rvalue(*) |
131
mc::cat_local(*) |
132
mc::cat_arg(*) |
- mc::cat_self(*) |
133
- mc::cat_deref(_, _, mc::unsafe_ptr(*)) => {
+ mc::cat_self(*) => {
134
true
135
}
136
0 commit comments