rust/compiler
bors a697573463 Auto merge of #101680 - jackh726:implied-cleanup, r=lcnr
Fix implied outlives bounds logic for projections

The logic here is subtly wrong. I put a bit of an explanation in a767d7b5165cea8ee5cbe494a4a636c50ef67c9c.

TL;DR: we register outlives predicates to be proved, because wf code normalizes projections (from the unnormalized types) to type variables. This causes us to register those as constraints instead of implied. This was "fine", because we later added that implied bound in the normalized type, and delayed registering constraints. When I went to cleanup `free_region_relations` to *not* delay adding constraints, this bug was uncovered.

cc. `@aliemjay` because this caused your test failure in #99832 (I only realized as I was writing this)

r? `@nikomatsakis`
2023-02-10 03:21:39 +00:00
..
rustc Add a new rustc_driver dylib to rexport rustc_driver_impl 2023-02-02 07:34:41 +01:00
rustc_abi also do not add noalias on not-Unpin Box 2023-02-06 12:17:41 +01:00
rustc_apfloat compiler: remove unnecessary imports and qualified paths 2022-12-10 18:45:34 +01:00
rustc_arena compiler: remove unnecessary imports and qualified paths 2022-12-10 18:45:34 +01:00
rustc_ast Rollup merge of #107544 - nnethercote:improve-TokenCursor, r=petrochenkov 2023-02-03 23:04:51 +05:30
rustc_ast_lowering remove unused imports 2023-02-06 17:40:18 +03:00
rustc_ast_passes Autoderive ExternBlockSuggestion 2023-01-19 13:52:15 +01:00
rustc_ast_pretty Expand const-if-const trait bounds correctly 2023-02-07 21:00:12 +00:00
rustc_attr Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_baked_icu_data
rustc_borrowck Update implied_outlives_bounds to properly register implied bounds behind normalization 2023-02-09 21:08:11 -05:00
rustc_builtin_macros Extend BYTE_SLICE_IN_PACKED_STRUCT_WITH_DERIVE. 2023-02-09 11:47:12 +11:00
rustc_codegen_cranelift Merge commit '7d53619064ab7045c383644cb445052d2a3d46db' into sync_cg_clif-2023-02-09 2023-02-09 12:38:16 +01:00
rustc_codegen_gcc session: diagnostic migration lint on more fns 2023-01-30 17:11:35 +00:00
rustc_codegen_llvm Auto merge of #102963 - ilammy:xray-basic, r=estebank 2023-02-10 00:02:43 +00:00
rustc_codegen_ssa remove unused imports 2023-02-06 17:40:18 +03:00
rustc_const_eval Rollup merge of #107769 - compiler-errors:pointer-like, r=eholk 2023-02-08 07:13:26 +01:00
rustc_data_structures Make an optimal cold path for query_cache_hit 2023-02-06 15:22:12 +01:00
rustc_driver Remove unneeded extern crate 2023-02-02 07:47:39 +01:00
rustc_driver_impl Rollup merge of #107761 - oli-obk:miri_🪵, r=TaKO8Ki 2023-02-08 20:01:25 -08:00
rustc_error_codes Add extended error message for E0523 2023-02-06 06:58:30 -05:00
rustc_error_messages Auto merge of #102963 - ilammy:xray-basic, r=estebank 2023-02-10 00:02:43 +00:00
rustc_errors test: snapshot for derive suggestion in diff files 2023-02-09 22:28:53 +08:00
rustc_expand Add ~const bounds trait bounds when using derive_const 2023-02-07 21:00:12 +00:00
rustc_feature Auto merge of #107297 - Mark-Simulacrum:bump-bootstrap, r=pietroalbini 2023-01-31 19:24:29 +00:00
rustc_fs_util Remove useless borrows and derefs 2022-12-01 17:34:43 +00:00
rustc_graphviz Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_hir Rename PointerSized to PointerLike 2023-02-07 19:05:53 +00:00
rustc_hir_analysis Auto merge of #106938 - GuillaumeGomez:normalize-projection-field-ty, r=oli-obk 2023-02-09 07:08:19 +00:00
rustc_hir_pretty Use Mutability::{is_mut, is_not} 2023-01-30 12:26:26 +00:00
rustc_hir_typeck Rollup merge of #107803 - eggyal:do_not_bring_trait_alias_supertraits_into_scope, r=compiler-errors 2023-02-09 23:18:36 +05:30
rustc_incremental incremental: migrate diagnostics 2023-01-30 17:11:35 +00:00
rustc_index Fix IndexVec::drain_enumerated 2023-01-19 15:25:33 +00:00
rustc_infer Cleanup free_region_relations a bit 2023-02-09 20:38:27 -05:00
rustc_interface Auto merge of #102963 - ilammy:xray-basic, r=estebank 2023-02-10 00:02:43 +00:00
rustc_lexer Remove double spaces after dots in comments 2023-01-17 08:09:33 +00:00
rustc_lint Auto merge of #103761 - chenyukang:yukang/fix-103320-must-use, r=compiler-errors 2023-02-06 12:57:37 +00:00
rustc_lint_defs Extend BYTE_SLICE_IN_PACKED_STRUCT_WITH_DERIVE. 2023-02-09 11:47:12 +11:00
rustc_llvm llvm-16: Use Triple.h from new header location. 2023-02-07 06:51:58 -08:00
rustc_log Replace a command line flag with an env var to allow tools to initialize the tracing loggers at their own discretion 2023-02-07 16:33:03 +00:00
rustc_macros Forbid #[suggestion_*(...)] on Vecs 2023-02-01 21:49:45 +01:00
rustc_metadata Rollup merge of #100599 - MatthewPeterKelly:add-E0523-description-and-test, r=compiler-errors,GuillaumeGomez 2023-02-07 17:57:13 +01:00
rustc_middle Change arena_cache to not alter the declared query result 2023-02-08 09:34:52 +01:00
rustc_mir_build remove unused imports 2023-02-06 17:40:18 +03:00
rustc_mir_dataflow Rollup merge of #107271 - Zeegomo:drop-rmw, r=oli-obk 2023-02-08 18:32:41 +01:00
rustc_mir_transform Rollup merge of #107271 - Zeegomo:drop-rmw, r=oli-obk 2023-02-08 18:32:41 +01:00
rustc_monomorphize Auto merge of #100754 - davidtwco:translation-incremental, r=compiler-errors 2023-01-31 10:20:58 +00:00
rustc_parse Rollup merge of #107446 - clubby789:rustc-parse-diag-migrate, r=compiler-errors 2023-02-09 11:21:57 +01:00
rustc_parse_format Rollup merge of #106805 - madsravn:master, r=compiler-errors 2023-02-03 06:30:23 +01:00
rustc_passes rustc_passes: remove huge error imports 2023-02-05 03:47:58 +01:00
rustc_plugin_impl
rustc_privacy remove unused imports 2023-02-06 17:40:18 +03:00
rustc_query_impl remove unused imports 2023-02-06 17:40:18 +03:00
rustc_query_system Auto merge of #107644 - Zoxc:query-cache-tweak, r=cjgillot 2023-02-08 16:59:18 +00:00
rustc_resolve unused-lifetimes: don't warn about lifetimes originating from expanded code 2023-02-03 21:18:34 +01:00
rustc_save_analysis Review changes 2023-01-31 07:54:01 +00:00
rustc_serialize compiler: remove unnecessary imports and qualified paths 2022-12-10 18:45:34 +01:00
rustc_session Auto merge of #102963 - ilammy:xray-basic, r=estebank 2023-02-10 00:02:43 +00:00
rustc_smir
rustc_span Rollup merge of #107769 - compiler-errors:pointer-like, r=eholk 2023-02-08 07:13:26 +01:00
rustc_symbol_mangling Introduce GeneratorWitnessMIR. 2023-01-27 18:58:44 +00:00
rustc_target XRay support flag in TargetOptions 2023-02-09 12:28:01 +09:00
rustc_trait_selection Rollup merge of #107815 - compiler-errors:new-solver-no-auto-if-impl, r=lcnr 2023-02-09 23:18:37 +05:30
rustc_traits Update implied_outlives_bounds to properly register implied bounds behind normalization 2023-02-09 21:08:11 -05:00
rustc_transmute Also remove #![feature(control_flow_enum)] where possible 2023-01-18 10:22:21 -08:00
rustc_ty_utils Auto merge of #106180 - RalfJung:dereferenceable-generators, r=nbdd0121 2023-02-07 03:35:10 +00:00
rustc_type_ir Auto merge of #107717 - nnethercote:opt-TyKind-eq, r=compiler-errors 2023-02-09 00:41:31 +00:00