Skip to content

Commit

Permalink
Support slices in OnceRef and OnceBox
Browse files Browse the repository at this point in the history
This is implemented through a new public-in-private `OncePointee` trait.
If this was instead done with `impl OnceRef<[T]>`, the compiler fails to
infer which methods we want to use.

Because of the usage of `core::ptr::slice_from_raw_parts` in `const`,
this change increases the MSRV to `1.64.0`.
  • Loading branch information
nvzqz committed Aug 10, 2023
1 parent 3cd6549 commit d7e6ed3
Show file tree
Hide file tree
Showing 4 changed files with 401 additions and 76 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -4,7 +4,7 @@ version = "1.18.0"
authors = ["Aleksey Kladov <aleksey.kladov@gmail.com>"]
license = "MIT OR Apache-2.0"
edition = "2021"
rust-version = "1.60"
rust-version = "1.64"

description = "Single assignment cells and lazy values."
readme = "README.md"
Expand Down

0 comments on commit d7e6ed3

Please sign in to comment.