Skip to content

Fix build #915

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

Merged
merged 5 commits into from
Mar 6, 2025
Merged

Fix build #915

merged 5 commits into from
Mar 6, 2025

Conversation

dstoza
Copy link
Contributor

@dstoza dstoza commented Mar 6, 2025

Mostly fixing some new clippy diagnostics, but I also had to tweak a doc comment and update the wasm-bindgen version to fix an error inside the #[wasm_bindgen] macro.

@dstoza dstoza marked this pull request as ready for review March 6, 2025 00:41
@@ -63,7 +63,7 @@ cfg_if! {
if #[cfg(rune_nightly)] {
#[inline(always)]
pub(crate) unsafe fn sub_ptr<T>(from: *const T, to: *const T) -> usize {
from.sub_ptr(to)
from.offset_from_unsigned(to)
Copy link
Collaborator

@udoprog udoprog Mar 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was trying to figure out what was going on since this method is not listed on Rust doc yet, when I realized ptr_sub_ptr is just about to be stabilized. 🎉

@udoprog
Copy link
Collaborator

udoprog commented Mar 6, 2025

Thank you!

@udoprog udoprog added the enhancement New feature or request label Mar 6, 2025
@udoprog udoprog merged commit 4da9f1d into rune-rs:main Mar 6, 2025
25 checks passed
@dstoza dstoza deleted the stoza/fix-build branch March 6, 2025 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants