Skip to content

Commit

Permalink
Merge #194
Browse files Browse the repository at this point in the history
194: Misc cleanups r=ltratt a=bjorn3



Co-authored-by: bjorn3 <[email protected]>
  • Loading branch information
bors[bot] and bjorn3 authored Dec 16, 2020
2 parents ab52a1c + 55c643c commit 07489fe
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 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
8 changes: 4 additions & 4 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 All @@ -19,7 +19,7 @@ mod hwt;
mod swt;

use errors::InvalidTraceError;
use sir::{SirLoc, SirTrace};
use sir::SirTrace;
use ykpack::Local;

// In TIR traces, the argument to the interp_step is always local #1.
Expand Down

0 comments on commit 07489fe

Please sign in to comment.