rust/compiler/rustc_passes/src
bors 0df1ddc185 Auto merge of #99556 - davidtwco:collapse-debuginfo, r=wesleywiser
ssa: implement `#[collapse_debuginfo]`

cc #39153 rust-lang/compiler-team#386

Debuginfo line information for macro invocations are collapsed by default - line information are replaced by the line of the outermost expansion site. Using `-Zdebug-macros` disables this behaviour.

When the `collapse_debuginfo` feature is enabled, the default behaviour is reversed so that debuginfo is not collapsed by default. In addition, the `#[collapse_debuginfo]` attribute is available and can be applied to macro definitions which will then have their line information collapsed.

r? rust-lang/wg-debugging
2022-09-13 01:19:05 +00:00
..
liveness Use iter::zip in compiler/ 2021-03-26 09:32:31 -07:00
check_attr.rs Auto merge of #99556 - davidtwco:collapse-debuginfo, r=wesleywiser 2022-09-13 01:19:05 +00:00
check_const.rs Remove trait_of_item query. 2022-08-01 21:39:26 +02:00
dead.rs Handle generic parameters. 2022-09-09 01:31:46 +00:00
debugger_visualizer.rs Respond to PR comments. 2022-05-25 10:44:56 -07:00
diagnostic_items.rs remove DiagnosticItemCollector 2022-05-13 11:46:05 -04:00
entry.rs Support #[unix_sigpipe = "inherit|sig_dfl|sig_ign"] on fn main() 2022-08-28 19:46:45 +02:00
errors.rs ssa: implement #[collapse_debuginfo] 2022-09-07 13:54:51 +01:00
hir_id_validator.rs Format hir_id_validator error using pretty print 2022-09-07 10:46:17 -03:00
hir_stats.rs Arena-allocate hir::Lifetime. 2022-09-08 15:07:19 +10:00
lang_items.rs use def_span and def_kind queries instead of calling tcx.hir() methods 2022-05-06 12:11:05 -04:00
layout_test.rs remove LayoutTest 2022-05-13 11:46:05 -04:00
lib_features.rs Also replace the version placeholder in rustc_attr 2022-09-02 01:47:01 +02:00
lib.rs Revert let_chains stabilization 2022-08-29 19:34:11 +02:00
liveness.rs use propagate_through_exprs instead of propagate_through_expr 2022-09-05 23:11:34 +09:00
loops.rs Add an indirection for closures in hir::ExprKind 2022-07-12 21:00:13 +04:00
naked_functions.rs Refactor and re-use BindingAnnotation 2022-09-02 12:55:05 -05:00
reachable.rs Handle generic parameters. 2022-09-09 01:31:46 +00:00
stability.rs Make hir::PathSegment::res non-optional. 2022-09-05 14:20:25 +10:00
upvars.rs Rename local_did to def_id 2022-07-29 18:26:10 -04:00
weak_lang_items.rs Use FxIndexMap instead of otherwise unused StableMap for WEAK_ITEMS_REFS. 2022-07-20 12:40:51 +02:00