1
Fork 0

Pretty print generator witness only in -Zverbose mode

In release build of deeply-nested-async benchmark the size of
`no-opt.bc` file is reduced from 46MB to 62kB.
This commit is contained in:
Tomasz Miąsko 2021-06-12 00:00:00 +00:00
parent 60f1a2fc4b
commit 06ca736e14
11 changed files with 29 additions and 29 deletions

View file

@ -685,10 +685,10 @@ pub trait PrettyPrinter<'tcx>:
self = self.comma_sep(substs.as_generator().upvar_tys())?;
}
p!(")");
}
if substs.as_generator().is_valid() {
p!(" ", print(substs.as_generator().witness()));
if substs.as_generator().is_valid() {
p!(" ", print(substs.as_generator().witness()));
}
}
p!("]")