From adc8fab4bc188a2a9094f95c69ba6d3564d60684 Mon Sep 17 00:00:00 2001 From: Jon Gjengset Date: Sun, 12 Apr 2020 13:39:01 -0400 Subject: [PATCH] Move location so macro can be used in more places 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. --- src/rt/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rt/mod.rs b/src/rt/mod.rs index 52fd55bf..a24e1bb0 100644 --- a/src/rt/mod.rs +++ b/src/rt/mod.rs @@ -1,3 +1,7 @@ +#[macro_use] +mod location; +pub(crate) use self::location::Location; + mod access; use self::access::Access; @@ -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;