Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 9 pull requests #74649

Closed
wants to merge 34 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
9dee590
Rearrange the pipeline of `pow` to gain efficiency
Neutron3529 Jul 15, 2020
ebafab9
delete an unnecessary semicolon...
Neutron3529 Jul 16, 2020
020c0b5
delete trailing whitespace
Neutron3529 Jul 16, 2020
8f58ce4
Sorry for the missing...
Neutron3529 Jul 16, 2020
f3d476b
add extra tests
Neutron3529 Jul 16, 2020
8795845
add extra tests.
Neutron3529 Jul 16, 2020
319db30
add pow(2) to negative exp
Neutron3529 Jul 16, 2020
e2f3e3c
add whitespace.
Neutron3529 Jul 16, 2020
d5d7ca2
add whitespace
Neutron3529 Jul 16, 2020
7599e01
add whitespace
Neutron3529 Jul 16, 2020
364cacb
delete extra line
Neutron3529 Jul 16, 2020
6100b74
Advertise correct stable version for const control flow
ecstatic-morse Jun 29, 2020
4fb260b
Guard against non-monomorphized type_id intrinsic call
nbdd0121 Jul 4, 2020
4c69d4b
Add the aarch64-apple-darwin target
shepmaster Jul 11, 2020
804241e
Update dependencies that have knowledge about aarch64-apple-darwin
shepmaster Jul 11, 2020
b3340b5
Expand test to cover type_name and monomorphic use
nbdd0121 Jul 21, 2020
430bd39
Do not ICE on assoc type with bad placeholder
JohnTitor Jul 22, 2020
c74c648
const prop into operands
lcnr Jul 22, 2020
d257bac
note LLVM in fixme
lcnr Jul 22, 2020
747bc8e
Enable perf try builder
Mark-Simulacrum Jul 21, 2020
49b9a64
rustc_target: Add a target spec option for disabling `--eh-frame-hdr`
petrochenkov Jul 22, 2020
4b05202
build: Remove unnecessary `cargo:rerun-if-env-changed` annotations
petrochenkov Jul 22, 2020
0b662c2
build: Remove unnecessary `build = "build.rs"` annotations
petrochenkov Jul 22, 2020
461c576
build: Harden env var tracking in build scripts
petrochenkov Jul 22, 2020
7be36a8
build: Avoid unnecessary build script reruns in libstd
petrochenkov Jul 22, 2020
5013636
Rollup merge of #73868 - ecstatic-morse:fix-stable-version, r=jonas-s…
Manishearth Jul 22, 2020
45f2730
Rollup merge of #74367 - Neutron3529:patch-1, r=nagisa
Manishearth Jul 22, 2020
792d485
Rollup merge of #74507 - lcnr:const-prop-into-op, r=oli-obk
Manishearth Jul 22, 2020
2642664
Rollup merge of #74538 - nbdd0121:issue-73976, r=lcnr
Manishearth Jul 22, 2020
6232dde
Rollup merge of #74541 - shepmaster:aarch64-apple-darwin-target, r=na…
Manishearth Jul 22, 2020
829d416
Rollup merge of #74600 - Mark-Simulacrum:try-perf, r=pietroalbini
Manishearth Jul 22, 2020
679e1a6
Rollup merge of #74618 - JohnTitor:no-more-bad-placeholder, r=estebank
Manishearth Jul 22, 2020
b9d7efe
Rollup merge of #74631 - petrochenkov:ehdr2, r=jonas-schievink
Manishearth Jul 22, 2020
f77f73e
Rollup merge of #74643 - petrochenkov:noenvrerun, r=Mark-Simulacrum
Manishearth Jul 22, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add whitespace
Neutron3529 authored Jul 16, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit d5d7ca29958dd13b8543fa471d7d20ec723daf1c
8 changes: 4 additions & 4 deletions src/libcore/tests/num/int_macros.rs
Original file line number Diff line number Diff line change
@@ -274,7 +274,7 @@ macro_rules! int_module {
// thussaturating_pow the overflowing result is exactly 1.
assert_eq!(r.wrapping_pow(2), 1 as $T);
assert_eq!(r.checked_pow(2), None);
assert_eq!(r.overflowing_pow(2), (1 as $T,true));
assert_eq!(r.overflowing_pow(2), (1 as $T, true));
assert_eq!(r.saturating_pow(2), MAX);
//test for negative exponent.
r = -2 as $T;
@@ -287,9 +287,9 @@ macro_rules! int_module {
assert_eq!(r.checked_pow(2), Some(4 as $T));
assert_eq!(r.checked_pow(3), Some(-8 as $T));
assert_eq!(r.checked_pow(0), Some(1 as $T));
assert_eq!(r.overflowing_pow(2), (4 as $T,false));
assert_eq!(r.overflowing_pow(3), (-8 as $T,false));
assert_eq!(r.overflowing_pow(0), (1 as $T,false));
assert_eq!(r.overflowing_pow(2), (4 as $T, false));
assert_eq!(r.overflowing_pow(3), (-8 as $T, false));
assert_eq!(r.overflowing_pow(0), (1 as $T, false));
assert_eq!(r.saturating_pow(2), 4 as $T);
assert_eq!(r.saturating_pow(3), -8 as $T);
assert_eq!(r.saturating_pow(0), 1 as $T);