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 63dc831 commit 3764ec7Copy full SHA for 3764ec7
src/rustc/middle/borrowck/gather_loans.rs
@@ -119,12 +119,7 @@ fn req_loans_in_expr(ex: @ast::expr,
119
let arg_cmt = self.bccx.cat_expr(*arg);
120
self.guarantee_valid(arg_cmt, m_imm, scope_r);
121
}
122
- ast::by_val => {
123
- // FIXME (#2493): safety checks would be required here,
124
- // but the correct set is really hard to get right,
125
- // and modes are going away anyhow.
126
- }
127
- ast::by_move | ast::by_copy => {}
+ ast::by_val | ast::by_move | ast::by_copy => {}
128
129
130
visit::visit_expr(ex, self, vt);
0 commit comments