about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorOliver Scherer <github35764891676564198441@oli-obk.de>2020-03-11 09:39:58 +0100
committerOliver Scherer <github35764891676564198441@oli-obk.de>2020-03-11 09:39:58 +0100
commitdb9ddf1cf1a0977065fcaa7fe874f6509037dbcc (patch)
tree9858d2b5f802537335514e470b16dca4ffd51aa0 /src
parent2e91065a6f4f3d27eab5fe66dc34c33c016c244d (diff)
downloadrust-db9ddf1cf1a0977065fcaa7fe874f6509037dbcc.tar.gz
rust-db9ddf1cf1a0977065fcaa7fe874f6509037dbcc.zip
Address review comments
Diffstat (limited to 'src')
-rw-r--r--src/librustc/ty/print/pretty.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/ty/print/pretty.rs b/src/librustc/ty/print/pretty.rs
index f1d17c87248..d6efb28bcc3 100644
--- a/src/librustc/ty/print/pretty.rs
+++ b/src/librustc/ty/print/pretty.rs
@@ -1019,7 +1019,7 @@ pub trait PrettyPrinter<'tcx>:
                 )?;
             }
             // For function type zsts just printing the type is enough
-            (Scalar::Raw { size: 0, .. }, ty::FnDef(..)) => p!(print(ty)),
+            (Scalar::Raw { size: 0, .. }, ty::FnDef(d, s)) => p!(print_value_path(*d, s)),
             // Empty tuples are frequently occurring, so don't print the fallback.
             (Scalar::Raw { size: 0, .. }, ty::Tuple(ts)) if ts.is_empty() => p!(write("()")),
             // Zero element arrays have a trivial representation.