Skip to content

Commit

Permalink
Remove all non-test usages of feature gates
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Dec 16, 2020
1 parent ab52a1c commit 06301d7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion ykrt/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![feature(negative_impls)]
#![cfg_attr(test, feature(test))]

pub mod mt;
Expand Down
6 changes: 3 additions & 3 deletions ykrt/src/mt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,10 @@ type CompilingTrace<I> = Mutex<Option<Box<CompiledTrace<I>>>>;
#[derive(Clone)]
pub struct MTThread {
inner: Rc<MTThreadInner>,
// Raw pointers are neither send nor sync.
_dont_send_or_sync_me: PhantomData<*mut ()>,
}

impl !Send for MTThread {}
impl !Sync for MTThread {}

impl MTThread {
/// Return a meta-tracer [`MT`](struct.MT.html) struct.
pub fn mt(&self) -> &MT {
Expand Down Expand Up @@ -491,6 +490,7 @@ impl MTThreadInner {
};
MTThread {
inner: Rc::new(inner),
_dont_send_or_sync_me: PhantomData,
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions yktrace/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![cfg_attr(test, feature(test))]
#![feature(thread_local)]
#![feature(core_intrinsics)]
#![feature(global_asm)]
#![cfg_attr(tracermode = "sw", feature(thread_local))]
#![cfg_attr(tracermode = "sw", feature(core_intrinsics))]
#![cfg_attr(tracermode = "sw", feature(global_asm))]

#[cfg(test)]
extern crate test;
Expand Down

0 comments on commit 06301d7

Please sign in to comment.