mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 04:56:25 +03:00
Fix build of documentation in libstd
Ensure we've always got a macro defined! Closes #603
This commit is contained in:
@@ -39,6 +39,13 @@
|
||||
#[inline(always)]
|
||||
#[rustc_args_required_const(0)]
|
||||
pub unsafe fn __breakpoint(val: i32) {
|
||||
// Ensure that this compiles correctly on non-arm architectures, so libstd
|
||||
// doc builds work. The proper macro will shadow this definition below.
|
||||
#[allow(unused_macros)]
|
||||
macro_rules! call {
|
||||
($e:expr) => {()}
|
||||
}
|
||||
|
||||
#[cfg(target_arch = "arm")]
|
||||
macro_rules! call {
|
||||
($imm8:expr) => {
|
||||
|
||||
Reference in New Issue
Block a user