Skip to content

Clippy subtree update #117021

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 70 commits into from
Oct 21, 2023
Merged
Changes from 2 commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
6e0c456
triagebot no-merges: exclude "Rustup"s, add labels
pitaj Sep 16, 2023
77c121e
Warn missing_enforced_import_renames by default
taiki-e Sep 20, 2023
faacd55
Fix typo in attrs.rs
eltociear Oct 4, 2023
31fd282
[`get_first`]: lint on non-primitive types
y21 Oct 4, 2023
e6f29f1
dogfood
y21 Oct 4, 2023
010a9b1
Rename `Features::active_features`.
nnethercote Oct 5, 2023
9de3e6c
Add more diagnostic items for clippy
Jarcho Sep 27, 2023
ddd1564
Add regression test for #11610 about mutable usage of argument in asy…
GuillaumeGomez Oct 6, 2023
8ebed4c
Merge commit 'b105fb4c39bc1a010807a6c076193cef8d93c109' into clippyup
flip1995 Oct 6, 2023
68d2082
Fix ice
koka831 Oct 6, 2023
3662bd8
Auto merge of #11623 - koka831:fix/11619, r=llogiq
bors Oct 6, 2023
0ed398e
Rollup merge of #116423 - eltociear:patch-22, r=flip1995
matthiaskrgr Oct 6, 2023
bffba76
Fix two typos in lint description
samueltardieu Oct 7, 2023
1c6fa29
[`into_iter_without_iter`]: look for `iter` method in deref chains
y21 Oct 7, 2023
7624045
Auto merge of #11639 - y21:issue11635, r=llogiq
bors Oct 7, 2023
56400a0
Auto merge of #116437 - nnethercote:rustc_features, r=Nilstrieb
bors Oct 7, 2023
33f49f3
Auto merge of #11638 - samueltardieu:into-iter, r=Manishearth
bors Oct 7, 2023
850f2f5
Update ui_test to 0.21.2
Alexendoo Oct 8, 2023
5ed338d
`impl_trait_in_params` now supports impls and traits
blyxyas Sep 21, 2023
7755737
Fix tests, only lint for public tests
blyxyas Sep 23, 2023
bde0482
Auto merge of #11550 - blyxyas:fix-impl_trait_in_params-for_assocfn, …
bors Oct 8, 2023
929a288
Auto merge of #11645 - Alexendoo:ui_test, r=flip1995
bors Oct 9, 2023
70b8d15
Extend impl's def_span to include where clauses
compiler-errors Oct 6, 2023
0b60531
[`map_identity`]: allow closure with type annotations
y21 Sep 17, 2023
bba155e
move changed logic to into its own util function
y21 Oct 9, 2023
359fa98
Rejig some top-level `rustc_hir_pretty` functions.
nnethercote Oct 10, 2023
0b8495b
Rollup merge of #116625 - nnethercote:rustc_hir_pretty, r=fee1-dead
matthiaskrgr Oct 12, 2023
b5488f9
[`manual_is_ascii_check`]: Also check for `is_ascii_hexdigt`
aDotInTheVoid Oct 12, 2023
ff00e9c
Auto merge of #11659 - aDotInTheVoid:hexdigit, r=Jarcho
bors Oct 12, 2023
eb6fb18
Avoid `panic!`, omit instead
koka831 Oct 13, 2023
9fc717d
add test for macro-in-loop
koka831 Oct 13, 2023
c40359d
Auto merge of #11664 - koka831:fix/11134, r=blyxyas
bors Oct 13, 2023
d179605
Document conflicting lints
c410-f3r Oct 13, 2023
8c0870d
Address comment
c410-f3r Oct 13, 2023
1ffd09a
Stabilize AFIT and RPITIT
compiler-errors Sep 13, 2023
6ed04af
Make `multiple_unsafe_ops_per_block` ignore await desugaring
Noratrieb Oct 8, 2023
bb6516a
[`unnecessary_lazy_eval`]: don't emit autofix suggestion if closure h…
y21 Oct 15, 2023
ef95be5
Auto merge of #11609 - y21:get_first_non_primitives, r=giraffate
bors Oct 15, 2023
ae52ee5
Auto merge of #11514 - pitaj:triagebot_no-merges_exclude-titles, r=fl…
bors Oct 16, 2023
387d756
Auto merge of #11666 - c410-f3r:dsadasewqasdsa, r=flip1995
bors Oct 16, 2023
3960bc0
Now `declare_interior_mutable_const` and `borrow_interior_mutable_con…
slinkydeveloper Oct 16, 2023
9f27b15
Auto merge of #11673 - y21:issue11672, r=Manishearth
bors Oct 16, 2023
2cf708d
Auto merge of #11646 - Nilstrieb:compiler-does-not-comply-with-the-li…
bors Oct 17, 2023
9ee26d0
fix lint failures in clippy
a-lafrance Oct 16, 2023
09535a5
[RFC 3127 - Trim Paths]: Fix building tools (rustdoc, clippy, ...)
Urgau Aug 23, 2023
2640d5c
Auto merge of #11622 - GuillaumeGomez:needless_pass_by_ref_mut-regres…
bors Oct 17, 2023
bc97f7d
Don't emit `needless_pass_by_ref_mut` if the variable is used in an u…
GuillaumeGomez Oct 6, 2023
80a092c
Add test for `needless_pass_by_ref_mut` to ensure that the lint is no…
GuillaumeGomez Oct 6, 2023
d9dc5ee
AliasTy::new instead of tcx method
lcnr Oct 18, 2023
8b02dac
add lint for struct field names
jonboh Oct 17, 2023
5fb312e
Auto merge of #11624 - GuillaumeGomez:needless_pass_by_ref_mut-unsafe…
bors Oct 18, 2023
fe21991
Auto merge of #11496 - jonboh:prefix_postfix_struct, r=y21
bors Oct 18, 2023
ec2b8ab
Fix invalid warning for closure in non-async function for `needless_p…
GuillaumeGomez Oct 6, 2023
3b4b07c
Add test for closure in non-async function for `needless_pass_by_ref_…
GuillaumeGomez Oct 6, 2023
3e6db95
Add regression test for #11561
GuillaumeGomez Oct 6, 2023
1528c1d
Deserialize Msrv directly in Conf
Alexendoo Oct 18, 2023
a07c032
Tweak wording of type errors involving type params
estebank Oct 18, 2023
9574d28
Auto merge of #11683 - Alexendoo:msrv-config, r=Manishearth,flip1995
bors Oct 19, 2023
cd477d4
Auto merge of #11621 - GuillaumeGomez:needless_pass_by_ref_mut-closur…
bors Oct 19, 2023
214b4d9
Auto merge of #115214 - Urgau:rfc-3127-trim-paths, r=compiler-errors
bors Oct 19, 2023
e230f19
Auto merge of #11521 - y21:issue9122, r=llogiq
bors Oct 20, 2023
090df7a
Auto merge of #11678 - slinkydeveloper:master, r=Alexendoo
bors Oct 20, 2023
868e513
s/Generator/Coroutine/
oli-obk Oct 19, 2023
d9259fd
s/generator/coroutine/
oli-obk Oct 19, 2023
23af253
Auto merge of #11539 - taiki-e:enforced-import-renames, r=Centri3
bors Oct 21, 2023
5f03156
Merge remote-tracking branch 'upstream/master' into rustup
flip1995 Oct 21, 2023
a585cda
Bump nightly version -> 2023-10-21
flip1995 Oct 21, 2023
2b030eb
Auto merge of #11694 - flip1995:rustup, r=flip1995
bors Oct 21, 2023
24b3554
Merge commit '2b030eb03d9e5837440b1ee0b98c50b97c0c5889' into clippyup
flip1995 Oct 21, 2023
b8b55fe
Update Cargo.lock (ui_test update)
flip1995 Oct 21, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clippy_lints/src/manual_float_methods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ impl<'tcx> LateLintPass<'tcx> for ManualFloatMethods {
if !in_external_macro(cx.sess(), expr.span)
&& (
matches!(cx.tcx.constness(cx.tcx.hir().enclosing_body_owner(expr.hir_id)), Constness::NotConst)
|| cx.tcx.features().active(sym!(const_float_classify))
|| cx.tcx.features().declared(sym!(const_float_classify))
) && let ExprKind::Binary(kind, lhs, rhs) = expr.kind
&& let ExprKind::Binary(lhs_kind, lhs_lhs, lhs_rhs) = lhs.kind
&& let ExprKind::Binary(rhs_kind, rhs_lhs, rhs_rhs) = rhs.kind
Expand Down