rust/compiler/rustc_trait_selection
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
..
src Rollup merge of #103386 - compiler-errors:no-coerceunsized-to-dynstar, r=eholk 2022-11-18 14:13:35 +01:00
Cargo.toml Remove from compiler/ crates 2022-09-29 16:49:04 +09:00