Skip to content

Commit bf0a27e

Browse files
committed
Revert 6eca72c
Right now I've pinned this to "nightly-2022-02-08" since that's the last working version for me....
1 parent 669bd19 commit bf0a27e

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

libs/context/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#![feature(
22
negative_impls, // !Send is much cleaner than `PhantomData<Rc>`
33
untagged_unions, // I want to avoid ManuallyDrop in unions
4+
const_fn_trait_bound, // So generics + const fn are unstable, huh?
45
generic_associated_types, // Finally!
56
ptr_metadata
67
)]

src/epsilon/handle.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ zerogc_derive::unsafe_gc_impl!(
5959
);
6060

6161
unsafe impl HandleCollectorId for EpsilonCollectorId {
62-
type Handle<T> = GcHandle<T> where T: GcSafe<'static, Self> + ?Sized;
62+
type Handle<T>
63+
where T: GcSafe<'static, Self> + ?Sized = GcHandle<T>;
6364

6465
fn create_handle<'gc, T>(_gc: Gc<'gc, T, Self>) -> Self::Handle<T::Branded>
6566
where T: GcSafe<'gc, Self> + GcRebrand<'static, Self> + ?Sized {

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
once_cell, // RFC 2788 (Probably will be accepted)
99
negative_impls, // More elegant than marker types
1010
alloc_layout_extra,
11+
const_fn_trait_bound,
12+
const_fn_fn_ptr_basics,
1113
const_mut_refs,
1214
const_option,
1315
const_slice_from_raw_parts,

0 commit comments

Comments
 (0)