Skip to content

Commit 57731f1

Browse files
committed
Auto merge of #9292 - alex-semenyuk:typos_fixed, r=Alexendoo
Fix some typos changelog: none
2 parents 2dc7d2f + f63b324 commit 57731f1

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

clippy_lints/src/missing_const_for_fn.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ impl<'tcx> LateLintPass<'tcx> for MissingConstForFn {
124124
FnKind::Method(_, sig, ..) => {
125125
if trait_ref_of_method(cx, def_id).is_some()
126126
|| already_const(sig.header)
127-
|| method_accepts_dropable(cx, sig.decl.inputs)
127+
|| method_accepts_droppable(cx, sig.decl.inputs)
128128
{
129129
return;
130130
}
@@ -159,7 +159,7 @@ impl<'tcx> LateLintPass<'tcx> for MissingConstForFn {
159159

160160
/// Returns true if any of the method parameters is a type that implements `Drop`. The method
161161
/// can't be made const then, because `drop` can't be const-evaluated.
162-
fn method_accepts_dropable(cx: &LateContext<'_>, param_tys: &[hir::Ty<'_>]) -> bool {
162+
fn method_accepts_droppable(cx: &LateContext<'_>, param_tys: &[hir::Ty<'_>]) -> bool {
163163
// If any of the params are droppable, return true
164164
param_tys.iter().any(|hir_ty| {
165165
let ty_ty = hir_ty_to_ty(cx.tcx, hir_ty);

clippy_lints/src/utils/internal_lints.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ fn check_invalid_clippy_version_attribute(cx: &LateContext<'_>, item: &'_ Item<'
569569
item.span,
570570
"this item has an invalid `clippy::version` attribute",
571571
None,
572-
"please use a valid sematic version, see `doc/adding_lints.md`",
572+
"please use a valid semantic version, see `doc/adding_lints.md`",
573573
);
574574
}
575575
} else {

tests/ui-internal/check_clippy_version_attribute.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ note: the lint level is defined here
1616
LL | #![deny(clippy::internal)]
1717
| ^^^^^^^^^^^^^^^^
1818
= note: `#[deny(clippy::invalid_clippy_version_attribute)]` implied by `#[deny(clippy::internal)]`
19-
= help: please use a valid sematic version, see `doc/adding_lints.md`
19+
= help: please use a valid semantic version, see `doc/adding_lints.md`
2020
= note: this error originates in the macro `$crate::declare_tool_lint` which comes from the expansion of the macro `declare_tool_lint` (in Nightly builds, run with -Z macro-backtrace for more info)
2121

2222
error: this item has an invalid `clippy::version` attribute
@@ -31,7 +31,7 @@ LL | | report_in_external_macro: true
3131
LL | | }
3232
| |_^
3333
|
34-
= help: please use a valid sematic version, see `doc/adding_lints.md`
34+
= help: please use a valid semantic version, see `doc/adding_lints.md`
3535
= note: this error originates in the macro `$crate::declare_tool_lint` which comes from the expansion of the macro `declare_tool_lint` (in Nightly builds, run with -Z macro-backtrace for more info)
3636

3737
error: this lint is missing the `clippy::version` attribute or version value

0 commit comments

Comments
 (0)