Skip to content

Commit

Permalink
Work around a rustc regression in macro name resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Aug 8, 2018
1 parent 21079ad commit 73ba85f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ports/servo/main.rs
Expand Up @@ -17,6 +17,10 @@

#![cfg_attr(feature = "unstable", feature(core_intrinsics))]

// Have this here rather than in non_android_main.rs to work around
// https://github.com/rust-lang/rust/issues/53205
#[cfg(not(target_os = "android"))] #[macro_use] extern crate log;

#[cfg(not(target_os = "android"))] include!("non_android_main.rs");

#[cfg(target_os = "android")]
Expand Down
1 change: 0 additions & 1 deletion ports/servo/non_android_main.rs
Expand Up @@ -9,7 +9,6 @@ extern crate gleam;
extern crate glutin;
#[macro_use] extern crate lazy_static;
// The window backed by glutin
#[macro_use] extern crate log;
#[cfg(any(target_os = "linux", target_os = "macos"))] extern crate osmesa_sys;
extern crate servo;
#[cfg(feature = "unstable")]
Expand Down

0 comments on commit 73ba85f

Please sign in to comment.