diff options
| author | Michael Goulet <michael@errs.io> | 2025-03-18 16:17:18 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-03-18 17:35:26 +0000 |
| commit | 93b31d9b21f5a7066cba65ecbf85f2ef16dec891 (patch) | |
| tree | 94c6676930328bffb770b7534629f61ac121cd9a /compiler/rustc_middle/src/ty/instance.rs | |
| parent | 75530e9f72a1990ed2305e16fd51d02f47048f12 (diff) | |
| download | rust-93b31d9b21f5a7066cba65ecbf85f2ef16dec891.tar.gz rust-93b31d9b21f5a7066cba65ecbf85f2ef16dec891.zip | |
Remove existing AFIDT implementation
Diffstat (limited to 'compiler/rustc_middle/src/ty/instance.rs')
| -rw-r--r-- | compiler/rustc_middle/src/ty/instance.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/rustc_middle/src/ty/instance.rs b/compiler/rustc_middle/src/ty/instance.rs index b99148f3368..980d20f9d3b 100644 --- a/compiler/rustc_middle/src/ty/instance.rs +++ b/compiler/rustc_middle/src/ty/instance.rs @@ -712,10 +712,7 @@ impl<'tcx> Instance<'tcx> { .. }) ); - // We also need to generate a shim if this is an AFIT. - let needs_rpitit_shim = - tcx.return_position_impl_trait_in_trait_shim_data(def).is_some(); - if needs_track_caller_shim || needs_rpitit_shim { + if needs_track_caller_shim { if tcx.is_closure_like(def) { debug!( " => vtable fn pointer created for closure with #[track_caller]: {:?} for method {:?} {:?}", |
