You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: compiler/rustc_middle/src/ty/sty.rs
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1328,6 +1328,9 @@ pub struct GenSig<'tcx> {
1328
1328
/// - `inputs`: is the list of arguments and their modes.
1329
1329
/// - `output`: is the return type.
1330
1330
/// - `c_variadic`: indicates whether this is a C-variadic function.
1331
+
/// NOTE: this signature may not match exactly with the signature of a compiled function.
1332
+
/// Attributes like `#[track_caller]` may introduce additional arguments, which are not present here, but are represented in [`rustc_target::abi::call::FnAbi`].
1333
+
/// If you are interested in the exact signature and the way arguments are aligned/passed, use [`rustc_target::abi::call::FnAbi`].
Copy file name to clipboardExpand all lines: compiler/rustc_target/src/abi/call/mod.rs
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -729,6 +729,10 @@ impl RiscvInterruptKind {
729
729
730
730
/// Metadata describing how the arguments to a native function
731
731
/// should be passed in order to respect the native ABI.
732
+
///
733
+
/// Signature contained within this function does not have to match the one present in MIR.
734
+
/// Certain attributtes, like `#[track_caller]` can introduce addtional arguments, which are present in [`FnAbi`], but not in [`rustc_middle::ty::FnSig`].
735
+
/// This difference is not relevant in most cases, but should still be kept in mind.
732
736
///
733
737
/// I will do my best to describe this structure, but these
734
738
/// comments are reverse-engineered and may be inaccurate. -NDM
@@ -749,7 +753,7 @@ pub struct FnAbi<'a, Ty> {
749
753
pubfixed_count:u32,
750
754
751
755
pubconv:Conv,
752
-
756
+
/// This variable desribes if unwind can cross this function, or if it is invalid to unwind troguh it.
0 commit comments