-
Notifications
You must be signed in to change notification settings - Fork 139
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
rebis-dev 1.77 and Clippy #2831
base: rebis-dev
Are you sure you want to change the base?
Conversation
Could you try cherry picking the commit from #2793 to fix CI? |
c61b9cb
to
31a56fd
Compare
Mh, macos has a segmentation fault, Edit: Its is wasm job that fails to compile not the normal nightly build. |
The single test failure is the one I mentioned in the OP. I've been able to get 1.77 to compile. |
The tests should start passing again with #2759 |
This one was a toughie: it turns out that using `ptr::align_of()`` was a bad idea, since the buffer in `Heap` itself is not aligned to `Heap::heap_cell_alignment()`, so `ptr::align_of()` would sometimes return lower values than expected. That made for an heisenbug: if the alignment of the heap happened to be 4, then the bug wouldn't trigger.
As The tests have become flaky for some reason. I have run them a few times and sometimes they pass, but sometimes a test case fails for some reason, and it's not always the same test case that fails when this happens! I will investigate to see if this is a problem in |
Ok, the tests are indeed already flaky in
This looks like heap corruption caused by UB. It may be a good idea to write some tests for the new |
This runs
cargo fmt
(to make CI happy) and fixes the Clippy warnings (so that we can benefit from its advice without noise).The diff for
cargo fmt
is quite big, so it may be better if you do this locally. Manually fixing the warnings wasn't trivial though.Notice that the test that failed here is also failing in the current
rebis-dev
, so nothing regressed.