-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
A-tytype system / type inference / traits / method resolutiontype system / type inference / traits / method resolutionE-mediumS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right nowfunA technically challenging issue with high impactA technically challenging issue with high impact
Description
I would find it really cool and useful if RA could tell me the values of numeric constants. I don't need a super fancy evaluation, even just an MVP that handles math operators would be absolutely rad.
The thing I would love to use this for is for double checking the hex value of bit hacks I've done to generate the right value, e.g. const TOP: usize = !0 & !(!0 >> 1);. Currently I either have to tab out of my editor to stuff it into another rust project or the playground, or just hope I got it right.
iago-lito, firasuke, unexge, M4tsuri and tjkirch
Metadata
Metadata
Assignees
Labels
A-tytype system / type inference / traits / method resolutiontype system / type inference / traits / method resolutionE-mediumS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right nowfunA technically challenging issue with high impactA technically challenging issue with high impact