diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-05-09 16:42:26 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-05-10 09:55:09 +1000 |
| commit | df6f7133ee20b545a362f0419807c4beb0ea76ff (patch) | |
| tree | bc52c67ca88e63a991b077d01f957f074d070cc6 /compiler/rustc_trait_selection/src/traits/vtable.rs | |
| parent | 24445d3b6a0e89b211c564d29e12e9cca09a9580 (diff) | |
| download | rust-df6f7133ee20b545a362f0419807c4beb0ea76ff.tar.gz rust-df6f7133ee20b545a362f0419807c4beb0ea76ff.zip | |
De-tuple two `vtable_trait_first_method_offset` args.
Thus eliminating a `FIXME` comment.
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits/vtable.rs')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/vtable.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/vtable.rs b/compiler/rustc_trait_selection/src/traits/vtable.rs index 178f3c63ef7..3f1ba80acd3 100644 --- a/compiler/rustc_trait_selection/src/traits/vtable.rs +++ b/compiler/rustc_trait_selection/src/traits/vtable.rs @@ -320,16 +320,11 @@ fn vtable_entries<'tcx>( } /// Find slot base for trait methods within vtable entries of another trait -// FIXME(@lcnr): This isn't a query, so why does it take a tuple as its argument. pub(super) fn vtable_trait_first_method_offset<'tcx>( tcx: TyCtxt<'tcx>, - key: ( - ty::PolyTraitRef<'tcx>, // trait_to_be_found - ty::PolyTraitRef<'tcx>, // trait_owning_vtable - ), + trait_to_be_found: ty::PolyTraitRef<'tcx>, + trait_owning_vtable: ty::PolyTraitRef<'tcx>, ) -> usize { - let (trait_to_be_found, trait_owning_vtable) = key; - // #90177 let trait_to_be_found_erased = tcx.erase_regions(trait_to_be_found); |
