about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-11-18 14:13:35 +0100
committerGitHub <noreply@github.com>2022-11-18 14:13:35 +0100
commit741f3cf38331d4644b89d52f54c2683c17f54670 (patch)
tree80abe20c55ac268dbbbffd53391bf7c4f87f078e /compiler/rustc_parse/src/errors.rs
parent3e5965722ca46b82cc68cb1acdddf7e187a6ee02 (diff)
parent4f978dbaf91e7029792dd1f7e14a851ee040aabb (diff)
downloadrust-741f3cf38331d4644b89d52f54c2683c17f54670.tar.gz
rust-741f3cf38331d4644b89d52f54c2683c17f54670.zip
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
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
0 files changed, 0 insertions, 0 deletions