Conversation
|
Not sure I fully understand the failure, but guessing it may be due to #[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)] |
|
I believe the issue that is this line in n = (n + 1) / 2;In debug builds this introduces a call to panic because we still emit a check against division by zero. This can be fixed by using the |
|
Thanks @Amanieu! I updated the call in this branch. It looks like there may be another panic. env RUSTFLAGS='-Ccodegen-units=1' cargo test --all --release --features 'unstable musl-reference-tests'(on Ubuntu 20.04) gives: Will try to track it down, but please let me know if you have any ideas. Edit: Looks like it may be in the |
|
Looks like it was indexing. Replaced with |
|
I've merged the libm PR, you can update the submodule in this PR. |
|
Great, thanks! Looks like it fixed the test suite. |
|
I published a new version of the crate, you can now make PR to rust-lang/rust to update it there. |
|
Perfect, I appreciate all the help (first time contributing to Rust). |
For rust-lang/rust#99747