Skip to content

Clippy subtree update #140540

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 36 commits into from
May 2, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
cbfe1f5
Restrict the cases where `ptr_eq` triggers
samueltardieu Apr 2, 2025
2422f0b
Restrict the cases where `ptr_eq` triggers (#14526)
Alexendoo Apr 22, 2025
ff428d9
Merge commit '0621446356e20fd2ead13a6763bb936c95eb0cfa' into clippy-s…
flip1995 Apr 22, 2025
bf713a0
style: pull one more `if` into the let-chain
ada4a Apr 22, 2025
2304a9c
remove non-existent pathspec from pre-commit hook
ada4a Apr 22, 2025
aa27ae3
remove non-existent pathspec from pre-commit hook (#14671)
Manishearth Apr 22, 2025
dd5948c
Clippy: Fix doc issue
flip1995 Apr 23, 2025
7c5312b
Reword `needless_question_mark` diagnostics and docs
Alexendoo Apr 23, 2025
dc695f5
Reword `needless_question_mark` diagnostics and docs (#14682)
Manishearth Apr 23, 2025
34f81f9
style: pull one more `if` into the let-chain (#14669)
y21 Apr 23, 2025
6e64338
Suggest {to,from}_ne_bytes for transmutations between arrays and inte…
bend-n Mar 31, 2025
6ee75c4
Remove `weak` alias terminology
BoxyUwU Apr 24, 2025
736be8b
Consistently refer to the `?` operator
Alexendoo Apr 24, 2025
fc12b5b
fix-issue-14665
Kivooeo Apr 22, 2025
91ed606
Consistently refer to the `?` operator (#14687)
y21 Apr 24, 2025
7b337f6
Replace some `Symbol::as_str` usage
Alexendoo Apr 23, 2025
8a9153d
Merge from rustc
Apr 25, 2025
148c9a1
Fix error message for static references or mutable references
yuk1ty Apr 20, 2025
3f72ffa
fix: `unnecessary_cast` suggests extra brackets when in macro
profetia Apr 17, 2025
ad69347
fix: `equatable_if_let` suggests wrongly when involving reference
profetia Mar 30, 2025
ff307ba
fix: `unnecessary_cast` suggests extra brackets when in macro (#14643)
Jarcho Apr 26, 2025
58cfdb7
fix: `equatable_if_let` suggests wrongly when involving reference (#1…
dswij Apr 26, 2025
39a4086
`manual_div_ceil`: fix suggestions when macro is involved (#14666)
dswij Apr 27, 2025
5d8fb77
fix: `unused_unit` suggests wrongly when unit never type fallback
profetia Apr 17, 2025
5123ad5
Fix `zombie_processes` FP inside closures
profetia Apr 27, 2025
0dd9722
Replace some `Symbol::as_str` usage (#14679)
y21 Apr 27, 2025
542762e
fix: `unused_unit` suggests wrongly when unit never type fallback (#1…
Jarcho Apr 27, 2025
bca637c
Add or-patterns to pattern types
oli-obk Feb 27, 2025
92ba063
Rollup merge of #140249 - BoxyUwU:remove_weak_alias_terminology, r=ol…
GuillaumeGomez Apr 28, 2025
549107d
Fix `zombie_processes` FP inside closures (#14696)
Manishearth Apr 28, 2025
d172204
Merge from rustc
Apr 29, 2025
6d58910
Rollup merge of #139909 - oli-obk:or-patterns, r=BoxyUwU
tgross35 Apr 29, 2025
4379767
Merge remote-tracking branch 'upstream/master' into rustup
flip1995 May 1, 2025
8a91bbf
Bump nightly version -> 2025-05-01
flip1995 May 1, 2025
03a5b6b
Rustup (#14721)
flip1995 May 1, 2025
c9992d6
Merge commit '03a5b6b976ac121f4233775c49a4bce026065b47' into clippy-s…
flip1995 May 1, 2025
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
Prev Previous commit
Next Next commit
Remove weak alias terminology
  • Loading branch information
BoxyUwU committed Apr 24, 2025
commit 6ee75c4a6e1e26ac04c825585a18f1645fd5385b
2 changes: 1 addition & 1 deletion clippy_lints/src/dereference.rs
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ impl TyCoercionStability {
continue;
},
ty::Param(_) if for_return => Self::Deref,
ty::Alias(ty::Weak | ty::Inherent, _) => unreachable!("should have been normalized away above"),
ty::Alias(ty::Free | ty::Inherent, _) => unreachable!("should have been normalized away above"),
ty::Alias(ty::Projection, _) if !for_return && ty.has_non_region_param() => Self::Reborrow,
ty::Infer(_)
| ty::Error(_)
Expand Down
2 changes: 1 addition & 1 deletion clippy_lints/src/missing_const_for_fn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ fn fn_inputs_has_impl_trait_ty(cx: &LateContext<'_>, def_id: LocalDefId) -> bool
inputs.iter().any(|input| {
matches!(
input.kind(),
ty::Alias(ty::AliasTyKind::Weak, alias_ty) if cx.tcx.type_of(alias_ty.def_id).skip_binder().is_impl_trait()
ty::Alias(ty::AliasTyKind::Free, alias_ty) if cx.tcx.type_of(alias_ty.def_id).skip_binder().is_impl_trait()
)
})
}