Skip to content

Commit

Permalink
Work around rust-lang/rust#113533
Browse files Browse the repository at this point in the history
This was causing build failures on AArch64 due to name resolution
ambiguity.
  • Loading branch information
Amanieu committed Jul 10, 2023
1 parent dbb244a commit 4087419
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/aarch64_linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,13 @@ macro_rules! or {
};
}

// See `generate_aarch64_outlined_atomics` in build.rs.
include!(concat!(env!("OUT_DIR"), "/outlined_atomics.rs"));
// Work around https://github.com/rust-lang/rust/issues/113533
#[macro_use]
mod macros {
// See `generate_aarch64_outlined_atomics` in build.rs.
include!(concat!(env!("OUT_DIR"), "/outlined_atomics.rs"));
}

foreach_cas!(compare_and_swap);
foreach_cas16!(compare_and_swap_i128);
foreach_swp!(swap);
Expand Down

0 comments on commit 4087419

Please sign in to comment.