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
is compared against symbols in clippy, and I believe in rustc many uses could also be comparing against symbols. Is this something we should do @nnethercote ?
The text was updated successfully, but these errors were encountered:
oli-obk
added
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
A-parser
Area: The parsing of Rust source code to an AST
labels
May 13, 2019
Possibly. The best way to decide is to simply try it and see how well it works. Sometimes switching to a symbol makes everything fall out nicely. Sometimes there are a bunch of follow-on changes required but it still ends up nice. Sometimes it ends up making the code more complicated and a string is better.
libfmt_macros also custom rolls its own Span type. Having a dependency on libsyntax_pos can possibly make a lot of things simpler, but I haven't checked in depth.
…r=estebank
Use Symbol, Span in libfmt_macros
I'm not super happy with this, personally, but I think it might be a decent start -- happy to take suggestions as to how to expand this or change things further.
r? @estebankFixesrust-lang#60795
rust/src/libfmt_macros/lib.rs
Line 74 in 258e3b3
The text was updated successfully, but these errors were encountered: