Skip to content

Commit 27b7fa9

Browse files
committed
Remove impl const and ~const in the standard library
Otherwise it will fail to compile on nightly-2023-04-19 See rust-lang/rust#110395
1 parent 739da1d commit 27b7fa9

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ impl<G: BaseGuard, T: ?Sized> BaseSpinLock<G, T> {
174174
}
175175
}
176176

177-
impl<G: BaseGuard, T: ?Sized + ~const Default> const Default for BaseSpinLock<G, T> {
177+
impl<G: BaseGuard, T: ?Sized + Default> Default for BaseSpinLock<G, T> {
178178
#[inline(always)]
179179
fn default() -> Self {
180180
Self::new(Default::default())

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
//! in use. By default, this feature is disabled.
1010
1111
#![cfg_attr(not(test), no_std)]
12-
#![feature(const_trait_impl)]
1312

1413
mod base;
1514

0 commit comments

Comments
 (0)