Skip to content

Commit

Permalink
Fix nightly build
Browse files Browse the repository at this point in the history
  • Loading branch information
nbdd0121 committed Sep 26, 2024
1 parent 059fb9b commit 2f152ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/monomorphize_collector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1179,8 +1179,8 @@ fn collect_alloc<'tcx>(
trace!("collecting {:?} with {:#?}", alloc_id, instance);
output.push(create_fn_mono_item(tcx, instance, DUMMY_SP));
}
GlobalAlloc::VTable(ty, trait_ref) => {
let alloc_id = tcx.vtable_allocation((ty, trait_ref));
GlobalAlloc::VTable(ty, dyn_ty) => {
let alloc_id = tcx.vtable_allocation((ty, dyn_ty.principal()));
collect_alloc(tcx, alloc_id, output)
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/preempt_count/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ impl<'mir, 'tcx, 'cx> MirNeighborVisitor<'mir, 'tcx, 'cx> {
GlobalAlloc::Function { instance, .. } => {
self.check_fn_pointer_cast(instance, span)?;
}
GlobalAlloc::VTable(ty, trait_ref) => {
self.check_vtable_construction(ty, trait_ref, span)?;
GlobalAlloc::VTable(ty, dyn_ty) => {
self.check_vtable_construction(ty, dyn_ty.principal(), span)?;
}
}

Expand Down

0 comments on commit 2f152ac

Please sign in to comment.