Skip to content

Commit af751ee

Browse files
authored
Merge pull request #84 from eddyb/macro-reexports
runtime: use renaming to better contain the `traverse` macro.
2 parents 8833b48 + 65131ec commit af751ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -895,10 +895,10 @@ pub mod nd {
895895
}
896896

897897
// HACK(eddyb) work around `macro_rules` not being `use`-able.
898-
pub use crate::traverse;
898+
pub use crate::__runtime_traverse as traverse;
899899

900900
#[macro_export]
901-
macro_rules! traverse {
901+
macro_rules! __runtime_traverse {
902902
(typeof($leaf:ty) _) => { $leaf };
903903
(typeof($leaf:ty) ?) => { Option<traverse!(typeof($leaf) _)> };
904904
(typeof($leaf:ty) ($l_shape:tt, $r_shape:tt)) => { (traverse!(typeof($leaf) $l_shape), traverse!(typeof($leaf) $r_shape)) };

0 commit comments

Comments
 (0)