mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-29 16:13:40 +00:00
741f3cf383
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 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |