You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: book/src/development/trait_checking.md
+9-7
Original file line number
Diff line number
Diff line change
@@ -73,22 +73,24 @@ impl LateLintPass<'_> for CheckDropTraitLint {
73
73
## Using Type Path
74
74
75
75
If neither diagnostic item nor a language item is available, we can use
76
-
[`clippy_utils::paths`][paths] with the `match_trait_method` to determine trait
77
-
implementation.
76
+
[`clippy_utils::paths`][paths] to determine get a trait's `DefId`.
78
77
79
78
> **Note**: This approach should be avoided if possible, the best thing to do would be to make a PR to [`rust-lang/rust`][rust] adding a diagnostic item.
80
79
81
-
Below, we check if the given `expr` implements the `Iterator`'s trait method `cloned`:
80
+
Below, we check if the given `expr` implements [`core::iter::Step`](https://doc.rust-lang.org/std/iter/trait.Step.html):
0 commit comments