Skip to content

Commit 595ccf3

Browse files
authored
Merge pull request #45 from rust-osdev/fix-very-unstable
Fix build with `very_unstable` feature
2 parents d2d2239 + 8dfacab commit 595ccf3

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Unreleased
22

33
- Add implementations for `fmt::Pointer`, `PartialEq`, `Eq`, `PartialOrd`, `Ord` and `Hash`.
4+
- Update `very_unstable` feature to latest nightly
45

56
# 0.5.1 – 2023-06-24
67

src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
#![cfg_attr(feature = "very_unstable", feature(const_trait_impl))]
3939
#![cfg_attr(feature = "very_unstable", feature(unboxed_closures))]
4040
#![cfg_attr(feature = "very_unstable", feature(fn_traits))]
41+
#![cfg_attr(feature = "very_unstable", feature(effects))]
4142
#![warn(missing_docs)]
4243
#![deny(unsafe_op_in_unsafe_fn)]
4344

src/volatile_ptr/very_unstable.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ where
1616
/// The safety requirements of [`Self::map`] apply to this method too.
1717
pub const unsafe fn map_const<F, U>(self, f: F) -> VolatilePtr<'a, U, A>
1818
where
19-
F: ~const FnOnce(NonNull<T>) -> NonNull<U>,
19+
F: FnOnce(NonNull<T>) -> NonNull<U>,
2020
U: ?Sized,
2121
{
2222
unsafe { VolatilePtr::new_generic(f(self.pointer)) }
@@ -36,7 +36,7 @@ impl<'a, T, A> VolatilePtr<'a, [T], A> {
3636
struct Mapper {
3737
index: usize,
3838
}
39-
impl<T> const FnOnce<(NonNull<[T]>,)> for Mapper {
39+
impl<T> FnOnce<(NonNull<[T]>,)> for Mapper {
4040
type Output = NonNull<T>;
4141

4242
extern "rust-call" fn call_once(self, (slice,): (NonNull<[T]>,)) -> Self::Output {

0 commit comments

Comments
 (0)