Yuki Okushi
eaff0fc25b
Add a hint that the expressions produce a value
2021-07-31 06:12:42 +09:00
hi-rustin
88abd7d81d
Lint for unused borrows as part of UNUSED_MUST_USE
2021-06-18 15:09:40 +08:00
Ryan Levick
6936349233
Add support for using qualified paths with structs in expression and pattern
...
position.
2021-06-10 13:18:41 +02:00
Camille GILLOT
4bb07bedf5
Visit attributes in one go.
2021-03-09 19:09:34 +01:00
Mara Bos
0d97f9b22a
Rollup merge of #82048 - mark-i-m:or-pat-type-ascription, r=petrochenkov
...
or-patterns: disallow in `let` bindings
~~Blocked on https://github.com/rust-lang/rust/pull/81869~~
Disallows top-level or-patterns before type ascription. We want to reserve this syntactic space for possible future generalized type ascription.
r? ``@petrochenkov``
2021-03-09 09:05:20 +00:00
Esteban Küber
e62a543344
Account for if (let pat = expr) {}
...
Partially address #82827 .
2021-03-07 13:49:36 -08:00
mark
e64138c534
use pat<no_top_alt> for patterns in let bindings
2021-03-05 10:10:04 -06:00
Ömer Sinan Ağacan
8b5187f7ea
Fix an old FIXME in redundant paren lint
...
Referenced bug was fixed a while ago
2021-01-30 22:39:56 +03:00
Jack Huey
3dea68de1d
Review changes
2021-01-16 18:56:37 -05:00
LingMan
a56bffb4f9
Use Option::map_or instead of .map(..).unwrap_or(..)
2021-01-14 19:23:59 +01:00
Matthias Krüger
8a90626a46
reduce borrowing and (de)referencing around match patterns (clippy::match_ref_pats)
2021-01-02 20:09:17 +01:00
Jack Huey
ed80815bf2
Move binder for dyn to each list item
2020-12-11 15:02:46 -05:00
Carol (Nichols || Goulding)
ae17d7d455
More consistently use spaces after commas in lists in docs
2020-11-21 14:43:34 -05:00
Joshua Nelson
bfecb18771
Fix some more clippy warnings
2020-10-30 10:12:56 -04:00
Jubilee Young
0e88db7db4
Dogfood {exclusive,half-open} ranges in compiler (nfc)
...
In particular, this allows us to write more explicit matches that
avoid the pitfalls of using a fully general fall-through case, yet
remain fairly ergonomic. Less logic is in guard cases, more is in
the actual exhaustive case analysis.
No functional changes.
2020-10-28 20:09:20 -07:00
Yuki Okushi
378ca5e640
Rollup merge of #77931 - aticu:fix_60336, r=petrochenkov
...
Fix false positive for `unused_parens` lint
Fixes #60336
2020-10-20 12:11:06 +09:00
Santiago Pastorino
547e5eb498
Do not check unused braces on inline consts
2020-10-16 17:14:37 -03:00
aticu
39867f3c9f
Fixed false positive for unused_parens
lint
2020-10-14 01:16:40 +02:00
Matthew Jasper
f958e6c246
Separate bounds and predicates for associated/opaque types
2020-10-06 11:19:29 +01:00
Eric Huss
45c1e0ae07
Auto-generate lint documentation.
2020-09-13 08:48:03 -07:00
LeSeulArtichaut
3e14b684dd
Change ty.kind to a method
2020-09-04 17:47:51 +02:00
mark
9e5f7d5631
mv compiler to compiler/
2020-08-30 18:45:07 +03:00