Rollup merge of #121543 - onur-ozkan:clippy-args, r=oli-obk
various clippy fixes We need to keep the order of the given clippy lint rules before passing them. Since clap doesn't offer any useful interface for this purpose out of the box, we have to handle it manually. Additionally, this PR makes `-D` rules work as expected. Previously, lint rules were limited to `-W`. By enabling `-D`, clippy began to complain numerous lines in the tree, all of which have been resolved in this PR as well. Fixes #121481 cc `@matthiaskrgr`
This commit is contained in:
commit
4f3050b85a
11 changed files with 107 additions and 37 deletions
|
@ -229,7 +229,6 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
|
|||
span: Span,
|
||||
scrutinee_span: Span,
|
||||
) -> BlockAnd<()> {
|
||||
let scrutinee_span = scrutinee_span;
|
||||
let scrutinee_place =
|
||||
unpack!(block = self.lower_scrutinee(block, scrutinee_id, scrutinee_span));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue