-
Notifications
You must be signed in to change notification settings - Fork 13.4k
coretests: move float tests from num to floats module and use a more flexible macro to generate them #141857
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
base: master
Are you sure you want to change the base?
Conversation
rustbot has assigned @Mark-Simulacrum. Use |
r? @tgross35 |
This comment has been minimized.
This comment has been minimized.
77b3d3d
to
f3b4668
Compare
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for putting this together, I really like the way it turned out. Just a nit suggesting an example in the docs and optionally removing cfg(bootstrap)
. r=me after that and green CI (assuming the failure is unrelated)
0c707f9
to
fdadc1c
Compare
This comment has been minimized.
This comment has been minimized.
That test is kind of silly inside coretests... |
fdadc1c
to
bc0b999
Compare
bc0b999
to
d296c12
Compare
@bors r=tgross35 |
☔ The latest upstream changes (presumably #141984) made this pull request unmergeable. Please resolve the merge conflicts. |
d296c12
to
ccf9a89
Compare
@bors r=tgross35 |
coretests: move float tests from num to floats module and use a more flexible macro to generate them This makes some progress on rust-lang#141726 by moving the float tests in `num` to `floats` and using a newer, more flexible macro to generate them. We also newly run these tests on f16 and f128 in const, and at runtime in Miri and for hosts where that works well enough. I didn't yet deduplicate any tests or port the existing `floats::f*` tests to the macro, that can happen in a future PR.
Rollup of 9 pull requests Successful merges: - #141271 (Streamline some attr parsing APIs) - #141570 (Fix incorrect eq_unspanned in TokenStream) - #141857 (coretests: move float tests from num to floats module and use a more flexible macro to generate them) - #141893 (remove `f16: From<u16>`) - #141924 (Lightly tweak docs for BTree{Map,Set}::extract_if) - #141939 (exact_div: add tests) - #141959 (Add more missing 2015 edition directives) - #142002 (redesign stage 0 std follow-ups part2) - #142007 (Improve some `Visitor` comments.) r? `@ghost` `@rustbot` modify labels: rollup
…flexible macro to generate them
ccf9a89
to
7742d0e
Compare
@bors2 try |
coretests: move float tests from num to floats module and use a more flexible macro to generate them This makes some progress on #141726 by moving the float tests in `num` to `floats` and using a newer, more flexible macro to generate them. We also newly run these tests on f16 and f128 in const, and at runtime in Miri and for hosts where that works well enough. I didn't yet deduplicate any tests or port the existing `floats::f*` tests to the macro, that can happen in a future PR. <!-- homu-ignore:start --> <!-- If this PR is related to an unstable feature or an otherwise tracked effort, please link to the relevant tracking issue here. If you don't know of a related tracking issue or there are none, feel free to ignore this. This PR will get automatically assigned to a reviewer. In case you would like a specific user to review your work, you can assign it to them by using r? <reviewer name> --> <!-- homu-ignore:end --> try-job: x86_64-gnu-aux
@bors r=tgross35
|
This makes some progress on #141726 by moving the float tests in
num
tofloats
and using a newer, more flexible macro to generate them. We also newly run these tests on f16 and f128 in const, and at runtime in Miri and for hosts where that works well enough.I didn't yet deduplicate any tests or port the existing
floats::f*
tests to the macro, that can happen in a future PR.try-job: x86_64-gnu-aux