Rollup merge of #119828 - azhogin:azhogin/collapse_debuginfo_improved_attr, r=petrochenkov
Improved collapse_debuginfo attribute, added command-line flag Improved attribute collapse_debuginfo with variants: `#[collapse_debuginfo=(no|external|yes)]`. Added command-line flag for default behaviour. Work-in-progress: will add more tests. cc https://github.com/rust-lang/rust/issues/100758
This commit is contained in:
commit
c0da80f418
17 changed files with 281 additions and 21 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue