Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8f03a55

Browse files
committedNov 17, 2023
linking in general has more pitfalls than just call ABI
1 parent 52d22ea commit 8f03a55

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎library/core/src/primitive_docs.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1521,8 +1521,9 @@ mod prim_ref {}
15211521
/// exceptional circumstances. Most Rust code just imports functions via `use`. `#[target_feature]`
15221522
/// is also used rarely. So, most likely you do not have to worry about ABI compatibility.
15231523
///
1524-
/// But assuming such circumstances, what are the rules? For this section, we are specifically
1525-
/// concerned with the case where both the caller and the callee are defined in Rust.
1524+
/// But assuming such circumstances, what are the rules? For this section, we are only considering
1525+
/// the ABI of direct Rust-to-Rust calls, not linking in general -- once functions are imported via
1526+
/// `extern` blocks, there are more things to consider that we do not go into here.
15261527
///
15271528
/// For two signatures to be considered *ABI-compatible*, they must use a compatible ABI string,
15281529
/// must take the same number of arguments, the individual argument types and the return types must

0 commit comments

Comments
 (0)
Failed to load comments.