-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Add support to colorize the output of notes and errors #37532
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
Comments
rustc's errors are colored. Can you add more information about your configuration, where color is missing? |
? |
This ticket had a very bad summary, sorry about that. What I'm proposing is adding support to (all?) the note and help methods in The idea to have this came to me while thinking about #21025, as something like this could be accomplished: foo.rs:9:7: 9:8 error: mismatched types: expected `Foo<u8, i8>`, found `Foo<u8, i64>` (expected i8, found i64) |
Related #21334. |
Teach Diagnostics to highlight text Support styled `Diagnostic` output: <img width="469" alt="mismatched types error with colorized types in the note" src="https://cloud.githubusercontent.com/assets/1606434/21871227/93a84198-d815-11e6-88b1-0ede3c7e28ef.png"> Closes #37532 and #38901. r? @nikomatsakis CC @jonathandturner @nagisa @nrc
Sometimes coloring messages could be useful to highlight either inlined code or an important part of the output text without changing the text itself.
The text was updated successfully, but these errors were encountered: