Skip to content

Commit

Permalink
Correctly handle char paths
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Dec 30, 2024
1 parent 34b1765 commit b515064
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clippy_lints/src/utils/internal_lints/invalid_paths.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ pub fn check_path(cx: &LateContext<'_>, path: &[&str]) -> bool {
SimplifiedType::Slice,
SimplifiedType::Str,
SimplifiedType::Bool,
SimplifiedType::Char,
]
.iter()
.flat_map(|&ty| cx.tcx.incoherent_impls(ty).iter())
Expand Down

0 comments on commit b515064

Please sign in to comment.