File tree Expand file tree Collapse file tree 5 files changed +15
-3
lines changed Expand file tree Collapse file tree 5 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 52124d7c807404a551c499a43736722ade9d9890
2
+ refs/heads/master: ead9ab84b80ba3b172d529b1d2a2917bb05b4820
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 270a677d4d698916f5ad103f0afc3c070b8dbeb4
5
5
refs/heads/try: 649d35e4d830b27806705dc5352c86ab6d6fd1a1
Original file line number Diff line number Diff line change @@ -430,6 +430,10 @@ case $CFG_OSTYPE in
430
430
CFG_CPUTYPE=x86_64
431
431
;;
432
432
433
+ # Win 8 # uname -s on 64-bit cygwin does not contain WOW64, so simply use uname -m to detect arch (works in my install)
434
+ CYGWIN_NT-6.3)
435
+ CFG_OSTYPE=pc-windows-gnu
436
+ ;;
433
437
# We do not detect other OS such as XP/2003 using 64 bit using uname.
434
438
# If we want to in the future, we will need to use Cygwin - Chuck's csih helper in /usr/lib/csih/winProductName.exe or alternative.
435
439
* )
Original file line number Diff line number Diff line change @@ -1633,7 +1633,7 @@ mod tests {
1633
1633
assert_eq!( ( 3 as $T) . is_power_of_two( ) , false ) ;
1634
1634
assert_eq!( ( 4 as $T) . is_power_of_two( ) , true ) ;
1635
1635
assert_eq!( ( 5 as $T) . is_power_of_two( ) , false ) ;
1636
- assert !( ( $T:: MAX / 2 + 1 ) . is_power_of_two( ) , true ) ;
1636
+ assert_eq !( ( $T:: MAX / 2 + 1 ) . is_power_of_two( ) , true ) ;
1637
1637
}
1638
1638
)
1639
1639
}
Original file line number Diff line number Diff line change @@ -1109,7 +1109,14 @@ impl Bencher {
1109
1109
return summ5;
1110
1110
}
1111
1111
1112
- n *= 2 ;
1112
+ // If we overflow here just return the results so far. We check a
1113
+ // multiplier of 10 because we're about to multiply by 2 and the
1114
+ // next iteration of the loop will also multiply by 5 (to calculate
1115
+ // the summ5 result)
1116
+ n = match n. checked_mul ( 10 ) {
1117
+ Some ( _) => n * 2 ,
1118
+ None => return summ5,
1119
+ } ;
1113
1120
}
1114
1121
}
1115
1122
}
Original file line number Diff line number Diff line change 10
10
11
11
// ignore-windows
12
12
// ignore-freebsd
13
+ // ignore-openbsd
13
14
14
15
#[ path = "../compile-fail" ]
15
16
mod foo; //~ ERROR: a directory
You can’t perform that action at this time.
0 commit comments