Skip to content

Commit

Permalink
Rename conditional compilation attrs to rustgc
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-hughes committed Dec 23, 2020
1 parent 91442e5 commit 264e7cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/gc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ impl Gc<dyn Any> {
}
}

#[cfg(not(feature = "rustc_boehm"))]
#[cfg(not(feature = "rustgc"))]
pub fn needs_finalizer<T>() -> bool {
std::mem::needs_drop::<T>()
}

#[cfg(feature = "rustc_boehm")]
#[cfg(feature = "rustgc")]
pub fn needs_finalizer<T>() -> bool {
std::mem::needs_finalizer::<T>()
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![cfg_attr(feature = "rustc_boehm", feature(gc))]
#![cfg_attr(feature = "rustgc", feature(gc))]
#![feature(core_intrinsics)]
#![feature(allocator_api)]
#![feature(alloc_layout_extra)]
Expand Down

0 comments on commit 264e7cd

Please sign in to comment.