Skip to content

Commit 376dd76

Browse files
committed
Sync from rust bb918d0a5bf22211df0423f7474e4e4056978007
2 parents dbeafcc + 2228c49 commit 376dd76

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/archive.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ impl<'a> ArchiveBuilder<'a> for ArArchiveBuilder<'a> {
242242
fn inject_dll_import_lib(
243243
&mut self,
244244
_lib_name: &str,
245-
_dll_imports: &[rustc_middle::middle::cstore::DllImport],
245+
_dll_imports: &[rustc_session::cstore::DllImport],
246246
_tmpdir: &rustc_data_structures::temp_dir::MaybeTempDir,
247247
) {
248248
bug!("injecting dll imports is not supported");

src/vtable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ pub(crate) fn get_vtable<'tcx>(
6868
ty: Ty<'tcx>,
6969
trait_ref: Option<ty::PolyExistentialTraitRef<'tcx>>,
7070
) -> Value {
71-
let alloc_id = fx.tcx.vtable_allocation(ty, trait_ref);
71+
let alloc_id = fx.tcx.vtable_allocation((ty, trait_ref));
7272
let data_id =
7373
data_id_for_alloc_id(&mut fx.constants_cx, &mut *fx.module, alloc_id, Mutability::Not);
7474
let local_data_id = fx.module.declare_data_in_func(data_id, &mut fx.bcx.func);

0 commit comments

Comments
 (0)