Skip to content
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

resim build failing on mac os with unstablefeatures #1743

Open
iamfaiz123 opened this issue Mar 21, 2024 · 1 comment
Open

resim build failing on mac os with unstablefeatures #1743

iamfaiz123 opened this issue Mar 21, 2024 · 1 comment

Comments

@iamfaiz123
Copy link

i am trying to build simulator on my mac os and getting errors

81  | |                             .copy_to_nonoverlapping(ptr, digit::$Digit::BYTES as usize);
    | |_______________________________________________________________________________________^
...
225 |   crate::macro_impl!(endian);
    |   -------------------------- in this macro invocation
    |
    = help: add `#![feature(const_intrinsic_copy)]` to the crate attributes to enable
    = note: this error originates in the macro `endian` which comes from the expansion of the macro `crate::macro_impl` (in Nightly builds, run with -Z macro-backtrace for more info)

error: `core::ptr::const_ptr::<impl *const T>::copy_to_nonoverlapping` is not yet stable as a const fn
   --> /Users/rapidinnovation/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bnum-0.7.0/src/bint/endian.rs:131:25
    |
131 | /                         slice_ptr
132 | |                             .add(i << digit::$Digit::BYTE_SHIFT)
133 | |                             .copy_to_nonoverlapping(ptr, digit::$Digit::BYTES as usize);
    | |_______________________________________________________________________________________^
...
225 |   crate::macro_impl!(endian);
    |   -------------------------- in this macro invocation
    |
    = help: add `#![feature(const_intrinsic_copy)]` to the crate attributes to enable
    = note: this error originates in the macro `endian` which comes from the expansion of the macro `crate::macro_impl` (in Nightly builds, run with -Z macro-backtrace for more info)

   Compiling prettyplease v0.2.16
   Compiling bitflags v1.3.2
error: `core::ptr::const_ptr::<impl *const T>::copy_to_nonoverlapping` is not yet stable as a const fn
   --> /Users/rapidinnovation/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bnum-0.7.0/src/buint/mod.rs:145:17
    |
145 |                 digits_ptr.copy_to_nonoverlapping(uninit_ptr.add(n), N - n);
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
665 | crate::main_impl!(mod_impl);
    | --------------------------- in this macro invocation
    |
    = help: add `#![feature(const_intrinsic_copy)]` to the crate attributes to enable
    = note: this error originates in the macro `mod_impl` which comes from the expansion of the macro `crate::main_impl` (in Nightly builds, run with -Z macro-backtrace for more info)

error: `core::ptr::const_ptr::<impl *const T>::copy_to_nonoverlapping` is not yet stable as a const fn
   --> /Users/rapidinnovation/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bnum-0.7.0/src/buint/mod.rs:146:17
    |
146 |                 digits_ptr.add(N - n).copy_to_nonoverlapping(uninit_ptr, n);
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
665 | crate::main_impl!(mod_impl);
    | --------------------------- in this macro invocation
    |
    = help: add `#![feature(const_intrinsic_copy)]` to the crate attributes to enable
    = note: this error originates in the macro `mod_impl` which comes from the expansion of the macro `crate::main_impl` (in Nightly builds, run with -Z macro-backtrace for more info)

error: `core::ptr::const_ptr::<impl *const T>::copy_to_nonoverlapping` is not yet stable as a const fn
   --> /Users/rapidinnovation/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bnum-0.7.0/src/buint/mod.rs:388:17
    |
388 |                 u.digits.as_ptr().copy_to_nonoverlapping(out.digits.as_ptr().cast_mut().add(digit_shift), num_copies); // TODO: can change to out.digits.as_mut_ptr() when const_mut_refs is stabilised
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
665 | crate::main_impl!(mod_impl);
    | --------------------------- in this macro invocation
    |
    = help: add `#![feature(const_intrinsic_copy)]` to the crate attributes to enable
    = note: this error originates in the macro `mod_impl` which comes from the expansion of the macro `crate::main_impl` (in Nightly builds, run with -Z macro-backtrace for more info)

error: `core::ptr::const_ptr::<impl *const T>::copy_to_nonoverlapping` is not yet stable as a const fn
   --> /Users/rapidinnovation/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bnum-0.7.0/src/buint/mod.rs:414:17
    |
414 |                 u.digits.as_ptr().add(digit_shift).copy_to_nonoverlapping(out.digits.as_ptr().cast_mut(), num_copies); // TODO: can change to out.digits.as_mut_ptr() when const_mut_refs is stabilised
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
665 | crate::main_impl!(mod_impl);
    | --------------------------- in this macro invocation
    |
    = help: add `#![feature(const_intrinsic_copy)]` to the crate attributes to enable
    = note: this error originates in the macro `mod_impl` which comes from the expansion of the macro `crate::main_impl` (in Nightly builds, run with -Z macro-backtrace for more info)

   Compiling regex-syntax v0.7.5
error: `core::ptr::const_ptr::<impl *const T>::copy_to_nonoverlapping` is not yet stable as a const fn
   --> /Users/rapidinnovation/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bnum-0.7.0/src/buint/endian.rs:76:25
    |
76  | /                         slice_ptr
77  | |                             .add(len - digit::$Digit::BYTES as usize - (i << digit::$Digit::BYTE_SHIFT))
78  | |                             .copy_to_nonoverlapping(ptr, digit::$Digit::BYTES as usize);
    | |_______________________________________________________________________________________^
...
305 |   crate::macro_impl!(endian);
    |   -------------------------- in this macro invocation
    |
    = help: add `#![feature(const_intrinsic_copy)]` to the crate attributes to enable
    = note: this error originates in the macro `endian` which comes from the expansion of the macro `crate::macro_impl` (in Nightly builds, run with -Z macro-backtrace for more info)

error: `core::ptr::const_ptr::<impl *const T>::copy_to_nonoverlapping` is not yet stable as a const fn
   --> /Users/rapidinnovation/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bnum-0.7.0/src/buint/endian.rs:142:25
    |
142 | /                         slice_ptr
143 | |                             .add(i << digit::$Digit::BYTE_SHIFT)
144 | |                             .copy_to_nonoverlapping(ptr, digit::$Digit::BYTES as usize);
    | |_______________________________________________________________________________________^
...
305 |   crate::macro_impl!(endian);
    |   -------------------------- in this macro invocation
    |
    = help: add `#![feature(const_intrinsic_copy)]` to the crate attributes to enable
    = note: this error originates in the macro `endian` which comes from the expansion of the macro `crate::macro_impl` (in Nightly builds, run with -Z macro-backtrace for more info)```
@iamyulong
Copy link
Member

Hi there, this seems to be a problem with rust 1.79.0-nightly. You can solve this by switching to a stable rust.

We are also addressing this problem as part of #1762.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants