Closed
Description
Finally, there is a nightly that contains rust-lang/rust#32756! Clippy works mostly fine with it, but there are some minor issues. I posted an example output (PDF) on this internals.r-l.o thread, if you are interested in how this new style looks.
I noticed:
-
Some help messages contain line breaks with file names, e.g.,
help: instead of prefixing all patterns with `&`, you can dereference the expression src/result.rs: match *self { .. } help: for further information visit https://github.com/Manishearth/rust-clippy/wiki#match_ref_pats
-
Some warnings only underline one character in the line of code, e.g.
80 |> match self { |> ^
-
It is my understanding that the new format allows showing multiple annotations in the same code block, e.g. to show the highlighted spans (warning + note) in lints like "this
match
has identical arm bodies" (or "cannot borrow as mutable more than once at a time" as in the original example screenshot) next to each other. Clippy should do this!
Metadata
Metadata
Assignees
Labels
No labels