Skip to content

Commit

Permalink
Auto merge of #81498 - thomaseizinger:ice-workaround-56935-rustc-inde…
Browse files Browse the repository at this point in the history
…x, 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.
  • Loading branch information
bors committed Feb 7, 2021
2 parents 323fb71 + ff00ef4 commit 43e1ea2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compiler/rustc_index/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 43e1ea2

Please sign in to comment.