File tree 2 files changed +2
-2
lines changed
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>(
399
399
400
400
// Returns may be used to turn an expression into a statement in rustc's AST.
401
401
// 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
403
403
// actually fulfill the expectation (clippy::#12998)
404
404
match cx. tcx . hir ( ) . attrs ( expr. hir_id ) {
405
405
[ ] => { } ,
Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ impl<'tcx> LateLintPass<'tcx> for UseSelf {
229
229
&& let impl_ty = cx. tcx . type_of ( impl_id) . instantiate_identity ( )
230
230
&& same_type_and_consts ( ty, impl_ty)
231
231
// 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
233
233
// which case we must still trigger the lint.
234
234
&& ( has_no_lifetime ( ty) || same_lifetimes ( ty, impl_ty) )
235
235
{
You can’t perform that action at this time.
0 commit comments