1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1521,8 +1521,9 @@ mod prim_ref {}
1521
1521
/// exceptional circumstances. Most Rust code just imports functions via `use`. `#[target_feature]`
1522
1522
/// is also used rarely. So, most likely you do not have to worry about ABI compatibility.
1523
1523
///
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.
1526
1527
///
1527
1528
/// For two signatures to be considered *ABI-compatible*, they must use a compatible ABI string,
1528
1529
/// must take the same number of arguments, the individual argument types and the return types must
0 commit comments