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
Add a new trait to retrieve StableMir definition Ty
We implement the trait only for definitions that should have a type. It's possible that I missed a few definitions, but we can add them later if needed.
Fixesrust-lang/project-stable-mir#80
Rollup merge of rust-lang#126366 - celinval:issue-0080-def-ty, r=oli-obk
Add a new trait to retrieve StableMir definition Ty
We implement the trait only for definitions that should have a type. It's possible that I missed a few definitions, but we can add them later if needed.
Fixesrust-lang/project-stable-mir#80
The goal would be to provide a trait to allow users to access
tcx.type_of()
for definitions that have a type, such as FnDef, InstanceDef, StaticDef...Something like:
I think this should be a separate trait, since not every
CrateDef
has a type. Thus, only the ones that do should implement the new trait.The text was updated successfully, but these errors were encountered: