Skip to content

regression: pointer functions not yet stable as const fn #123284

Closed
@Mark-Simulacrum

Description

@Mark-Simulacrum
[INFO] [stdout] error: `core::ptr::const_ptr::<impl *const T>::copy_to_nonoverlapping` is not yet stable as a const fn
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/bnum-0.8.0/src/bint/endian.rs:146:25
[INFO] [stdout]     |
[INFO] [stdout] 146 | /                         slice_ptr
[INFO] [stdout] 147 | |                             .add(i << digit::$Digit::BYTE_SHIFT)
[INFO] [stdout] 148 | |                             .copy_to_nonoverlapping(ptr, digit::$Digit::BYTES as usize);
[INFO] [stdout]     | |_______________________________________________________________________________________^
[INFO] [stdout] ...
[INFO] [stdout] 240 |   crate::macro_impl!(endian);
[INFO] [stdout]     |   -------------------------- in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = 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)
[INFO] [stdout] 

non-bnum cases:

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions