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
*[`missing_const_for_fn`] no longer triggers on unstable const traits [#14294](https://github.com/rust-lang/rust-clippy/pull/14294)
68
+
*[`unnecessary_to_owned`] now avoids suggesting to call `iter()` on a temporary object [#14243](https://github.com/rust-lang/rust-clippy/pull/14243)
69
+
*[`unnecessary_debug_formatting`] no longer triggers in tests [#14347](https://github.com/rust-lang/rust-clippy/pull/14347)
70
+
*[`option_if_let_else`] now handles cases when value is partially moved [#14209](https://github.com/rust-lang/rust-clippy/pull/14209)
71
+
*[`blocks_in_conditions`] no longer triggers when the condition contains a `return`[#14338](https://github.com/rust-lang/rust-clippy/pull/14338)
72
+
*[`undocumented_unsafe_blocks`] no longer triggers on trait/impl items [#13888](https://github.com/rust-lang/rust-clippy/pull/13888)
73
+
*[`manual_slice_fill`] no longer triggers due to missing index checks [#14193](https://github.com/rust-lang/rust-clippy/pull/14193)
74
+
*[`useless_asref`] no longer suggests using `.clone()` if the target type doesn't implement `Clone`[#14174](https://github.com/rust-lang/rust-clippy/pull/14174)
75
+
*[`unnecessary_safety_comment`] no longer triggers on desugared assign [#14371](https://github.com/rust-lang/rust-clippy/pull/14371)
76
+
*[`unnecessary_map_or`] no longer consumes the comparison value if it does not implement `Copy`[#14207](https://github.com/rust-lang/rust-clippy/pull/14207)
77
+
*[`let_and_return`] no longer triggers involving short-lived block temporary variables [#14180](https://github.com/rust-lang/rust-clippy/pull/14180)
78
+
*[`manual_async_fn`] no longer emits suggestions inside macros [#14142](https://github.com/rust-lang/rust-clippy/pull/14142)
79
+
*[`use_self`] skips analysis inside macro expansions of a `impl Self` block [#13128](https://github.com/rust-lang/rust-clippy/pull/13128)
80
+
*[`double_ended_iterator_last`] no longer triggers on non-reference immutable receiver [#14140](https://github.com/rust-lang/rust-clippy/pull/14140)
81
+
82
+
### ICE Fixes
83
+
84
+
*[`macro_use_imports`] Fix ICE when checking attributes
Copy file name to clipboardExpand all lines: src/tools/clippy/book/src/development/trait_checking.md
+9-7Lines changed: 9 additions & 7 deletions
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