Skip to content

Commit

Permalink
chore: fix build on latest Rust nightlies
Browse files Browse the repository at this point in the history
The unstable `once_cell` feature has been partially stabilized. Sadly,
the stabilized API does not include `LazyLock`, which has been gated under
`lazy_cell` instead. `LazyLock` is the struct we are interested in.

For now, let's change our dependency on the `once_cell` feature to `lazy_cell`
instead. Builds will break if `lazy_cell` ever gets stabilized and removed,
so we'll react promptly to that.

Ref: rust-lang/rust#105587
  • Loading branch information
AlexTMjugador committed Apr 3, 2023
1 parent 5a884a5 commit 1c9d798
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/packsquash/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#![feature(if_let_guard)]
#![feature(iter_intersperse)]
#![feature(map_entry_replace)]
#![feature(once_cell)]
#![feature(lazy_cell)]
#![feature(nonzero_ops)]
#![feature(try_find)]
#![feature(type_alias_impl_trait)]
Expand Down

0 comments on commit 1c9d798

Please sign in to comment.