rust/compiler
Matthias Krüger 741f3cf383
Rollup merge of #103386 - compiler-errors:no-coerceunsized-to-dynstar, r=eholk
Don't allow `CoerceUnsized` into `dyn*` (except for trait upcasting)

This makes sure we don't accidentally allow coercions like `Box<T>` -> `Box<dyn* Trait>`, or in the case of this ICE, `&T` to `&dyn* Trait`. These coercions don't make sense, at least not via the `CoerceUnsized` trait.

Fixes #102172
Fixes #102429
2022-11-18 14:13:35 +01:00
..
rustc
rustc_apfloat
rustc_arena
rustc_ast Use token::Lit in ast::ExprKind::Lit. 2022-11-16 09:41:28 +11:00
rustc_ast_lowering Auto merge of #104219 - bryangarza:async-track-caller-dup, r=eholk 2022-11-17 13:47:03 +00:00
rustc_ast_passes
rustc_ast_pretty Use token::Lit in ast::ExprKind::Lit. 2022-11-16 09:41:28 +11:00
rustc_attr
rustc_borrowck Rollup merge of #104483 - oli-obk:santa-clauses-make-goals, r=compiler-errors 2022-11-17 22:33:19 +01:00
rustc_builtin_macros Use token::Lit in ast::ExprKind::Lit. 2022-11-16 09:41:28 +11:00
rustc_codegen_cranelift cleanup and dedupe CTFE and Miri error reporting 2022-11-16 10:13:29 +01:00
rustc_codegen_gcc Auto merge of #103138 - nnethercote:merge-BBs, r=bjorn3 2022-11-17 01:56:24 +00:00
rustc_codegen_llvm Auto merge of #103138 - nnethercote:merge-BBs, r=bjorn3 2022-11-17 01:56:24 +00:00
rustc_codegen_ssa Auto merge of #104170 - cjgillot:hir-def-id, r=fee1-dead 2022-11-17 07:42:27 +00:00
rustc_const_eval Rollup merge of #104483 - oli-obk:santa-clauses-make-goals, r=compiler-errors 2022-11-17 22:33:19 +01:00
rustc_data_structures
rustc_driver
rustc_error_codes Rollup merge of #104339 - compiler-errors:rustc_deny_explicit_impl, r=cjgillot 2022-11-15 10:44:12 +01:00
rustc_error_messages Rollup merge of #101162 - rajputrajat:master, r=davidtwco 2022-11-18 14:13:35 +01:00
rustc_errors Rollup merge of #101162 - rajputrajat:master, r=davidtwco 2022-11-18 14:13:35 +01:00
rustc_expand Auto merge of #102944 - nnethercote:ast-Lit-third-time-lucky, r=petrochenkov 2022-11-16 23:03:14 +00:00
rustc_feature Rollup merge of #104339 - compiler-errors:rustc_deny_explicit_impl, r=cjgillot 2022-11-15 10:44:12 +01:00
rustc_fs_util
rustc_graphviz
rustc_hir Store a LocalDefId in hir::Variant & hir::Field. 2022-11-13 14:06:51 +00:00
rustc_hir_analysis Rollup merge of #104483 - oli-obk:santa-clauses-make-goals, r=compiler-errors 2022-11-17 22:33:19 +01:00
rustc_hir_pretty Store a LocalDefId in hir::Variant & hir::Field. 2022-11-13 14:06:51 +00:00
rustc_hir_typeck Rollup merge of #104515 - chenyukang:yukang/fix-104510-ice, r=compiler-errors 2022-11-17 22:33:21 +01:00
rustc_incremental
rustc_index
rustc_infer Convert predicates into Predicate in the Obligation constructor 2022-11-16 09:25:19 +00:00
rustc_interface
rustc_lexer Use token::Lit in ast::ExprKind::Lit. 2022-11-16 09:41:28 +11:00
rustc_lint Rollup merge of #104483 - oli-obk:santa-clauses-make-goals, r=compiler-errors 2022-11-17 22:33:19 +01:00
rustc_lint_defs Merge branch 'master' into patch-2 2022-11-15 21:16:11 +01:00
rustc_llvm Introduce composite debuginfo. 2022-11-15 17:53:50 +00:00
rustc_log
rustc_macros
rustc_metadata Auto merge of #104170 - cjgillot:hir-def-id, r=fee1-dead 2022-11-17 07:42:27 +00:00
rustc_middle Rollup merge of #104483 - oli-obk:santa-clauses-make-goals, r=compiler-errors 2022-11-17 22:33:19 +01:00
rustc_mir_build Auto merge of #104170 - cjgillot:hir-def-id, r=fee1-dead 2022-11-17 07:42:27 +00:00
rustc_mir_dataflow Remove log statement that was commented out 2022-11-12 20:32:09 +01:00
rustc_mir_transform Auto merge of #104170 - cjgillot:hir-def-id, r=fee1-dead 2022-11-17 07:42:27 +00:00
rustc_monomorphize cleanup and dedupe CTFE and Miri error reporting 2022-11-16 10:13:29 +01:00
rustc_parse Auto merge of #102944 - nnethercote:ast-Lit-third-time-lucky, r=petrochenkov 2022-11-16 23:03:14 +00:00
rustc_parse_format shift no characters when using raw string literals 2022-11-15 14:28:20 +09:00
rustc_passes Auto merge of #104170 - cjgillot:hir-def-id, r=fee1-dead 2022-11-17 07:42:27 +00:00
rustc_plugin_impl
rustc_privacy Store a LocalDefId in hir::Variant & hir::Field. 2022-11-13 14:06:51 +00:00
rustc_query_impl
rustc_query_system
rustc_resolve Rollup merge of #101162 - rajputrajat:master, r=davidtwco 2022-11-18 14:13:35 +01:00
rustc_save_analysis Store a LocalDefId in hir::Variant & hir::Field. 2022-11-13 14:06:51 +00:00
rustc_serialize
rustc_session Use token::Lit in ast::ExprKind::Lit. 2022-11-16 09:41:28 +11:00
rustc_smir
rustc_span Readd the matches_macro diag item 2022-11-17 19:32:28 +01:00
rustc_symbol_mangling
rustc_target Auto merge of #104361 - vladimir-ea:watchos_fix_linking, r=oli-obk 2022-11-17 17:15:31 +00:00
rustc_trait_selection Rollup merge of #103386 - compiler-errors:no-coerceunsized-to-dynstar, r=eholk 2022-11-18 14:13:35 +01:00
rustc_traits Convert predicates into Predicate in the Obligation constructor 2022-11-16 09:25:19 +00:00
rustc_transmute
rustc_ty_utils add is_sized method on Abi and Layout, and use it 2022-11-13 12:23:53 +01:00
rustc_type_ir