作者:goxtop | 来源:互联网 | 2023-08-29 20:29
This is the first part of cast handling for our const folding.
Unfortunately, I currently have no way to test this, because I cannot construct
s outside of an AST.
该提问来源于开源项目:rust-lang/rust-clippy
I'm currently leaning to removing consts in favor of
's
function, which is more advanced and works pretty well. The only downside is that
will do path lookups in any event, and there's nothing we can do about it AFAIK.
what do you think?