rust/compiler/rustc_mir_build/src
bors b15e2c129e Auto merge of #101832 - compiler-errors:dyn-star-plus, r=eholk
Make `dyn*` casts into a coercion, allow `dyn*` upcasting

I know that `dyn*` is likely not going to be a feature exposed to surface Rust, but this makes it slightly more ergonomic to write tests for these types anyways. ... and this was just fun to implement anyways.

1. Make `dyn*` into a coercion instead of a cast
2. Enable `dyn*` upcasting since we basically get it for free
3. Simplify some of the cast checking code since we're using the coercion path now

r? `@eholk` but feel free to reassign
cc `@nikomatsakis` and `@tmandry` who might care about making `dyn*` casts into a coercion
2022-10-15 07:36:38 +00:00
..
build Ensure enum cast moves 2022-10-13 16:44:47 +01:00
thir Auto merge of #101832 - compiler-errors:dyn-star-plus, r=eholk 2022-10-15 07:36:38 +00:00
check_unsafety.rs Refactor rustc lint API 2022-10-01 10:03:06 +00:00
lib.rs Skip chained OpaqueCast when building captures. 2022-10-09 16:18:16 +00:00
lints.rs Refactor rustc lint API 2022-10-01 10:03:06 +00:00