-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Normalize use of backticks in syntax for user-facing compiler messages #60532
Comments
Hello, I would like to work on this one! cc @varkor |
@fakenine: I'm not sure of a principled way to go about this, but you can look in the compiler for error messages (coming from |
Thanks @fakenine, sounds good. |
Unfortunately a lot of this will have to be done manually as @varkor hints at, but a good deal can be automated by searching with regexps, e.g. |
Thanks for the tips, I will look into that! |
Hi @fakenine. Any news on this so far? Let me know if you need advice or an initial cursory review! |
Hi @alexreg ! Thanks for the help. I was on holidays so I didn't get the time to start properly looking on it. I should be able to start this weekend |
No problem. Keep us posted, and feel free to ask here or on Discord. :-) |
…_compiler_messages_1, r=Centril normalize use of backticks/lowercase in compiler messages for librustc_mir normalize use of backticks/lowercase in compiler messages for librustc_mir rust-lang#60532 r? @alexreg
…_compiler_messages_1, r=Centril normalize use of backticks/lowercase in compiler messages for librustc_mir normalize use of backticks/lowercase in compiler messages for librustc_mir rust-lang#60532 r? @alexreg
…_compiler_messages_1, r=Centril normalize use of backticks/lowercase in compiler messages for librustc_mir normalize use of backticks/lowercase in compiler messages for librustc_mir rust-lang#60532 r? @alexreg
…_compiler_messages_1, r=Centril normalize use of backticks/lowercase in compiler messages for librustc_mir normalize use of backticks/lowercase in compiler messages for librustc_mir rust-lang#60532 r? @alexreg
…_compiler_messages_p14, r=Centril normalize use of backticks in compiler messages for librustc_allocator rust-lang#60532
…essages_p17, r=alexreg normalize use of backticks for compiler messages in remaining modules #60532
…_compiler_messages_p15, r=Centril Normalize use of backticks in compiler messages for libsyntax/* rust-lang#60532
…_compiler_messages_p16, r=Centril Normalize use of backticks in compiler messages for doc rust-lang#60532
…_compiler_messages_p17, r=alexreg normalize use of backticks for compiler messages in remaining modules rust-lang#60532
…_compiler_messages_p15, r=Centril Normalize use of backticks in compiler messages for libsyntax/* rust-lang#60532
…_compiler_messages_p16, r=Centril Normalize use of backticks in compiler messages for doc rust-lang#60532
…_compiler_messages_p17, r=alexreg normalize use of backticks for compiler messages in remaining modules rust-lang#60532
…essages_p17, r=alexreg normalize use of backticks for compiler messages in remaining modules #60532
…_compiler_messages_p15, r=Centril Normalize use of backticks in compiler messages for libsyntax/* rust-lang#60532
…_compiler_messages_p16, r=Centril Normalize use of backticks in compiler messages for doc rust-lang#60532
I think this can be marked as resolved now 🎉 |
Yep! |
This is more pedantry from me, and admittedly not very high-priority, but I have noticed that there are discrepancies between compiler error/informational messages where syntax is included in them – some use backticks around code syntax, some don't. Furthermore, some start with lower case (the vast majority), while some don't.
For example:
vs.
(an internal inconsistency in this second case too!)
It would be nice to normalise this according some guidelines. I'd imagine the guidelines should agree with rustdoc as much as possible, though starting all messages with lower case may be desirable, since it is "command-line fashion".
The text was updated successfully, but these errors were encountered: