mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-07 23:47:39 +00:00
![]() 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 |
||
---|---|---|
.. | ||
astconv | ||
check | ||
coherence | ||
collect | ||
impl_wf_check | ||
outlives | ||
structured_errors | ||
variance | ||
bounds.rs | ||
check_unused.rs | ||
collect.rs | ||
constrained_generic_params.rs | ||
errors.rs | ||
expr_use_visitor.rs | ||
hir_wf_check.rs | ||
impl_wf_check.rs | ||
lib.rs | ||
mem_categorization.rs | ||
structured_errors.rs |