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:
@@ -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!("]")
|
||||
|
||||
Reference in New Issue
Block a user