Skip to content

Commit

Permalink
ignore doctest of extern "stdcall" on non-x86
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
arielb1 committed Jun 21, 2017
1 parent 876582e commit f21eebe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/items.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
```

Expand Down

0 comments on commit f21eebe

Please sign in to comment.