8000 hstr does not compile with rust 1.86.0 · Issue #10662 · swc-project/swc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
hstr does not compile with rust 1.86.0 #10662
Closed
@bwilliams-sequence

Description

@bwilliams-sequence

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0