Skip to content

Commit

Permalink
Move location so macro can be used in more places
Browse files Browse the repository at this point in the history
Rust only allows macros to be used strictly after they have been
defined. It's weird, and not needed for this PR, but it will avoid later
developers running into the issues I did while developing this.
  • Loading branch information
jonhoo committed Apr 12, 2020
1 parent 93c96d5 commit adc8fab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/rt/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#[macro_use]
mod location;
pub(crate) use self::location::Location;

mod access;
use self::access::Access;

Expand All @@ -10,10 +14,6 @@ pub(crate) use self::arc::Arc;
mod atomic;
pub(crate) use self::atomic::{fence, Atomic};

#[macro_use]
mod location;
pub(crate) use self::location::Location;

mod cell;
pub(crate) use self::cell::Cell;

Expand Down

0 comments on commit adc8fab

Please sign in to comment.