1
Fork 0

Improved collapse_debuginfo attribute, added command-line flag (no|external|yes)

This commit is contained in:
Andrew Zhogin 2024-01-11 01:36:05 +07:00
parent bf2637f4e8
commit 8507f5105b
17 changed files with 281 additions and 21 deletions

View file

@ -2535,8 +2535,7 @@ impl<'tcx> TyCtxt<'tcx> {
if self.sess.opts.unstable_opts.debug_macros || !span.from_expansion() {
return span;
}
let collapse_debuginfo_enabled = self.features().collapse_debuginfo;
hygiene::walk_chain_collapsed(span, upto, collapse_debuginfo_enabled)
hygiene::walk_chain_collapsed(span, upto, self.features().collapse_debuginfo)
}
#[inline]