diff options
| author | Ralf Jung <post@ralfj.de> | 2023-11-17 08:02:28 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2023-11-17 08:02:28 +0100 |
| commit | 8f03a55566a0b382b5c8506b153e2850af9c280e (patch) | |
| tree | 7f959fa832822dfaae7298b9538eb58b24e63afc /library/core/src | |
| parent | 52d22eaa2396fc10db79dcec254d69c5cd710630 (diff) | |
| download | rust-8f03a55566a0b382b5c8506b153e2850af9c280e.tar.gz rust-8f03a55566a0b382b5c8506b153e2850af9c280e.zip | |
linking in general has more pitfalls than just call ABI
Diffstat (limited to 'library/core/src')
| -rw-r--r-- | library/core/src/primitive_docs.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/library/core/src/primitive_docs.rs b/library/core/src/primitive_docs.rs index 8b00719368a..53dec5bee8f 100644 --- a/library/core/src/primitive_docs.rs +++ b/library/core/src/primitive_docs.rs @@ -1521,8 +1521,9 @@ mod prim_ref {} /// exceptional circumstances. Most Rust code just imports functions via `use`. `#[target_feature]` /// is also used rarely. So, most likely you do not have to worry about ABI compatibility. /// -/// But assuming such circumstances, what are the rules? For this section, we are specifically -/// concerned with the case where both the caller and the callee are defined in Rust. +/// But assuming such circumstances, what are the rules? For this section, we are only considering +/// the ABI of direct Rust-to-Rust calls, not linking in general -- once functions are imported via +/// `extern` blocks, there are more things to consider that we do not go into here. /// /// For two signatures to be considered *ABI-compatible*, they must use a compatible ABI string, /// must take the same number of arguments, the individual argument types and the return types must |
