Skip to content

Commit ea9d02e

Browse files
committed
Fix test and update external-block ABIs
1 parent a3b91c0 commit ea9d02e

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

src/items/external-blocks.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@ There are also some platform-specific ABI strings:
8585
* `extern "vectorcall"` -- The `vectorcall` ABI -- corresponds to MSVC's
8686
`__vectorcall` and clang's `__attribute__((vectorcall))`
8787

88-
Finally, there are some rustc-specific ABI strings:
88+
Finally, there are some unstable rustc-specific ABI strings:
8989

90-
* `extern "rust-intrinsic"` -- The ABI of rustc intrinsics.
91-
* `extern "rust-call"` -- The ABI of the Fn::call trait functions.
92-
* `extern "platform-intrinsic"` -- Specific platform intrinsics -- like, for
93-
example, `sqrt` -- have this ABI. You should never have to deal with it.
90+
* `extern "rust-intrinsic"` -- The ABI of rustc intrinsics, equivalent to `"Rust"`.
91+
* `extern "rust-call"` -- The ABI of the Fn::call trait functions, equivalent to `"Rust"`.
92+
* `extern "platform-intrinsic"` -- The ABI of Specific platform intrinsics, equivalent to `"Rust"` -- like, for
93+
example, `sqrt` -- equivalent to `"Rust"`. You should never have to deal with it.
9494

9595
## Variadic functions
9696

src/items/functions.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ sufficient context to determine the type parameters. For example,
112112
Extern function _definitions_ allow defining functions that can be called
113113
with a particular ABI:
114114

115-
```rust,no_run
115+
```rust,ignore
116116
extern "ABI" fn foo() { ... }
117117
```
118118

@@ -173,8 +173,9 @@ equivalent to the `"Rust"` ABI, e.g.,
173173
[`"rust-intrinsic"`](https://doc.rust-lang.org/unstable-book/language-features/intrinsics.html?highlight=rust-intrin#intrinsics)
174174
or
175175
[`"platform-intrinsic"`](https://doc.rust-lang.org/unstable-book/language-features/platform-intrinsics.html).
176-
Refer to the [Unstable Book](https://doc.rust-lang.org/unstable-book) for more
177-
information about these.
176+
For more information about these refer to the [ABI section of external block
177+
items][external-blocks.md#ABI] and the [Unstable
178+
Book](https://doc.rust-lang.org/unstable-book).
178179

179180
## Const functions
180181

0 commit comments

Comments
 (0)