From f21eebeb6039d5f8d4132019df7129901c2a3073 Mon Sep 17 00:00:00 2001 From: Ariel Ben-Yehuda Date: Wed, 21 Jun 2017 14:05:11 +0300 Subject: [PATCH] ignore doctest of `extern "stdcall"` on non-x86 The "stdcall" ABI only exists on x86, so this causes tests to fail on other architectures. This should fix rust-lang/rust#40260 next time we update the reference. --- src/items.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/items.md b/src/items.md index d5eef800a..ee5b3ee9c 100644 --- a/src/items.md +++ b/src/items.md @@ -416,6 +416,7 @@ modifier. extern fn new_i32() -> i32 { 0 } // Declares an extern fn with "stdcall" ABI +# #[cfg(target_arch = "x86_64")] extern "stdcall" fn new_i32_stdcall() -> i32 { 0 } ```