diff options
| author | bors <bors@rust-lang.org> | 2022-10-15 07:36:38 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-10-15 07:36:38 +0000 |
| commit | b15e2c129e732fb3f1ff3c707d76341047a66af0 (patch) | |
| tree | 77f9ce52d2d1403fe53d10ef79864c6a95fb48e9 /compiler/rustc_codegen_gcc | |
| parent | 46244f335b5262ef9bdc34cc564b4dea221948f6 (diff) | |
| parent | 8c7e836abb62331ebb8350c7724c95241ef95a51 (diff) | |
| download | rust-b15e2c129e732fb3f1ff3c707d76341047a66af0.tar.gz rust-b15e2c129e732fb3f1ff3c707d76341047a66af0.zip | |
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
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
