Rollup merge of #22884 - japaric:obsolete, r=alexcrichton

This is leftover from #21843

If you still have `|&:| {}` closures in your code, simply remove the `&:` part.

[breaking-change]
This commit is contained in:
Manish Goregaokar 2015-02-28 13:56:29 +05:30
commit 040a811b91
7 changed files with 24 additions and 7 deletions

View file

@ -257,7 +257,7 @@ pub fn eval_const_expr_partial<'tcx>(tcx: &ty::ctxt<'tcx>,
}
}
(Ok(const_int(a)), Ok(const_int(b))) => {
let is_a_min_value = |&:| {
let is_a_min_value = || {
let int_ty = match ty::expr_ty_opt(tcx, e).map(|ty| &ty.sty) {
Some(&ty::ty_int(int_ty)) => int_ty,
_ => return false