Skip to content

Commit cce1392

Browse files
authored
We need "tcx.tcx", not just "tcx"
1 parent d6e63a3 commit cce1392

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/interpret/intrinsics.rs

+1-1
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 = type_name(self.tcx, ty).ty.to_string();
84+
let ty_name = type_name(self.tcx.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)