File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1680,12 +1680,12 @@ pub fn eval_main<'a, 'tcx: 'a>(
1680
1680
}
1681
1681
}
1682
1682
Err ( e) => {
1683
- report ( tcx, & ecx, e) ;
1683
+ report ( tcx, & ecx, & e) ;
1684
1684
}
1685
1685
}
1686
1686
}
1687
1687
1688
- fn report ( tcx : TyCtxt , ecx : & EvalContext , e : EvalError ) {
1688
+ fn report ( tcx : TyCtxt , ecx : & EvalContext , e : & EvalError ) {
1689
1689
if let Some ( frame) = ecx. stack ( ) . last ( ) {
1690
1690
let block = & frame. mir . basic_blocks ( ) [ frame. block ] ;
1691
1691
let span = if frame. stmt < block. statements . len ( ) {
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ fn c() {
62
62
unsafe {
63
63
match v {
64
64
Value { tag : Tag :: I , u : U { i : 0 } } => true ,
65
- Value { tag : Tag :: F , u : U { f } } if f == 0.0 => true ,
65
+ Value { tag : Tag :: F , u : U { f } } => f == 0.0 ,
66
66
_ => false ,
67
67
}
68
68
}
You can’t perform that action at this time.
0 commit comments