From db9ddf1cf1a0977065fcaa7fe874f6509037dbcc Mon Sep 17 00:00:00 2001 From: Oliver Scherer Date: Wed, 11 Mar 2020 09:39:58 +0100 Subject: [PATCH] Address review comments --- src/librustc/ty/print/pretty.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.