Skip to content

Commit bc3ba91

Browse files
committed
Printing a fn definition needs to know nothing about its ZST's value
1 parent 09a996b commit bc3ba91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/mir/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1916,7 +1916,7 @@ pub fn print_miri_value<W: Write>(value: Value, ty: Ty, f: &mut W) -> fmt::Resul
19161916
},
19171917
(Value::Scalar(Scalar::Bits { bits, .. }), &TyChar) =>
19181918
write!(f, "{:?}", ::std::char::from_u32(bits as u32).unwrap()),
1919-
(Value::Scalar(Scalar::Bits { .. }), &TyFnDef(did, _)) =>
1919+
(_, &TyFnDef(did, _)) =>
19201920
write!(f, "{}", item_path_str(did)),
19211921
(Value::ScalarPair(Scalar::Ptr(ptr), Scalar::Bits { bits: len, .. }),
19221922
&TyRef(_, &ty::TyS { sty: TyStr, .. }, _)) => {

0 commit comments

Comments
 (0)