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:
commit
040a811b91
7 changed files with 24 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue