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
syntax::diagnostic::print_diagnostic currently parses the terminfo entry every time it is called, which is wildly inefficient and apt to create churn. Being an error/warning codepath, its efficiency is not key, but it'd be nice if the Terminal could be cached somewhere (TLS?)
The text was updated successfully, but these errors were encountered:
Teach `extra::term` to support more terminal attributes than just color.
Fix the compiler diagnostic messages to print in bold instead of bright white. This matches Clang's output.
Cache the term::Terminal instead of re-parsing for every diagnostic (fixes#6827).
Add `needless_bitwise_bool` lint
fixesrust-lang#6827fixesrust-lang#1594
changelog: Add ``[`needless_bitwise_bool`]`` lint
Creates a new `bitwise_bool` lint to convert `x & y` to `x && y` when both `x` and `y` are booleans. I also had to adjust thh `needless_bool` lint slightly, and fix a couple failing dogfood tests. I made it a correctness lint as per flip1995's comment [here](rust-lang/rust-clippy#3385 (comment)), from a previous WIP attempt at this lint.
syntax::diagnostic::print_diagnostic
currently parses the terminfo entry every time it is called, which is wildly inefficient and apt to create churn. Being an error/warning codepath, its efficiency is not key, but it'd be nice if theTerminal
could be cached somewhere (TLS?)The text was updated successfully, but these errors were encountered: