query-fy type_name
This commit is contained in:
parent
b7f5eab11c
commit
0f822d775f
5 changed files with 12 additions and 3 deletions
|
|
@ -212,7 +212,7 @@ impl IntrinsicCallMethods<'tcx> for Builder<'a, 'll, 'tcx> {
|
|||
}
|
||||
"type_name" => {
|
||||
let tp_ty = substs.type_at(0);
|
||||
let ty_name = rustc_mir::interpret::type_name(self.tcx, tp_ty);
|
||||
let ty_name = self.tcx.type_name(tp_ty);
|
||||
OperandRef::from_const(self, ty_name).immediate_or_packed_pair(self)
|
||||
}
|
||||
"type_id" => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue