Skip to content

Commit d6e63a3

Browse files
authored
Adapt implementation to "deterministic type_name"
Hopefully I didn't miss anything here.
1 parent d0cc41d commit d6e63a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/interpret/intrinsics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> InterpretCx<'a, 'mir, 'tcx, M>
8181

8282
"type_name" => {
8383
let ty = substs.type_at(0);
84-
let ty_name = ty.to_string();
84+
let ty_name = type_name(self.tcx, ty).ty.to_string();
8585
let name_val = self.str_to_immediate(&ty_name)?;
8686
self.write_immediate(name_val, dest)?;
8787
}

0 commit comments

Comments
 (0)