You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently trait upcasting is done via the Unsize/CoerceUnsized traits -- however, since CoerceUnsizedworks structurally, implementing dyn* upcasting via the same codepaths allows this erroneous code to make it to codegen and ICE:
That's why although dyn* trait upcasting was implemented in #101832, I removed it in #104594 due to introduced ICEs.
We should decide first whether we actually want the burden of implementing dyn* upcasting first, since dyn* is not currently intended to be user-facing syntax. Due to this, the feature is not currently needed even if it is interesting and possible theoretically.
If we decide that we do want dyn* upcasting, then it needs to be implemented separately from dyn Trait upcasting with a much narrower scope.
Activity
Rollup merge of rust-lang#143036 - compiler-errors:no-dyn-star, r=oli…
Auto merge of #143036 - compiler-errors:no-dyn-star, r=oli-obk
Auto merge of #143036 - compiler-errors:no-dyn-star, r=oli-obk
Auto merge of #143036 - compiler-errors:no-dyn-star, r=oli-obk
Auto merge of #143036 - compiler-errors:no-dyn-star, r=oli-obk
Auto merge of #143036 - compiler-errors:no-dyn-star, r=oli-obk
Auto merge of #143036 - compiler-errors:no-dyn-star, r=oli-obk