rust/compiler
bors 4d7f952a02 Auto merge of #112422 - aliemjay:implied-bounds-placeholders, r=lcnr
ignore implied bounds with placeholders

given the following code:
```rust
trait Trait {
    type Ty<'a> where Self: 'a;
}

impl<T> Trait for T {
    type Ty<'a> = () where Self: 'a;
}

struct Foo<T: Trait>(T)
where
    for<'x> T::Ty<'x>: Sized;
```

when computing the implied bounds from `Foo<X>` we incorrectly get the bound `X: !x` from the normalization of ` for<'x> <X as Trait>::Ty::<'x>: Sized`. This is a a known bug! we shouldn't use the constraints that arise from normalization as implied bounds. See #109628.

Ignore these bounds for now. This should prevent later ICEs.

Fixes #112250
Fixes #107409
2023-11-17 12:16:53 +00:00
..
rustc
rustc_abi
rustc_arena
rustc_ast Rollup merge of #117892 - estebank:fat-arrow-typo, r=compiler-errors 2023-11-17 00:41:22 +01:00
rustc_ast_lowering
rustc_ast_passes
rustc_ast_pretty
rustc_attr
rustc_baked_icu_data
rustc_borrowck Auto merge of #112422 - aliemjay:implied-bounds-placeholders, r=lcnr 2023-11-17 12:16:53 +00:00
rustc_builtin_macros
rustc_codegen_cranelift Merge commit 'def04540a4e2541b995195c752c751295606a388' into sync_cg_clif-2023-11-16 2023-11-16 21:15:07 +00:00
rustc_codegen_gcc
rustc_codegen_llvm Auto merge of #117875 - Mark-Simulacrum:bootstrap-bump, r=clubby789 2023-11-16 12:45:27 +00:00
rustc_codegen_ssa
rustc_const_eval
rustc_data_structures
rustc_driver
rustc_driver_impl Move lint_store from GlobalCtxt to Session. 2023-11-17 10:39:18 +11:00
rustc_error_codes
rustc_error_messages
rustc_errors
rustc_expand
rustc_feature
rustc_fluent_macro
rustc_fs_util
rustc_graphviz
rustc_hir
rustc_hir_analysis
rustc_hir_pretty
rustc_hir_typeck review comment: move error logic to different method 2023-11-16 21:30:26 +00:00
rustc_incremental
rustc_index
rustc_infer
rustc_interface Remove Compiler::register_lints. 2023-11-17 10:39:18 +11:00
rustc_lexer
rustc_lint Move lint_store from GlobalCtxt to Session. 2023-11-17 10:39:18 +11:00
rustc_lint_defs
rustc_llvm Auto merge of #117875 - Mark-Simulacrum:bootstrap-bump, r=clubby789 2023-11-16 12:45:27 +00:00
rustc_log
rustc_macros
rustc_metadata
rustc_middle Auto merge of #117278 - lcnr:try-normalize-ty, r=compiler-errors 2023-11-17 10:16:41 +00:00
rustc_mir_build
rustc_mir_dataflow
rustc_mir_transform
rustc_monomorphize
rustc_parse Rollup merge of #117990 - estebank:issue-100825-part-deux, r=Nilstrieb 2023-11-17 00:41:24 +01:00
rustc_parse_format
rustc_passes
rustc_privacy
rustc_query_impl
rustc_query_system Reduce exposure of things. 2023-11-16 16:49:22 +11:00
rustc_resolve On resolve error of [rest..], suggest [rest @ ..] 2023-11-17 00:55:55 +00:00
rustc_serialize
rustc_session Move lint_store from GlobalCtxt to Session. 2023-11-17 10:39:18 +11:00
rustc_smir Fix has_body() and change resolve_drop_in_place() sig 2023-11-16 12:04:25 -08:00
rustc_span
rustc_symbol_mangling
rustc_target
rustc_trait_selection Auto merge of #112422 - aliemjay:implied-bounds-placeholders, r=lcnr 2023-11-17 12:16:53 +00:00
rustc_traits
rustc_transmute
rustc_ty_utils
rustc_type_ir
stable_mir Fix has_body() and change resolve_drop_in_place() sig 2023-11-16 12:04:25 -08:00