Closed
Description
Describe the bug
We have dependencies which are dependent on hstr, which are now fetching 1.1.0. We are currently using version 1.86.0 of the toolchain, and hstr fails to compile with the following error:
error: `core::slice::<impl [T]>::copy_from_slice` is not yet stable as a const fn
--> /workspace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/hstr-1.1.0/src/dynamic.rs:161:13
|
161 | / unsafe_data
162 | | .data_mut()
163 | | .split_at_mut(len)
164 | | .0
165 | | .copy_from_slice(text.as_bytes());
| |_________________________________________________^
|
help: add `#![feature(const_copy_from_slice)]` to the crate attributes to enable
--> /workspace/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/hstr-1.1.0/src/lib.rs:4:1
|
4 + #![feature(const_copy_from_slice)]
|
Input code
Config
Link to the code that reproduces this issue
N/A
SWC Info output
No response
Expected behavior
For hstr 1.1.0 to compile with rustc 1.86.0
Actual behavior
hstr 1.1.0 fails to compile with the error:
Version
hstr 1.1.0
Additional context
This is a nested dependency issue