Skip to content

Commit dd2bbcb

Browse files
committed
Move the force_eval! macro into the math module
This fixes the cross-inclusion into the compiler builtins
1 parent ac9e81b commit dd2bbcb

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@
1212
#![deny(warnings)]
1313
#![no_std]
1414

15-
macro_rules! force_eval {
16-
($e:expr) => {
17-
unsafe { ::core::ptr::read_volatile(&$e); }
18-
}
19-
}
20-
2115
mod math;
2216

2317
#[cfg(todo)]

src/math/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
macro_rules! force_eval {
2+
($e:expr) => {
3+
unsafe { ::core::ptr::read_volatile(&$e); }
4+
}
5+
}
6+
17
mod fabs;
28
mod fabsf;
39
mod fmodf;

0 commit comments

Comments
 (0)