Skip to content

Commit db9ddf1

Browse files
committed
Address review comments
1 parent 2e91065 commit db9ddf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/ty/print/pretty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ pub trait PrettyPrinter<'tcx>:
10191019
)?;
10201020
}
10211021
// For function type zsts just printing the type is enough
1022-
(Scalar::Raw { size: 0, .. }, ty::FnDef(..)) => p!(print(ty)),
1022+
(Scalar::Raw { size: 0, .. }, ty::FnDef(d, s)) => p!(print_value_path(*d, s)),
10231023
// Empty tuples are frequently occurring, so don't print the fallback.
10241024
(Scalar::Raw { size: 0, .. }, ty::Tuple(ts)) if ts.is_empty() => p!(write("()")),
10251025
// Zero element arrays have a trivial representation.

0 commit comments

Comments
 (0)