This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -399,7 +399,7 @@ fn check_final_expr<'tcx>(
399399
400400 // Returns may be used to turn an expression into a statement in rustc's AST.
401401 // This allows the addition of attributes, like `#[allow]` (See: clippy#9361)
402- // `#[expect(clippy::needless_return)]` needs to be handled separatly to
402+ // `#[expect(clippy::needless_return)]` needs to be handled separately to
403403 // actually fulfill the expectation (clippy::#12998)
404404 match cx. tcx . hir ( ) . attrs ( expr. hir_id ) {
405405 [ ] => { } ,
Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ impl<'tcx> LateLintPass<'tcx> for UseSelf {
229229 && let impl_ty = cx. tcx . type_of ( impl_id) . instantiate_identity ( )
230230 && same_type_and_consts ( ty, impl_ty)
231231 // Ensure the type we encounter and the one from the impl have the same lifetime parameters. It may be that
232- // the lifetime parameters of `ty` are ellided (`impl<'a> Foo<'a> { fn new() -> Self { Foo{..} } }`, in
232+ // the lifetime parameters of `ty` are elided (`impl<'a> Foo<'a> { fn new() -> Self { Foo{..} } }`, in
233233 // which case we must still trigger the lint.
234234 && ( has_no_lifetime ( ty) || same_lifetimes ( ty, impl_ty) )
235235 {
You can’t perform that action at this time.
0 commit comments