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
In short: the input ty::type_is_sized may not have all of the necessary bits populated yet, because one needs to look recursively up the trait inheritance hierarchy to find out if a type parameter is bounded by a trait that inherits from Sized.
As @nikomatsakis suggested, use the code for type_is_sendable or type_needs_drop as a model here.
The text was updated successfully, but these errors were encountered:
Sub-task of #6308.
Relevant diaglogue from
#rust-internals
: https://botbot.me/mozilla/rust-internals/msg/7309210/In short: the input
ty::type_is_sized
may not have all of the necessary bits populated yet, because one needs to look recursively up the trait inheritance hierarchy to find out if a type parameter is bounded by a trait that inherits fromSized
.As @nikomatsakis suggested, use the code for
type_is_sendable
ortype_needs_drop
as a model here.The text was updated successfully, but these errors were encountered: