Comment nit

This commit is contained in:
Oliver Scherer 2020-03-12 11:06:14 +01:00
parent db9ddf1cf1
commit d0b12117c5

View File

@ -1018,7 +1018,7 @@ pub trait PrettyPrinter<'tcx>:
" as ", " as ",
)?; )?;
} }
// For function type zsts just printing the type is enough // For function type zsts just printing the path is enough
(Scalar::Raw { size: 0, .. }, ty::FnDef(d, s)) => p!(print_value_path(*d, s)), (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. // Empty tuples are frequently occurring, so don't print the fallback.
(Scalar::Raw { size: 0, .. }, ty::Tuple(ts)) if ts.is_empty() => p!(write("()")), (Scalar::Raw { size: 0, .. }, ty::Tuple(ts)) if ts.is_empty() => p!(write("()")),