rust/compiler
David Wood 38958aa8bd ssa: implement #[collapse_debuginfo]
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.

Signed-off-by: David Wood <david.wood@huawei.com>
2022-09-07 13:54:51 +01:00
..
rustc Don't rerun the build script for the compiler each time on linux 2022-07-10 23:57:25 -05:00
rustc_apfloat Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_arena Make use of [wrapping_]byte_{add,sub} 2022-08-23 19:32:37 +04:00
rustc_ast Auto merge of #101362 - compiler-errors:unnecessary-let, r=cjgillot 2022-09-06 08:49:54 +00:00
rustc_ast_lowering Rollup merge of #101468 - spastorino:fix-ice-rpit-hrtb-without-dyn, r=cjgillot 2022-09-07 07:43:52 +09:00
rustc_ast_passes Refactor and re-use BindingAnnotation 2022-09-02 12:55:05 -05:00
rustc_ast_pretty Auto merge of #101241 - camsteffen:refactor-binding-annotations, r=cjgillot 2022-09-06 03:16:29 +00:00
rustc_attr Rollup merge of #101486 - asquared31415:invalid_repr_list, r=estebank 2022-09-07 07:43:54 +09:00
rustc_borrowck Auto merge of #101241 - camsteffen:refactor-binding-annotations, r=cjgillot 2022-09-06 03:16:29 +00:00
rustc_builtin_macros Refactor and re-use BindingAnnotation 2022-09-02 12:55:05 -05:00
rustc_codegen_cranelift ssa: implement #[collapse_debuginfo] 2022-09-07 13:54:51 +01:00
rustc_codegen_gcc Remove dead broken code from const zst handling in backends 2022-09-06 14:09:49 +00:00
rustc_codegen_llvm Rollup merge of #101484 - oli-obk:no_zst, r=eddyb 2022-09-07 07:43:54 +09:00
rustc_codegen_ssa ssa: implement #[collapse_debuginfo] 2022-09-07 13:54:51 +01:00
rustc_const_eval Rollup merge of #101402 - saethlin:inline-asm-hook, r=oli-obk 2022-09-06 08:36:04 +09:00
rustc_data_structures Auto merge of #100869 - nnethercote:replace-ThinVec, r=spastorino 2022-09-01 08:01:06 +00:00
rustc_driver tracing::instrument cleanup 2022-09-01 14:54:27 +00:00
rustc_error_codes Stabilize #![feature(label_break_value)] 2022-08-23 21:14:12 -05:00
rustc_error_messages ssa: implement #[collapse_debuginfo] 2022-09-07 13:54:51 +01:00
rustc_errors Report number of delayed bugs properly with -Ztreat-err-as-bug 2022-09-06 07:12:52 +00:00
rustc_expand ssa: implement #[collapse_debuginfo] 2022-09-07 13:54:51 +01:00
rustc_feature ssa: implement #[collapse_debuginfo] 2022-09-07 13:54:51 +01:00
rustc_fs_util Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_graphviz Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_hir change stdlib circular dependencies handling 2022-09-06 14:05:54 +04:00
rustc_hir_pretty Auto merge of #101241 - camsteffen:refactor-binding-annotations, r=cjgillot 2022-09-06 03:16:29 +00:00
rustc_incremental Remove trait_of_item query. 2022-08-01 21:39:26 +02:00
rustc_index Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_infer Rollup merge of #101445 - TaKO8Ki:suggest-introducing-explicit-lifetime, r=oli-obk 2022-09-06 17:00:27 +02:00
rustc_interface Auto merge of #100801 - Kobzol:track-pgo-profile-paths, r=michaelwoerister 2022-09-07 03:17:10 +00:00
rustc_lexer Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_lint Rollup merge of #101434 - JhonnyBillM:replace-session-for-handler-in-into-diagnostic, r=davidtwco 2022-09-06 17:00:26 +02:00
rustc_lint_defs Don't fire rust_2021_incompatible_closure_captures in edition = 2021 2022-09-04 20:04:51 +04:00
rustc_llvm Rollup merge of #101025 - semarie:openbsd-archs, r=petrochenkov 2022-08-31 07:57:58 +02:00
rustc_log Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_macros UPDATE - into_diagnostic to take a Handler instead of a ParseSess 2022-09-05 02:18:45 -04:00
rustc_metadata Rollup merge of #101434 - JhonnyBillM:replace-session-for-handler-in-into-diagnostic, r=davidtwco 2022-09-06 17:00:26 +02:00
rustc_middle ssa: implement #[collapse_debuginfo] 2022-09-07 13:54:51 +01:00
rustc_mir_build Rollup merge of #101357 - compiler-errors:variant-sugg-tweak, r=oli-obk 2022-09-06 17:00:25 +02:00
rustc_mir_dataflow Rollup merge of #99027 - tmiasko:basic-blocks, r=oli-obk 2022-08-29 06:34:43 +02:00
rustc_mir_transform remap mir before running optimization passes 2022-09-04 20:35:23 +08:00
rustc_monomorphize Rollup merge of #101434 - JhonnyBillM:replace-session-for-handler-in-into-diagnostic, r=davidtwco 2022-09-06 17:00:26 +02:00
rustc_parse Rollup merge of #101457 - ChayimFriedman2:struct-field-semi, r=fee1-dead 2022-09-06 17:00:28 +02:00
rustc_parse_format Separate CountIsStar from CountIsParam in rustc_parse_format. 2022-08-25 14:49:09 +02:00
rustc_passes ssa: implement #[collapse_debuginfo] 2022-09-07 13:54:51 +01:00
rustc_plugin_impl Migrate rustc_plugin_impl to SessionDiagnostic 2022-08-22 16:35:05 +01:00
rustc_privacy Rollup merge of #100147 - Bryanskiy:private-in-public, r=petrochenkov 2022-09-02 11:34:48 +02:00
rustc_query_impl Don't create two new closures for each query 2022-09-01 18:47:54 -05:00
rustc_query_system UPDATE - into_diagnostic to take a Handler instead of a ParseSess 2022-09-05 02:18:45 -04:00
rustc_resolve Auto merge of #101241 - camsteffen:refactor-binding-annotations, r=cjgillot 2022-09-06 03:16:29 +00:00
rustc_save_analysis Auto merge of #101241 - camsteffen:refactor-binding-annotations, r=cjgillot 2022-09-06 03:16:29 +00:00
rustc_serialize Replace rustc_data_structures::thin_vec::ThinVec with thin_vec::ThinVec. 2022-08-29 15:42:13 +10:00
rustc_session UPDATE - into_diagnostic to take a Handler instead of a ParseSess 2022-09-05 02:18:45 -04:00
rustc_smir Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
rustc_span ssa: implement #[collapse_debuginfo] 2022-09-07 13:54:51 +01:00
rustc_symbol_mangling Always import all tracing macros for the entire crate instead of piecemeal by module 2022-09-01 14:54:27 +00:00
rustc_target rustc_target: Refactor internal linker flavors slightly 2022-09-01 16:54:52 +03:00
rustc_trait_selection Rollup merge of #101434 - JhonnyBillM:replace-session-for-handler-in-into-diagnostic, r=davidtwco 2022-09-06 17:00:26 +02:00
rustc_traits Fix a bunch of typo 2022-08-31 18:24:55 +08:00
rustc_transmute Auto merge of #100726 - jswrenn:transmute, r=oli-obk 2022-09-04 07:55:44 +00:00
rustc_ty_utils Box PatKind::Range. 2022-09-02 07:26:22 +10:00
rustc_type_ir ADD - diagnostic lints to type_ir 2022-08-18 13:33:03 -04:00
rustc_typeck Rollup merge of #101434 - JhonnyBillM:replace-session-for-handler-in-into-diagnostic, r=davidtwco 2022-09-06 17:00:26 +02:00