rust/src/librustc_parse/parser
Dylan DPC 67d735c4bf
Rollup merge of #69736 - matthiaskrgr:even_more_clippy, r=Dylan-DPC
even more clippy cleanups

* Don't pass &mut where immutable reference (&) is sufficient (clippy::unnecessary_mut_passed)
* Use more efficient &&str to String conversion (clippy::inefficient_to_string)
* Don't always eval arguments inside .expect(), use unwrap_or_else and closure. (clippy::expect_fun_call)
* Use righthand '&' instead of lefthand "ref". (clippy::toplevel_ref_arg)
* Use simple 'for i in x' loops instead of 'while let Some(i) = x.next()' loops on iterators. (clippy::while_let_on_iterator)
* Const items have by default a static lifetime, there's no need to annotate it. (clippy::redundant_static_lifetimes)
* Remove redundant patterns when matching ( x @ _  to  x) (clippy::redundant_pattern)
2020-03-05 22:04:10 +01:00
..
attr.rs Use .map() to modify data inside Options instead of using .and_then(|x| Some(y)) (clippy::option_and_then_some) 2020-03-04 20:35:11 +01:00
diagnostics.rs Const items have by default a static lifetime, there's no need to annotate it. (clippy::redundant_static_lifetimes) 2020-03-05 16:38:24 +01:00
expr.rs Rollup merge of #69579 - petrochenkov:noprevspan, r=Centril 2020-03-01 19:28:10 +09:00
generics.rs Rollup merge of #69579 - petrochenkov:noprevspan, r=Centril 2020-03-01 19:28:10 +09:00
item.rs Rollup merge of #69579 - petrochenkov:noprevspan, r=Centril 2020-03-01 19:28:10 +09:00
mod.rs Rollup merge of #69579 - petrochenkov:noprevspan, r=Centril 2020-03-01 19:28:10 +09:00
module.rs Rollup merge of #69579 - petrochenkov:noprevspan, r=Centril 2020-03-01 19:28:10 +09:00
pat.rs Rollup merge of #69579 - petrochenkov:noprevspan, r=Centril 2020-03-01 19:28:10 +09:00
path.rs Rollup merge of #69579 - petrochenkov:noprevspan, r=Centril 2020-03-01 19:28:10 +09:00
stmt.rs encode ; stmt w/o expr as StmtKind::Empty 2020-03-01 23:02:17 +01:00
ty.rs Rollup merge of #69579 - petrochenkov:noprevspan, r=Centril 2020-03-01 19:28:10 +09:00