Skip to content

Update to latest nightly, nightly-2023-05-10#249

Merged
kkysen merged 9 commits intomainfrom
kkysen/update-to-latest-nightly
May 23, 2023
Merged

Update to latest nightly, nightly-2023-05-10#249
kkysen merged 9 commits intomainfrom
kkysen/update-to-latest-nightly

Conversation

@kkysen
Copy link
Collaborator

@kkysen kkysen commented May 11, 2023

There are some newly stabilized things that we want to use to replace C versions. ilog2 from #184 and other cleanups was one of them, and there were some other ones I came across as well.

Also, #![feature(let_chains)] became unstable again as it was implemented incorrectly, so I've removed their few uses and manually desugared them or used Option::filter instead.

Also, upgrading the toolchain seems to cause test failures now because of stricter checks. Raw pointer dereferences are now checked for alignment (in debug builds it seems), and that's now uncovering further errors. Unaligned references are UB in Rust, so we need to fix these. Tracked in #250. This is another great reason to upgrade the toolchain, as this is a really useful check.

Update: #251 has been merged into this PR, fixing the crashes explained above.

@kkysen kkysen force-pushed the kkysen/update-to-latest-nightly branch 2 times, most recently from 63512d3 to df2158b Compare May 11, 2023 21:58
@kkysen kkysen mentioned this pull request May 11, 2023
kkysen added 3 commits May 23, 2023 14:26
`#![feature(let_chains)]` became unstable again as it was implemented incorrectly,
so I've removed their few uses and manually desugared them or used `Option::filter` instead.
@kkysen kkysen force-pushed the kkysen/update-to-latest-nightly branch from df2158b to 7593d2e Compare May 23, 2023 21:27
@kkysen kkysen changed the base branch from kkysen/cleanup-fn-read_pal_plane to main May 23, 2023 21:28
kkysen added 6 commits May 23, 2023 14:29
…d arch.

`Align1` is used when alignment wasn't specified in C to avoid have to `cfg` the uses of `scaling`.
Fixes #251 and ~~should hopefully fix~~ fixes #250, ~~. If it fixes
#250,~~ so I can merge this PR into #249, and then when #249 passes CI,
I can merge that into `main` (or I can rebase this on `main` and reverse
the PR order, now that I know this and #249 fixes #250).
@kkysen kkysen merged commit 8575ff9 into main May 23, 2023
@kkysen kkysen deleted the kkysen/update-to-latest-nightly branch May 23, 2023 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants