1 use std::collections::HashSet;
11 // Not yet testing for multi-byte characters
12 // Changing `r.len() == 1` to `r.chars().count() == 1` in `lint_single_char_pattern`
13 // should have done this but produced an ICE
15 // We may not want to suggest changing these anyway
16 // See: https://github.com/rust-lang-nursery/rust-clippy/issues/650#issuecomment-184328984
20 // Can't use this lint for unicode code points which don't fit in a char
28 x.split_terminator("x");
29 x.rsplit_terminator("x");
35 x.rmatch_indices("x");
36 x.trim_left_matches("x");
37 x.trim_right_matches("x");
38 // Make sure we escape characters correctly.
41 let h = HashSet::<String>::new();
42 h.contains("X"); // should not warn