Skip to content

Commit 7a122b2

Browse files
committed
removed conflicting "vtable_for"
1 parent c7373ef commit 7a122b2

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

compiler/rustc_const_eval/src/interpret/intrinsics.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -265,22 +265,6 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
265265
self.write_discriminant(FIRST_VARIANT, dest)?;
266266
}
267267
}
268-
sym::vtable_for => {
269-
let tp_ty = instance.args.type_at(0);
270-
let result_ty = instance.args.type_at(1);
271-
//let dyn_metadata = tcx.require_lang_item(LangItem::DynMetadata, span);
272-
273-
ensure_monomorphic_enough(tcx, tp_ty)?;
274-
ensure_monomorphic_enough(tcx, result_ty)?;
275-
276-
// Get vtable
277-
//let vtable_ptr = self.get_vtable_ptr(tp_ty, result_ty.into())?;
278-
279-
//let dyn_metadata = metadata(vtable_ptr);
280-
//let val = ConstValue::from_u128(tcx.type_id_hash(tp_ty).as_u128());
281-
//let val = self.const_val_to_op(val, dest.layout.ty, Some(dest.layout))?;
282-
//self.copy_op(&val, dest)?;
283-
}
284268
sym::variant_count => {
285269
let tp_ty = instance.args.type_at(0);
286270
let ty = match tp_ty.kind() {

0 commit comments

Comments
 (0)