Skip to content

Commit 0d1442a

Browse files
committed
Update
2 parents ace3935 + 5764e12 commit 0d1442a

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

src/items/external-blocks.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
3232
External blocks provide _declarations_ of items that are not _defined_ in the
3333
current crate and are the basis of Rust's foreign function interface. Using
34-
items declared in external blocks is `unsafe`.
34+
items declared in external blocks is only allowed in an `unsafe` context.
3535

3636
Two kind of item _declarations_ are allowed in external blocks:
3737
[functions] and [statics].
@@ -90,6 +90,16 @@ There are also some platform-specific ABI strings:
9090
* `extern "vectorcall"` -- The `vectorcall` ABI -- corresponds to MSVC's
9191
`__vectorcall` and clang's `__attribute__((vectorcall))`
9292

93+
<<<<<<< HEAD
94+
=======
95+
Finally, there are some unstable `rustc`-specific ABI strings:
96+
97+
* `extern "rust-intrinsic"` -- The ABI of rustc intrinsics, equivalent to `"Rust"`.
98+
* `extern "rust-call"` -- The ABI of the Fn::call trait functions, equivalent to `"Rust"`.
99+
* `extern "platform-intrinsic"` -- The ABI of Specific platform intrinsics, equivalent to `"Rust"` -- like, for
100+
example, `sqrt` -- equivalent to `"Rust"`. You should never have to deal with it.
101+
102+
>>>>>>> 5764e1240c4d5ae73539baebce860b846c23db2c
93103
## Variadic functions
94104

95105
Functions within external blocks may be variadic by specifying `...` after one

src/items/functions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ Functions with an ABI that differs from `"Rust"` do not support unwinding in the
172172
exact same way that Rust does. Therefore, unwinding past the end of functions
173173
with such ABIs causes the process to abort.
174174

175-
**Non-normative note**: The LLVM backend of the current Rust implementation
175+
> **Note**: The LLVM backend of the `rustc` implementation
176176
aborts the process by executing an illegal instruction.
177177

178178
## Const functions

0 commit comments

Comments
 (0)