]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_back/target/mod.rs
Auto merge of #31684 - tmiasko:alternate-stack, r=alexcrichton
[rust.git] / src / librustc_back / target / mod.rs
index a868178b14fb9d8aabcc8b2dc737926ef5a95133..e0743c339ce9d152caaf4091a8e32227b9214dee 100644 (file)
 
 macro_rules! supported_targets {
     ( $(($triple:expr, $module:ident)),+ ) => (
+        $(mod $module;)*
+
         /// List of supported targets
         pub const TARGETS: &'static [&'static str] = &[$($triple),*];
 
         // this would use a match if stringify! were allowed in pattern position
         fn load_specific(target: &str) -> Option<Target> {
-            $(mod $module;)*
             let target = target.replace("-", "_");
             if false { }
             $(