Skip to content

Commit

Permalink
Remove impl const and ~const in the standard library
Browse files Browse the repository at this point in the history
Otherwise it will fail to compile on nightly-2023-04-19

See rust-lang/rust#110395
  • Loading branch information
equation314 committed Apr 20, 2023
1 parent 739da1d commit 27b7fa9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ impl<G: BaseGuard, T: ?Sized> BaseSpinLock<G, T> {
}
}

impl<G: BaseGuard, T: ?Sized + ~const Default> const Default for BaseSpinLock<G, T> {
impl<G: BaseGuard, T: ?Sized + Default> Default for BaseSpinLock<G, T> {
#[inline(always)]
fn default() -> Self {
Self::new(Default::default())
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
//! in use. By default, this feature is disabled.
#![cfg_attr(not(test), no_std)]
#![feature(const_trait_impl)]

mod base;

Expand Down

0 comments on commit 27b7fa9

Please sign in to comment.