Skip to content

Commit

Permalink
Work around ICEs during cross-compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
ctaggart committed May 8, 2020
1 parent 1eefa67 commit 0d60c46
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/librustc_ast/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
#![feature(unicode_internals)]
#![recursion_limit = "256"]

// FIXME(#56935): Work around ICEs during cross-compilation.
#[allow(unused)]
extern crate rustc_macros;

#[macro_export]
macro_rules! unwrap_or {
($opt:expr, $default:expr) => {
Expand Down
4 changes: 4 additions & 0 deletions src/librustc_attr/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

#![feature(or_patterns)]

// FIXME(#56935): Work around ICEs during cross-compilation.
#[allow(unused)]
extern crate rustc_macros;

mod builtin;

pub use builtin::*;
Expand Down
4 changes: 4 additions & 0 deletions src/librustc_target/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
#![feature(associated_type_bounds)]
#![feature(exhaustive_patterns)]

// FIXME(#56935): Work around ICEs during cross-compilation.
#[allow(unused)]
extern crate rustc_macros;

#[macro_use]
extern crate log;

Expand Down

0 comments on commit 0d60c46

Please sign in to comment.