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
This was an issue that came up during work on #55994.
Basically, a bug in the de-duplication code means that dyn Send is a different type from dyn Send + Send, and likewise dyn Sync + Send is different from dyn Sync + Send + Sync. However, this clearly should not be the case, and indeed dyn Send + Send is the same type as dyn Send + Send + Send. (Note, this is only tangentially related to the lint #56522.)
Apart from potentially surprising behaviour, the issue with the above lies with trait impls and coherence. I am unaware of a specific ICE that can arise because of it, but it is probably UB in general.
…akis
Add support for trait-objects without a principal
The hard-error version of #56481 - should be merged after we do something about the `traitobject` crate.
Fixes#33140.
Fixes#57057.
r? @nikomatsakis
This was an issue that came up during work on #55994.
Basically, a bug in the de-duplication code means that
dyn Send
is a different type fromdyn Send + Send
, and likewisedyn Sync + Send
is different fromdyn Sync + Send + Sync
. However, this clearly should not be the case, and indeeddyn Send + Send
is the same type asdyn Send + Send + Send
. (Note, this is only tangentially related to the lint #56522.)Apart from potentially surprising behaviour, the issue with the above lies with trait impls and coherence. I am unaware of a specific ICE that can arise because of it, but it is probably UB in general.
playground
playground
CC @nikomatsakis @arielb1
The text was updated successfully, but these errors were encountered: