diff options
| author | Michael Goulet <michael@errs.io> | 2024-11-16 19:00:28 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-12-04 21:23:36 +0000 |
| commit | 03aec5dbef301219a288c46401d2bf0079724929 (patch) | |
| tree | b0e95a7a8028ac1be6312ba171af7f38ae47c1c4 /compiler/rustc_mir_transform/src | |
| parent | acabb5248231987ae1f0c215208d1005a5db402d (diff) | |
| download | rust-03aec5dbef301219a288c46401d2bf0079724929.tar.gz rust-03aec5dbef301219a288c46401d2bf0079724929.zip | |
fn_sig_for_fn_abi should return a ty::FnSig, no need for a binder
Diffstat (limited to 'compiler/rustc_mir_transform/src')
| -rw-r--r-- | compiler/rustc_mir_transform/src/shim.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_mir_transform/src/shim.rs b/compiler/rustc_mir_transform/src/shim.rs index 809357ec110..b8383e734e2 100644 --- a/compiler/rustc_mir_transform/src/shim.rs +++ b/compiler/rustc_mir_transform/src/shim.rs @@ -747,8 +747,8 @@ fn build_call_shim<'tcx>( sig.inputs_and_output = tcx.mk_type_list(&inputs_and_output); } - // FIXME(eddyb) avoid having this snippet both here and in - // `Instance::fn_sig` (introduce `InstanceKind::fn_sig`?). + // FIXME: Avoid having to adjust the signature both here and in + // `fn_sig_for_fn_abi`. if let ty::InstanceKind::VTableShim(..) = instance { // Modify fn(self, ...) to fn(self: *mut Self, ...) let mut inputs_and_output = sig.inputs_and_output.to_vec(); |
