I extended the `proc_macro::Literal` API once again by adding more `_value` methods to get the underlying value represented by the literal.
The end goal is to reduce the code needed by crates using proc-macro to convert from the literal to the value (cc proc-macro2).
PR: github.com/rust-lang/ru...
github.com
View all comments
Part of #136652.
This PR adds the *_value for numbers (integers and floats). However, f16 and f128 are voluntarily left out as they're still unstable. Adding support for them...