rust/compiler
bors e6c43cf8b9 Auto merge of #95685 - oxidecomputer:restore-static-dwarf, r=pnkfelix
Revert "Work around invalid DWARF bugs for fat LTO"

Since September, the toolchain has not been generating reliable DWARF
information for static variables when LTO is on. This has affected
projects in the embedded space where the use of LTO is typical. In our
case, it has kept us from bumping past the 2021-09-22 nightly toolchain
lest our debugger break. This has been a pretty dramatic regression for
people using debuggers and static variables. See #90357 for more info
and a repro case.

This commit is a mechanical revert of
d5de680e20 from PR #89041, which caused
the issue. (Note on that PR that the commit's author has requested it be
reverted.)

I have locally verified that this fixes #90357 by restoring the
functionality of both the repro case I posted on that bug, and debugger
behavior on real programs. There do not appear to be test cases for this
in the toolchain; if I've missed them, point me at 'em and I'll update
them.
2022-07-16 00:18:54 +00: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 Update smallvec to 1.8.1. 2022-06-27 08:48:55 +10:00
rustc_arena Rollup merge of #97711 - Nilstrieb:rustc-arena-ub, r=wesleywiser 2022-07-07 18:06:49 +05:30
rustc_ast Add back expr size checks 2022-07-12 21:00:13 +04:00
rustc_ast_lowering Auto merge of #99231 - Dylan-DPC:rollup-0tl8c0o, r=Dylan-DPC 2022-07-14 11:00:30 +00:00
rustc_ast_passes Parse closure binders 2022-07-12 16:25:16 +04:00
rustc_ast_pretty Parse closure binders 2022-07-12 16:25:16 +04:00
rustc_attr Auto merge of #95956 - yaahc:stable-in-unstable, r=cjgillot 2022-07-14 13:42:09 +00:00
rustc_borrowck provide generic_param_scope for region errors 2022-07-15 16:53:20 +02:00
rustc_builtin_macros Auto merge of #99046 - nnethercote:final-derive-output-improvements, r=Mark-Simulacrum 2022-07-15 14:30:14 +00:00
rustc_codegen_cranelift Rename debugging_opts to unstable_opts 2022-07-13 17:47:06 -05:00
rustc_codegen_gcc Rename debugging_opts to unstable_opts 2022-07-13 17:47:06 -05:00
rustc_codegen_llvm Auto merge of #95685 - oxidecomputer:restore-static-dwarf, r=pnkfelix 2022-07-16 00:18:54 +00:00
rustc_codegen_ssa Auto merge of #96544 - m-ysk:feature/issue-96358, r=cjgillot 2022-07-14 21:50:14 +00:00
rustc_const_eval Auto merge of #99013 - RalfJung:dont-poison-my-places, r=oli-obk 2022-07-15 08:57:59 +00:00
rustc_data_structures Auto merge of #96544 - m-ysk:feature/issue-96358, r=cjgillot 2022-07-14 21:50:14 +00:00
rustc_driver Rename debugging_opts to unstable_opts 2022-07-13 17:47:06 -05:00
rustc_error_codes fixes post rebase 2022-07-08 21:18:16 +00:00
rustc_error_messages use subdiagnostic for message 2022-07-10 23:43:46 +00:00
rustc_errors Rollup merge of #99075 - danobi:dup_type_hint_sugg, r=petrochenkov 2022-07-11 22:39:05 +02:00
rustc_expand Rollup merge of #98580 - PrestonFrom:issue_98466, r=estebank 2022-07-14 19:24:03 +05:30
rustc_feature Auto merge of #95956 - yaahc:stable-in-unstable, r=cjgillot 2022-07-14 13:42:09 +00:00
rustc_fs_util
rustc_graphviz Fully stabilize NLL 2022-06-03 17:16:41 -04:00
rustc_hir Rollup merge of #99119 - TaKO8Ki:remove-string-matching-about-methods, r=cjgillot 2022-07-15 15:53:38 +05:30
rustc_hir_pretty Rollup merge of #98705 - WaffleLapkin:closure_binder, r=cjgillot 2022-07-14 14:14:21 +05:30
rustc_incremental Rename debugging_opts to unstable_opts 2022-07-13 17:47:06 -05:00
rustc_index Use a bitset instead of a hash map in HIR ID validator 2022-07-04 08:30:13 +02:00
rustc_infer provide generic_param_scope for region errors 2022-07-15 16:53:20 +02:00
rustc_interface Auto merge of #96544 - m-ysk:feature/issue-96358, r=cjgillot 2022-07-14 21:50:14 +00:00
rustc_lexer fix typo in comment 2022-06-28 19:59:09 +05:30
rustc_lint Remove some more usages of guess_head_span 2022-07-15 03:17:20 +00:00
rustc_lint_defs Emit warning when named arguments are used positionally in format 2022-07-13 15:34:10 -06:00
rustc_llvm Auto merge of #95685 - oxidecomputer:restore-static-dwarf, r=pnkfelix 2022-07-16 00:18:54 +00:00
rustc_log clippy::complexity fixes 2022-05-26 13:14:24 +02:00
rustc_macros Use dashes instead of underscores in fluent names 2022-07-08 03:37:36 +00:00
rustc_metadata Auto merge of #96544 - m-ysk:feature/issue-96358, r=cjgillot 2022-07-14 21:50:14 +00:00
rustc_middle Auto merge of #99278 - Dylan-DPC:rollup-fcln6st, r=Dylan-DPC 2022-07-15 11:44:20 +00:00
rustc_mir_build Auto merge of #99231 - Dylan-DPC:rollup-0tl8c0o, r=Dylan-DPC 2022-07-14 11:00:30 +00:00
rustc_mir_dataflow Rename debugging_opts to unstable_opts 2022-07-13 17:47:06 -05:00
rustc_mir_transform Auto merge of #98975 - jyn514:unstable_opts, r=wesleywiser 2022-07-14 08:14:31 +00:00
rustc_monomorphize Rename debugging_opts to unstable_opts 2022-07-13 17:47:06 -05:00
rustc_parse Rollup merge of #98705 - WaffleLapkin:closure_binder, r=cjgillot 2022-07-14 14:14:21 +05:30
rustc_parse_format Make rustc_parse_format compile on stable 2022-05-03 11:26:58 +02:00
rustc_passes Auto merge of #95956 - yaahc:stable-in-unstable, r=cjgillot 2022-07-14 13:42:09 +00:00
rustc_plugin_impl remove currently unused deps 2022-06-13 22:20:51 +03:00
rustc_privacy Remove some more usages of guess_head_span 2022-07-15 03:17:20 +00:00
rustc_query_impl Move abstract const to rustc_middle::ty 2022-07-12 02:21:31 +00:00
rustc_query_system Rename debugging_opts to unstable_opts 2022-07-13 17:47:06 -05:00
rustc_resolve Rollup merge of #98705 - WaffleLapkin:closure_binder, r=cjgillot 2022-07-14 14:14:21 +05:30
rustc_save_analysis Rollup merge of #98705 - WaffleLapkin:closure_binder, r=cjgillot 2022-07-14 14:14:21 +05:30
rustc_serialize use BufReader for counting zero bytes 2022-07-02 22:51:42 +09:00
rustc_session Rename debugging_opts to unstable_opts 2022-07-13 17:47:06 -05:00
rustc_smir Rustfmt 2022-06-02 10:29:00 +00:00
rustc_span Rollup merge of #99119 - TaKO8Ki:remove-string-matching-about-methods, r=cjgillot 2022-07-15 15:53:38 +05:30
rustc_symbol_mangling Allow to create definitions inside the query system. 2022-07-06 22:50:55 +02:00
rustc_target Rename aarch64-nintendo-switch to aarch64-nintendo-switch-freestanding 2022-07-14 15:58:26 -04:00
rustc_trait_selection hir typeck: fulfillment_cx ignore regions 2022-07-15 17:01:32 +02:00
rustc_traits Update TypeVisitor paths 2022-07-06 06:41:53 +01:00
rustc_ty_utils Rollup merge of #99000 - JulianKnodt:allow_resolve_no_substs, r=lcnr 2022-07-14 19:24:04 +05:30
rustc_type_ir Auto merge of #98614 - oli-obk:take_unsound_opaque_types, r=wesleywiser 2022-07-08 17:55:26 +00:00
rustc_typeck hir typeck: fulfillment_cx ignore regions 2022-07-15 17:01:32 +02:00