Jason Newcomb
5e2a2d3ac9
Fix dogfood
2022-06-28 13:02:08 -04:00
Jason Newcomb
15df2289ea
Code cleanup
2022-06-28 12:48:49 -04:00
Jason Newcomb
9788107931
Handle future precedence issues in explicit_auto_deref
+ cleanup
2022-06-28 12:48:27 -04:00
Jason Newcomb
6d21b79be9
Fix needless_borrow
suggestion when calling a trait method taking self
2022-06-28 12:48:27 -04:00
Jason Newcomb
0b4ba734cb
Refactor dereference.rs
...
Merge `Position` and `AutoDerefStability`
2022-06-28 12:48:26 -04:00
Jason Newcomb
0204b95357
Lint explicit_auto_deref
immediately after needless_borrow
2022-06-28 12:48:26 -04:00
Jason Newcomb
65bc6cb8bf
Lint explicit_auto_deref
without a leading borrow
2022-06-28 12:48:26 -04:00
Jason Newcomb
442a68c64b
Only check parent node once in dereference.rs
2022-06-28 12:48:26 -04:00
Jason Newcomb
20ea26234a
Lint field accesses in explicit_auto_deref
2022-06-28 12:48:26 -04:00
Jason Newcomb
a187d6412b
Merge different parent walking loops in dereference.rs
...
`needless_borrow` will now walk further to find the target type.
2022-06-28 12:48:26 -04:00
Jason Newcomb
ee532c0222
Don't lint explicit_auto_deref
on reborrows
2022-06-28 12:48:26 -04:00
Jason Newcomb
8a74d33570
Add explicit_auto_deref
lint
2022-06-28 12:48:24 -04:00
flip1995
c5c8f6122f
Merge remote-tracking branch 'upstream/master' into rustup
2022-06-16 16:04:06 +02:00
Camille GILLOT
7b84a97c3e
Make ExprKind::Closure
a struct variant.
2022-06-12 00:16:27 +02:00
bors
b3c94c0828
Auto merge of #8976 - xFrednet:rust-97660-catch-emissions-with-expect, r=Jarcho
...
Fix some `#[expect]` lint interaction
Fixing the first few lints that aren't caught by `#[expect]`. The root cause of these examples was, that the lint was emitted at the wrong location.
---
changelog: none
r? `@Jarcho`
cc: rust-lang/rust#97660
2022-06-09 22:28:36 +00:00
xFrednet
a613460e8a
Fix #[expect]
for needless_borrow
, ref_binding_to_ref
2022-06-06 11:51:36 +02:00
Serial
9aeed6b9bf
Improve lint doc consistency
2022-06-05 16:03:18 -04:00
Michael Goulet
0ad3a0ac07
Lifetime variance fixes for clippy
2022-05-23 09:34:49 -07:00
xFrednet
4587b6628d
Merge 'rust-clippy/master' into clippyup
2022-05-21 13:24:00 +02:00
Jason Newcomb
9af2be8e96
Don't lint needless_borrow
in method receiver positions
2022-02-17 16:21:53 +01:00
lcnr
99af4c8971
remove TyS::same_type
...
it ignored regions and constants in adts,
but didn't do so for references or any other types.
This seemed quite weird
2022-02-01 11:21:26 +01:00
flip1995
bf66aeda0a
Merge commit 'a98e7ab8b94485be6bd03e0c6b8682ecab5b52e6' into clippyup
2022-01-27 15:12:45 +01:00
Cameron Steffen
82f613ee3b
Remove a span from hir::ExprKind::MethodCall
2022-01-21 07:48:10 -06:00
bors
55fa2ea00c
Auto merge of #92816 - tmiasko:rm-llvm-asm, r=Amanieu
...
Remove deprecated LLVM-style inline assembly
The `llvm_asm!` was deprecated back in #87590 1.56.0, with intention to remove
it once `asm!` was stabilized, which already happened in #91728 1.59.0. Now it
is time to remove `llvm_asm!` to avoid continued maintenance cost.
Closes #70173 .
Closes #92794 .
Closes #87612 .
Closes #82065 .
cc `@rust-lang/wg-inline-asm`
r? `@Amanieu`
2022-01-17 09:40:29 +00:00
flip1995
fb0142ae41
Merge commit '97a5daa65908e59744e2bc625b14849352231c75' into clippyup
2022-01-13 13:18:19 +01:00
Tomasz Miąsko
d389cfccb5
Remove LLVM-style inline assembly from clippy
2022-01-12 18:51:32 +01:00
flip1995
8fea1d94f3
Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup
2021-12-06 12:33:31 +01:00
flip1995
e674d0a599
Merge commit 'e18101137866b79045fee0ef996e696e68c920b4' into clippyup
2021-11-04 12:52:36 +00:00
Caio
b97d4c062b
Introduce hir::ExprKind::Let - Take 2
2021-08-15 16:18:26 -03:00
flip1995
2b20f49841
Merge commit '0cce3f643bfcbb92d5a1bb71858c9cbaff749d6b' into clippyup
2021-07-29 12:16:06 +02:00
flip1995
1d084b13a5
Merge commit '54a20a02ecd0e1352a871aa0990bcc8b8b03173e' into clippyup
2021-07-15 10:44:10 +02:00
flip1995
9f6b5de7de
Merge commit '0e87918536b9833bbc6c683d1f9d51ee2bf03ef1' into clippyup
2021-03-25 19:29:11 +01:00
flip1995
d164ab65f7
Merge commit 'da5a6fb1b65ec6581a67e942a3850f6bc15a552c' into clippyup
2020-07-26 21:07:07 +02:00
Valentin Lazureanu
5a20489c5c
Rename TypeckTables to TypeckResults.
2020-07-17 08:47:04 +00:00
flip1995
6f25adbd5a
Merge commit '2ca58e7dda4a9eb142599638c59dc04d15961175' into clippyup
2020-07-14 14:59:59 +02:00
Eduard-Mihai Burtescu
30c046ede4
Use 'tcx for references to AccessLevels wherever possible.
2020-07-03 00:04:48 +03:00
Eduard-Mihai Burtescu
f5ce0e5fe9
rustc_lint: only query typeck_tables_of
when a lint needs it.
2020-06-26 02:56:23 +03:00
Aaron Hill
6b3ee8f600
Update Clippy for MethodCall changes
2020-06-10 17:30:11 -04:00
ThibsG
3c2bbcf00e
Better precedence case management + more tests
2020-04-15 17:18:12 +02:00
ThibsG
72b9ae2a10
Use only check_expr with parent expr and precedence
2020-04-15 17:18:12 +02:00
ThibsG
b6d4330550
Check for Deref trait impl + add fixed version
2020-04-15 17:18:12 +02:00
ThibsG
c1132434a7
Report using stmts and expr + tests
2020-04-15 17:18:12 +02:00
ThibsG
6b4ab82746
Global rework + fix imports
2020-04-15 17:18:12 +02:00
Tom Milligan
b2d986850d
Working basic dereference clip
2020-04-15 17:18:12 +02:00