Skip to content

Commit 73ba85f

Browse files
committed
Work around a rustc regression in macro name resolution
rust-lang/rust#53205
1 parent 21079ad commit 73ba85f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ports/servo/main.rs

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
1818
#![cfg_attr(feature = "unstable", feature(core_intrinsics))]
1919

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

2226
#[cfg(target_os = "android")]

ports/servo/non_android_main.rs

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ extern crate gleam;
99
extern crate glutin;
1010
#[macro_use] extern crate lazy_static;
1111
// The window backed by glutin
12-
#[macro_use] extern crate log;
1312
#[cfg(any(target_os = "linux", target_os = "macos"))] extern crate osmesa_sys;
1413
extern crate servo;
1514
#[cfg(feature = "unstable")]

0 commit comments

Comments
 (0)