about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-02-07 08:09:58 +0000
committerbors <bors@rust-lang.org>2021-02-07 08:09:58 +0000
commit43e1ea29c4e92dfa2ba716fc878984605897fb13 (patch)
tree8346308b6b382b4c1ba576c23c96547cb5a5baf3
parent323fb7113bc64886205047c97423882a7f8162f2 (diff)
parentff00ef4d6656af5708958dee3ca9ed1918648b6d (diff)
downloadrust-43e1ea29c4e92dfa2ba716fc878984605897fb13.tar.gz
rust-43e1ea29c4e92dfa2ba716fc878984605897fb13.zip
Auto merge of #81498 - thomaseizinger:ice-workaround-56935-rustc-index, r=matthewjasper
Apply workaround from #72003 for #56935 to allow for cross-compilation of `rustc_index` crate

This patch applies the same workaround as #72003 to the `rustc_index` crate. This allows recent versions of rustfmt to compile to wasm again.

Related: #72017.
-rw-r--r--compiler/rustc_index/src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_index/src/lib.rs b/compiler/rustc_index/src/lib.rs
index eaef4c7b54a..995034e81da 100644
--- a/compiler/rustc_index/src/lib.rs
+++ b/compiler/rustc_index/src/lib.rs
@@ -8,3 +8,7 @@
 
 pub mod bit_set;
 pub mod vec;
+
+// FIXME(#56935): Work around ICEs during cross-compilation.
+#[allow(unused)]
+extern crate rustc_macros;