rust/compiler
Matthias Krüger a4ef47d6b3
Rollup merge of #105897 - oli-obk:tait_patterns, r=TaKO8Ki
Fix an opaque type ICE

fixes #104551

The issue is that if you have

```rust
type T = impl Sized;
let (_a, _b): T = ..
```

we have only the type annotation `T`, but want to use that ascription for `_a` and `_b`, so what we generate is a type ascription plus a field projection saying `_a`'s type is `T::0`. Of course `T` has no fields. Of course we could also not generate type annotations for projections into opaque types at all, but that's more fragile, as we now have to make sure that 12bbdbdb44/compiler/rustc_mir_build/src/build/matches/mod.rs (L709) doesn't have any arm that introduces a user type annotation except for `PatKind::Binding`.
2022-12-20 23:35:15 +01:00
..
rustc rustc: Use unix_sigpipe instead of rustc_driver::set_sigpipe_handler 2022-10-02 17:49:36 +02:00
rustc_abi Auto merge of #105446 - erikdesjardins:vt-size, r=nikic 2022-12-18 22:01:39 +00: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 A few small cleanups for newtype_index 2022-12-18 21:47:28 +01:00
rustc_ast_lowering Revert "Replace usage of ResumeTy in async lowering with Context" 2022-12-19 11:24:59 -08:00
rustc_ast_passes Allow impl ~const Trait opaque types 2022-12-15 11:26:15 +00:00
rustc_ast_pretty Auto merge of #105160 - nnethercote:rm-Lit-token_lit, r=petrochenkov 2022-12-12 05:16:50 +00:00
rustc_attr rustc_attr remove ref patterns 2022-12-06 14:45:58 +00:00
rustc_baked_icu_data Update crate documentation of rustc_baked_icu_data crate 2022-11-18 14:46:36 -08:00
rustc_borrowck Hackily fix an opaque type ICE 2022-12-20 13:43:41 +00:00
rustc_builtin_macros Rollup merge of #105870 - matthiaskrgr:useless_conv, r=oli-obk 2022-12-18 18:57:05 +01:00
rustc_codegen_cranelift Merge commit '2bb3996244' into sync_cg_clif-2022-12-14 2022-12-14 19:30:46 +01:00
rustc_codegen_gcc Auto merge of #105252 - bjorn3:codegen_less_pair_values, r=nagisa 2022-12-12 10:38:31 +00:00
rustc_codegen_llvm Implement va_list and va_arg for s390x FFI 2022-12-19 21:07:57 +01:00
rustc_codegen_ssa Rollup merge of #105864 - matthiaskrgr:compl, r=Nilstrieb 2022-12-19 14:41:35 +05:30
rustc_const_eval Rollup merge of #105875 - matthiaskrgr:needless_borrowed_reference, r=oli-obk 2022-12-18 18:57:05 +01:00
rustc_data_structures A few small cleanups for newtype_index 2022-12-18 21:47:28 +01:00
rustc_driver compiler: remove unnecessary imports and qualified paths 2022-12-10 18:45:34 +01:00
rustc_error_codes Rollup merge of #105791 - Ezrashaw:add-e0472-long-docs, r=GuillaumeGomez 2022-12-20 23:35:14 +01:00
rustc_error_messages Resolve various merge conflicts 2022-12-17 19:08:25 +01:00
rustc_errors more clippy::complexity fixes 2022-12-15 00:09:10 +01:00
rustc_expand don't restuct references just to reborrow 2022-12-18 17:04:32 +01:00
rustc_feature Auto merge of #102318 - Amanieu:default_alloc_error_handler, r=oli-obk 2022-12-16 21:08:45 +00:00
rustc_fs_util Remove useless borrows and derefs 2022-12-01 17:34:43 +00:00
rustc_graphviz Remove useless borrows and derefs 2022-12-01 17:34:43 +00:00
rustc_hir Auto merge of #105880 - Nilstrieb:make-newtypes-less-not-rust, r=oli-obk 2022-12-20 07:27:01 +00:00
rustc_hir_analysis Auto merge of #105880 - Nilstrieb:make-newtypes-less-not-rust, r=oli-obk 2022-12-20 07:27:01 +00:00
rustc_hir_pretty more clippy::complexity fixes 2022-12-15 00:09:10 +01:00
rustc_hir_typeck Auto merge of #105880 - Nilstrieb:make-newtypes-less-not-rust, r=oli-obk 2022-12-20 07:27:01 +00:00
rustc_incremental don't restuct references just to reborrow 2022-12-18 17:04:32 +01:00
rustc_index A few small cleanups for newtype_index 2022-12-18 21:47:28 +01:00
rustc_infer Auto merge of #105880 - Nilstrieb:make-newtypes-less-not-rust, r=oli-obk 2022-12-20 07:27:01 +00:00
rustc_interface don't clone Copy types 2022-12-18 14:25:55 +01:00
rustc_lexer minor code cleanups 2022-12-12 19:49:53 +01:00
rustc_lint Auto merge of #105880 - Nilstrieb:make-newtypes-less-not-rust, r=oli-obk 2022-12-20 07:27:01 +00:00
rustc_lint_defs Downgrade IMPLIED_BOUNDS_ENTAILMENT to warn by default, add it to builtin lint list 2022-12-19 18:16:22 +00:00
rustc_llvm llvm-wrapper: adapt for LLVM API changes 2022-12-11 09:14:50 +00:00
rustc_log Use IsTerminal in rustc_log 2022-10-16 15:10:40 +01:00
rustc_macros Auto merge of #105880 - Nilstrieb:make-newtypes-less-not-rust, r=oli-obk 2022-12-20 07:27:01 +00:00
rustc_metadata Rollup merge of #105869 - matthiaskrgr:clone_on_copy, r=compiler-errors 2022-12-18 23:03:07 +01:00
rustc_middle Some tracing cleanups 2022-12-20 13:39:48 +00:00
rustc_mir_build Some style nits 2022-12-20 13:43:11 +00:00
rustc_mir_dataflow Auto merge of #105880 - Nilstrieb:make-newtypes-less-not-rust, r=oli-obk 2022-12-20 07:27:01 +00:00
rustc_mir_transform Rollup merge of #105930 - JakobDegen:nal-unsound, r=oli-obk 2022-12-20 14:37:32 +01:00
rustc_monomorphize clippy::complexity fixes 2022-12-19 00:04:28 +01:00
rustc_parse Rollup merge of #105864 - matthiaskrgr:compl, r=Nilstrieb 2022-12-19 14:41:35 +05:30
rustc_parse_format Assert size of rustc_parse_format::Piece<'_> 2022-12-08 22:50:39 +00:00
rustc_passes Auto merge of #105880 - Nilstrieb:make-newtypes-less-not-rust, r=oli-obk 2022-12-20 07:27:01 +00:00
rustc_plugin_impl Migrate all diagnostics 2022-10-23 10:09:44 +02:00
rustc_privacy Prevent the creation of TraitRef without dedicated methods 2022-12-14 15:36:39 +00:00
rustc_query_impl don't clone Copy types 2022-12-18 14:25:55 +01:00
rustc_query_system A few small cleanups for newtype_index 2022-12-18 21:47:28 +01:00
rustc_resolve Rollup merge of #105873 - matthiaskrgr:clippy_fmt, r=Nilstrieb 2022-12-18 23:03:07 +01:00
rustc_save_analysis compiler: remove unnecessary imports and qualified paths 2022-12-10 18:45:34 +01:00
rustc_serialize compiler: remove unnecessary imports and qualified paths 2022-12-10 18:45:34 +01:00
rustc_session Rollup merge of #105864 - matthiaskrgr:compl, r=Nilstrieb 2022-12-19 14:41:35 +05:30
rustc_smir Only keep one version of ImplicitSelfKind. 2022-09-13 19:18:23 +02:00
rustc_span Auto merge of #105880 - Nilstrieb:make-newtypes-less-not-rust, r=oli-obk 2022-12-20 07:27:01 +00:00
rustc_symbol_mangling clippy::complexity fixes 2022-12-19 00:04:28 +01:00
rustc_target A few small cleanups for newtype_index 2022-12-18 21:47:28 +01:00
rustc_trait_selection Rollup merge of #105882 - compiler-errors:issue-105832, r=jackh726 2022-12-19 14:41:36 +05:30
rustc_traits Ensure no one constructs AliasTys themselves 2022-12-14 15:36:39 +00:00
rustc_transmute Rollup merge of #105864 - matthiaskrgr:compl, r=Nilstrieb 2022-12-19 14:41:35 +05:30
rustc_ty_utils Rollup merge of #105623 - compiler-errors:generator-type-size-fix, r=Nilstrieb 2022-12-15 12:46:00 +01:00
rustc_type_ir A few small cleanups for newtype_index 2022-12-18 21:47:28 +01:00