From 60c66e3f8245072a0b4f8a16260933cc0828eb44 Mon Sep 17 00:00:00 2001 From: Cameron Taggart Date: Thu, 7 May 2020 22:13:50 -0600 Subject: [PATCH 1/3] allow wasm target for rustc-ap-rustc_span --- src/librustc_span/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/librustc_span/lib.rs b/src/librustc_span/lib.rs index 060ad604369fb..78661cd61a39a 100644 --- a/src/librustc_span/lib.rs +++ b/src/librustc_span/lib.rs @@ -14,6 +14,9 @@ #![feature(optin_builtin_traits)] #![feature(specialization)] +// allow wasm target for rustc-ap-rustc_span +extern crate rustc_macros; + use rustc_data_structures::AtomicRef; use rustc_macros::HashStable_Generic; use rustc_serialize::{Decodable, Decoder, Encodable, Encoder}; From 74f00e2f63bc1596eb7e5fe916b68b9e819362bc Mon Sep 17 00:00:00 2001 From: Cameron Taggart Date: Thu, 7 May 2020 22:30:14 -0600 Subject: [PATCH 2/3] #[allow(unused)] --- src/librustc_span/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/librustc_span/lib.rs b/src/librustc_span/lib.rs index 78661cd61a39a..1c3bca6608f53 100644 --- a/src/librustc_span/lib.rs +++ b/src/librustc_span/lib.rs @@ -15,6 +15,7 @@ #![feature(specialization)] // allow wasm target for rustc-ap-rustc_span +#[allow(unused)] extern crate rustc_macros; use rustc_data_structures::AtomicRef; From 732eaf81b7e95dc724b3d71ed2f87bd7b91e052b Mon Sep 17 00:00:00 2001 From: Cameron Taggart Date: Fri, 8 May 2020 07:56:53 -0600 Subject: [PATCH 3/3] FIXME comment --- src/librustc_span/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_span/lib.rs b/src/librustc_span/lib.rs index 1c3bca6608f53..dd7ba5cb6fc0c 100644 --- a/src/librustc_span/lib.rs +++ b/src/librustc_span/lib.rs @@ -14,7 +14,7 @@ #![feature(optin_builtin_traits)] #![feature(specialization)] -// allow wasm target for rustc-ap-rustc_span +// FIXME(#56935): Work around ICEs during cross-compilation. #[allow(unused)] extern crate rustc_macros;