diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-11-18 14:13:35 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-18 14:13:35 +0100 |
| commit | 741f3cf38331d4644b89d52f54c2683c17f54670 (patch) | |
| tree | 80abe20c55ac268dbbbffd53391bf7c4f87f078e /compiler/rustc_parse/src/errors.rs | |
| parent | 3e5965722ca46b82cc68cb1acdddf7e187a6ee02 (diff) | |
| parent | 4f978dbaf91e7029792dd1f7e14a851ee040aabb (diff) | |
| download | rust-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
