Skip to content

Commit b750ee4

Browse files
authored
Rollup merge of #72003 - ctaggart:wasm, r=jonas-schievink
allow wasm target for rustc-ap-rustc_span This fixes #71998 by applying the work-a-round. The root cause is probably #56935, as @petrochenkov pointed out. I reproduced the bug by: ``` cd ~/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_span-657.0.0/ cargo build --target wasm32-unknown-unknown ``` Adding this line fixes it.
2 parents 0c8ef47 + 732eaf8 commit b750ee4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/librustc_span/lib.rs

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
#![feature(optin_builtin_traits)]
1515
#![feature(specialization)]
1616

17+
// FIXME(#56935): Work around ICEs during cross-compilation.
18+
#[allow(unused)]
19+
extern crate rustc_macros;
20+
1721
use rustc_data_structures::AtomicRef;
1822
use rustc_macros::HashStable_Generic;
1923
use rustc_serialize::{Decodable, Decoder, Encodable, Encoder};

0 commit comments

Comments
 (0)