Skip to content

resim build failing on mac os with unstablefeatures #1743

@iamfaiz123

Description

@iamfaiz123

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)```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions