Stream: t-compiler/rust-analyzer

Topic: Accessing ra_hir::ty::primitive::* ?

eonil (Nov 11 2019 at 05:33, on Zulip):

Hello folks.

I am trying to use RA to scan data schema and stuck on UncertainIntTy type as it doesn't seem to be exposed publicly. Now I have ra_hir::Ty value, but to get precise integer type, it seems I need to access types in ra_hir::ty::primitive module. How can I access these types? Or is there other way to extract primitive type information?

matklad (Nov 11 2019 at 06:22, on Zulip):

@eonil made them public in

Last update: Jul 29 2021 at 22:15UTC