Skip to content

Commit 3955dc3

Browse files
committedSep 5, 2022
separate the receiver from arguments in HIR under /clippy
1 parent 87c6da3 commit 3955dc3

File tree

112 files changed

+663
-563
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+663
-563
lines changed
 

‎library/portable-simd/crates/std_float/src/lib.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
#![cfg_attr(feature = "as_crate", no_std)] // We are std!
2-
#![cfg_attr(
3-
feature = "as_crate",
4-
feature(platform_intrinsics),
5-
feature(portable_simd)
6-
)]
2+
#![cfg_attr(feature = "as_crate", feature(platform_intrinsics), feature(portable_simd))]
73
#[cfg(not(feature = "as_crate"))]
84
use core::simd;
95
#[cfg(feature = "as_crate")]

‎src/tools/clippy/book/src/development/common_tools_writing_lints.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Starting with an `expr`, you can check whether it is calling a specific method
6666
impl<'tcx> LateLintPass<'tcx> for MyStructLint {
6767
fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx hir::Expr<'_>) {
6868
// Check our expr is calling a method
69-
if let hir::ExprKind::MethodCall(path, _, [_self_arg, ..]) = &expr.kind
69+
if let hir::ExprKind::MethodCall(path, _, _self_arg, ..) = &expr.kind
7070
// Check the name of this method is `some_method`
7171
&& path.ident.name == sym!(some_method)
7272
// Optionally, check the type of the self argument.

0 commit comments

Comments
 (0)
Please sign in to comment.