y21
e6f29f1900
dogfood
2023-10-04 18:08:30 +02:00
Alex Macleod
01c25a8eb6
Remove most usage of hir_ty_to_ty
2023-09-20 14:05:00 +00:00
Mario Carneiro
4e0a3465d1
fix vec.rs test, comment
2023-09-04 06:35:51 +02:00
Mario Carneiro
1317378b9e
fix todo item check, remove unimplemented
2023-09-03 17:16:06 +02:00
Mario Carneiro
61a2f972b3
skip todo / unimplemented in never_loop
2023-09-03 01:54:28 -04:00
Mario Carneiro
b3980d8497
catch never loops through diverging functions
2023-09-02 07:51:34 -04:00
Mario Carneiro
39b316db61
an empty match diverges
2023-09-02 07:32:38 -04:00
Mario Carneiro
68011893d8
Rewrite never_loop as a strict reachability pass
...
fixes #11004
2023-09-02 03:14:19 -04:00
Ben Schofield
be55a96d80
Add config flag for reborrows in explicit_iter_loop
...
This commit adds a config flag for enforcing explicit into iter lint
for reborrowed values. The config flag, enforce_iter_loop_reborrow, can be
added to clippy.toml files to enable the linting behaviour. By default
the lint is not enabled.
2023-08-27 21:45:14 -06:00
Philipp Krones
17b9c42572
Merge remote-tracking branch 'upstream/master' into rustup
2023-08-10 21:15:24 +02:00
Nilstrieb
ed0dfed24f
Improve spans for indexing expressions
...
Indexing is similar to method calls in having an arbitrary
left-hand-side and then something on the right, which is the main part
of the expression. Method calls already have a span for that right part,
but indexing does not. This means that long method chains that use
indexing have really bad spans, especially when the indexing panics and
that span in coverted into a panic location.
This does the same thing as method calls for the AST and HIR, storing an
extra span which is then put into the `fn_span` field in THIR.
2023-08-04 13:17:39 +02:00
Philipp Krones
b0e64a9c09
Merge commit ' 5436dba826' into clippyup
2023-07-31 23:53:53 +02:00
Jason Newcomb
71cc39e1f2
Add debug assertions to implements_trait
...
Improve debug assertions for `make_projection`
2023-07-30 00:38:04 -04:00
Philipp Krones
3d60241841
Merge remote-tracking branch 'upstream/master' into rustup
2023-07-28 23:44:28 +02:00
Centri3
51b57723d1
new lint redundant_guards
2023-07-22 06:28:05 -05:00
Philipp Krones
d6d530fd0b
Merge commit ' d9c24d1b1e' into clippyup
2023-07-17 10:22:32 +02:00
Mahdi Dibaiee
fdb2e363d3
refactor(rustc_middle): Substs -> GenericArg
2023-07-14 13:27:35 +01:00
Philipp Krones
415fdb2d1a
Merge remote-tracking branch 'upstream/master' into rustup
2023-07-14 13:36:16 +02:00
Alex Macleod
2811effe34
Add imports_granularity = "Module" to rustfmt.toml
2023-07-13 12:44:57 +00:00
xFrednet
31397b489a
Update version attribute for 1.71 lints
2023-07-11 19:23:42 +02:00
Boxy
cbe468222a
Move TyCtxt::mk_x to Ty::new_x where applicable
2023-07-05 20:27:07 +01:00
Philipp Krones
cb3ecf7b79
Merge commit ' 37f4c1725d' into clippyup
2023-07-02 14:59:02 +02:00
Samuel Moelius
420f3d11e8
"try this" -> "try"
2023-07-01 07:08:01 -04:00
Philipp Krones
8010c3462d
Merge remote-tracking branch 'upstream/master' into rustup
2023-06-30 16:09:06 +02:00
Maybe Waffle
555bd985d2
Support hir::ExprKind::Become in clippy
2023-06-26 08:56:32 +00:00
Catherine
6a1084c26f
Check if if conditions always evaluate to true in never_loop
2023-06-22 04:31:05 -05:00
Jason Newcomb
949712c90a
Reborrow mutable references in explicit_iter_loop
2023-06-09 21:40:03 -04:00
Jason Newcomb
482baf2bcc
Fix explicit_into_iter_loop with mutable references
2023-06-09 21:40:03 -04:00
Jason Newcomb
b6fa4d43d3
Extend explicit_iter_loop to all types
2023-06-09 19:24:55 -04:00
bors
167f249141
Auto merge of #10760 - NanthR:almost_standard_formulation, r=xFrednet
...
Standard lint formulations
A WIP that fixes #10660 . Fix lints that don't conform to the standard formulation.
changelog: none
2023-06-04 10:48:03 +00:00
Raghul Nanth A
7ac15f9000
Add lint to check lint formulation messages
...
Fix lints that don't conform to the standard formulation
2023-06-03 00:00:30 +05:30
y21
0181d772a4
dogfood
2023-05-24 15:59:12 +02:00
Philipp Krones
7e9abb311d
Merge commit ' 371120bdbf' into clippyup
2023-05-05 17:45:49 +02:00
y21
8d8178f931
rename lint to manual_while_let_some
2023-04-29 18:59:07 +02:00
y21
f10e39fd2b
make PopStmt copy+clone
2023-04-29 18:59:07 +02:00
y21
ab9b7a5ad2
remove unnecessary reference
2023-04-29 18:59:07 +02:00
y21
1d08325293
move lint to loops, emit proper suggestion, more tests
2023-04-29 18:59:07 +02:00
y21
bb58083ce5
new lint: while_pop_unwrap
2023-04-29 18:59:06 +02:00
bors
96f8471d81
Auto merge of #10649 - jsoref:spelling, r=Jarcho
...
Spelling
This PR corrects misspellings identified by the [check-spelling action](https://github.com/marketplace/actions/check-spelling ).
The misspellings have been reported at https://github.com/jsoref/rust-clippy/actions/runs/4710771873#summary-12776860721
The action reports that the changes in this PR would make it happy: https://github.com/jsoref/rust-clippy/actions/runs/4710771874#summary-12776860722
changelog: none
2023-04-23 22:30:06 +00:00
Josh Soref
d2061faf9e
Spelling
...
* applying
* binding
* complex
* constituent
* demonstrate
* desugaring
* exact
* expression
* for
* functionalities
* github
* implementation
* infers
* multiple conflicting traits
* mutable
* necessarily
* nightly
* nonexistent
* optional
* parameter
* reassignments
* resources
* substitution
* suggestion
* that
* that array is
* using the
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-23 10:52:27 -04:00
Philipp Krones
583c97e9bb
Merge remote-tracking branch 'upstream/master' into rustup
2023-04-23 03:39:03 -07:00
DrMeepster
68c4776b46
offset_of
2023-04-21 02:14:02 -07:00
Philipp Krones
8df896c076
Merge commit ' d5e2a7aca5' into clippyup
2023-03-24 14:26:19 +01:00
Philipp Krones
62cba5d971
Merge remote-tracking branch 'upstream/master' into rustup
2023-03-24 13:36:09 +01:00
clubby789
f2eddc5924
Remove box expressions from HIR
2023-03-14 17:18:26 +00:00
bors
f19db28361
Auto merge of #10434 - Jarcho:snip_context, r=dswij
...
Remove `snippet_with_macro_callsite`
`snippet_with_context` is used instead to support nested macro calls.
changelog: None
2023-03-11 12:45:20 +00:00
Vadim Petrochenkov
79359cbbcf
rustc_middle: Remove trait DefIdTree
...
This trait was a way to generalize over both `TyCtxt` and `Resolver`, but now `Resolver` has access to `TyCtxt`, so this trait is no longer necessary.
2023-03-02 23:46:44 +04:00
Jason Newcomb
1a81a3e5cf
Remove snippet_with_macro_callsite
2023-03-02 00:51:04 -05:00
bors
0966f59c78
Auto merge of #108474 - Jarcho:clippyup, r=Manishearth
...
Update Clippy
Seems like `@flip1995` so this is a couple days late.
r? `@Manishearth`
2023-02-26 18:45:47 +00:00
Jason Newcomb
0413fb35ba
Merge commit ' 149392b0ba' into clippyup
2023-02-25 19:28:50 -05:00