rust/compiler
Matthias Krüger 958417fba1
Rollup merge of #119554 - matthewjasper:remove-guard-distinction, r=compiler-errors
Fix scoping for let chains in match guards

If let guards were previously represented as a different type of guard in HIR and THIR. This meant that let chains in match guards were not handled correctly because they were treated exactly like normal guards.

- Remove `hir::Guard` and `thir::Guard`.
- Make the scoping different between normal guards and if let guards also check for let chains.

closes #118593
2024-01-05 20:39:52 +01:00
..
rustc
rustc_abi Update to bitflags 2 in the compiler 2023-12-30 18:17:28 +01:00
rustc_arena rustc_arena: add alloc_str 2023-12-05 17:52:51 -08:00
rustc_ast macro_rules: Less hacky heuristic for using tt metavariable spans 2024-01-04 03:53:56 +03:00
rustc_ast_lowering Remove hir::Guard 2024-01-05 10:56:59 +00:00
rustc_ast_passes Rollup merge of #119354 - fmease:negative_bounds-fixes, r=compiler-errors 2024-01-05 20:39:51 +01:00
rustc_ast_pretty Auto merge of #119105 - dtolnay:paren, r=WaffleLapkin 2023-12-27 21:27:26 +00:00
rustc_attr Rename some Diagnostic setters. 2024-01-03 19:40:20 +11:00
rustc_baked_icu_data
rustc_borrowck Remove hir::Guard 2024-01-05 10:56:59 +00:00
rustc_builtin_macros Remove is_lint field from Level::Error. 2024-01-04 16:09:31 +11:00
rustc_codegen_cranelift Merge commit '6d355f6844323db03bfd608899613e363e701951' into sync_cg_clif-2023-12-31 2023-12-31 13:29:53 +00:00
rustc_codegen_gcc Rollup merge of #119538 - nnethercote:cleanup-errors-5, r=compiler-errors 2024-01-05 10:57:21 -05:00
rustc_codegen_llvm Auto merge of #119621 - compiler-errors:rollup-5mxtvuk, r=compiler-errors 2024-01-05 16:31:05 +00:00
rustc_codegen_ssa Auto merge of #119621 - compiler-errors:rollup-5mxtvuk, r=compiler-errors 2024-01-05 16:31:05 +00:00
rustc_const_eval Rollup merge of #119577 - tmiasko:lint, r=oli-obk 2024-01-05 10:57:22 -05:00
rustc_data_structures Update to bitflags 2 in the compiler 2023-12-30 18:17:28 +01:00
rustc_driver
rustc_driver_impl Rollup merge of #119601 - nnethercote:Emitter-cleanups, r=oli-obk 2024-01-05 10:57:24 -05:00
rustc_error_codes Rollup merge of #119505 - fmease:no-host-param-for-trait-fns, r=fee1-dead 2024-01-03 16:08:30 +01:00
rustc_error_messages
rustc_errors Rollup merge of #119601 - nnethercote:Emitter-cleanups, r=oli-obk 2024-01-05 10:57:24 -05:00
rustc_expand Rollup merge of #119601 - nnethercote:Emitter-cleanups, r=oli-obk 2024-01-05 10:57:24 -05:00
rustc_feature Rollup merge of #119354 - fmease:negative_bounds-fixes, r=compiler-errors 2024-01-05 20:39:51 +01:00
rustc_fluent_macro
rustc_fs_util
rustc_graphviz
rustc_hir Remove hir::Guard 2024-01-05 10:56:59 +00:00
rustc_hir_analysis Rollup merge of #119554 - matthewjasper:remove-guard-distinction, r=compiler-errors 2024-01-05 20:39:52 +01:00
rustc_hir_pretty Remove hir::Guard 2024-01-05 10:56:59 +00:00
rustc_hir_typeck Rollup merge of #119554 - matthewjasper:remove-guard-distinction, r=compiler-errors 2024-01-05 20:39:52 +01:00
rustc_incremental Report I/O errors with emit_fatal not emit_err 2024-01-02 07:31:02 -05:00
rustc_index Mention the relevant tracking issue next to my bit_set hack 2023-12-23 00:04:20 +01:00
rustc_index_macros Put backticks around some attributes in doc comments. 2023-11-27 09:37:01 +11:00
rustc_infer Rollup merge of #119506 - compiler-errors:visibilities-for-object-safety-error, r=Nilstrieb 2024-01-05 20:39:52 +01:00
rustc_interface Rollup merge of #119567 - nnethercote:rm-Zreport-delayed-bugs, r=oli-obk 2024-01-05 10:57:22 -05:00
rustc_lexer Rename some unescaping functions. 2023-12-13 14:17:50 +11:00
rustc_lint Rollup merge of #119538 - nnethercote:cleanup-errors-5, r=compiler-errors 2024-01-05 10:57:21 -05:00
rustc_lint_defs Auto merge of #118297 - shepmaster:warn-dead-tuple-fields, r=WaffleLapkin 2024-01-05 04:51:55 +00:00
rustc_llvm Rollup merge of #118941 - krasimirgg:llvm-cov, r=nikic 2023-12-18 17:03:11 +01:00
rustc_log
rustc_macros Rename some Diagnostic setters. 2024-01-03 19:40:20 +11:00
rustc_metadata Rollup merge of #119538 - nnethercote:cleanup-errors-5, r=compiler-errors 2024-01-05 10:57:21 -05:00
rustc_middle Rollup merge of #119554 - matthewjasper:remove-guard-distinction, r=compiler-errors 2024-01-05 20:39:52 +01:00
rustc_mir_build Rollup merge of #119554 - matthewjasper:remove-guard-distinction, r=compiler-errors 2024-01-05 20:39:52 +01:00
rustc_mir_dataflow Remove movability from TyKind::Coroutine 2023-12-28 16:35:01 +00:00
rustc_mir_transform Rollup merge of #119577 - tmiasko:lint, r=oli-obk 2024-01-05 10:57:22 -05:00
rustc_monomorphize Rollup merge of #119538 - nnethercote:cleanup-errors-5, r=compiler-errors 2024-01-05 10:57:21 -05:00
rustc_next_trait_solver Remove movability from TyKind::Coroutine 2023-12-28 16:35:01 +00:00
rustc_parse Rollup merge of #119538 - nnethercote:cleanup-errors-5, r=compiler-errors 2024-01-05 10:57:21 -05:00
rustc_parse_format
rustc_passes Rollup merge of #119554 - matthewjasper:remove-guard-distinction, r=compiler-errors 2024-01-05 20:39:52 +01:00
rustc_pattern_analysis Rename some Diagnostic setters. 2024-01-03 19:40:20 +11:00
rustc_privacy Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
rustc_query_impl Remove two unused feature gates from rustc_query_impl 2023-12-31 20:51:53 +00:00
rustc_query_system Rollup merge of #119086 - RossSmyth:query_panics, r=compiler-errors 2024-01-03 16:08:23 +01:00
rustc_resolve Rollup merge of #119151 - Jules-Bertholet:no-foreign-doc-hidden-suggest, r=davidtwco 2024-01-05 20:39:50 +01:00
rustc_serialize
rustc_session Rollup merge of #119601 - nnethercote:Emitter-cleanups, r=oli-obk 2024-01-05 10:57:24 -05:00
rustc_smir Movability doesn't need to be a query anymore 2023-12-28 16:35:01 +00:00
rustc_span Rollup merge of #119325 - RalfJung:custom-mir, r=compiler-errors 2024-01-04 15:33:58 +01:00
rustc_symbol_mangling Rename some Diagnostic setters. 2024-01-03 19:40:20 +11:00
rustc_target Auto merge of #119569 - matthiaskrgr:rollup-4packja, r=matthiaskrgr 2024-01-04 21:44:14 +00:00
rustc_trait_selection Rollup merge of #119538 - nnethercote:cleanup-errors-5, r=compiler-errors 2024-01-05 10:57:21 -05:00
rustc_traits add unused NormalizesTo predicate 2023-12-07 17:52:51 +01:00
rustc_transmute
rustc_ty_utils Movability doesn't need to be a query anymore 2023-12-28 16:35:01 +00:00
rustc_type_ir Update to bitflags 2 in the compiler 2023-12-30 18:17:28 +01:00
stable_mir Restore movability to SMIR 2023-12-28 16:35:01 +00:00