diff options
| author | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-05-24 10:20:06 +0200 |
|---|---|---|
| committer | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-05-24 20:49:38 +0200 |
| commit | bc3ba91737c654d8b0d61b4fb86bd9cb5a1475de (patch) | |
| tree | b0a5b111c43f7d2ab9f032b394b5d5fe812e668d | |
| parent | 09a996b0a66e48a02f31d58dfce22a328969791d (diff) | |
| download | rust-bc3ba91737c654d8b0d61b4fb86bd9cb5a1475de.tar.gz rust-bc3ba91737c654d8b0d61b4fb86bd9cb5a1475de.zip | |
Printing a fn definition needs to know nothing about its ZST's value
| -rw-r--r-- | src/librustc/mir/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/mir/mod.rs b/src/librustc/mir/mod.rs index ce36d013b18..3b9cda509b9 100644 --- a/src/librustc/mir/mod.rs +++ b/src/librustc/mir/mod.rs @@ -1916,7 +1916,7 @@ pub fn print_miri_value<W: Write>(value: Value, ty: Ty, f: &mut W) -> fmt::Resul }, (Value::Scalar(Scalar::Bits { bits, .. }), &TyChar) => write!(f, "{:?}", ::std::char::from_u32(bits as u32).unwrap()), - (Value::Scalar(Scalar::Bits { .. }), &TyFnDef(did, _)) => + (_, &TyFnDef(did, _)) => write!(f, "{}", item_path_str(did)), (Value::ScalarPair(Scalar::Ptr(ptr), Scalar::Bits { bits: len, .. }), &TyRef(_, &ty::TyS { sty: TyStr, .. }, _)) => { |
