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:
parent
60f1a2fc4b
commit
06ca736e14
11 changed files with 29 additions and 29 deletions
|
@ -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!("]")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue