From b1e4b496e118b47be06e362286764f077c8d899d Mon Sep 17 00:00:00 2001 From: Joshua Holmer Date: Mon, 15 Feb 2016 13:36:10 -0500 Subject: [PATCH] Address @ilogiq's nits --- tests/compile-fail/methods.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/compile-fail/methods.rs b/tests/compile-fail/methods.rs index 06dd161ba9ee..c450c9532847 100644 --- a/tests/compile-fail/methods.rs +++ b/tests/compile-fail/methods.rs @@ -373,6 +373,9 @@ fn single_char_pattern() { // Not yet testing for multi-byte characters // Changing `r.len() == 1` to `r.chars().count() == 1` in `lint_single_char_pattern` // should have done this but produced an ICE + // + // We may not want to suggest changing these anyway + // See: https://github.com/Manishearth/rust-clippy/issues/650#issuecomment-184328984 x.split("ß"); x.split("ℝ"); x.split("💣"); @@ -443,4 +446,4 @@ fn single_char_pattern() { //~^ ERROR single-character string constant used as pattern //~| HELP try using a char instead: //~| SUGGESTION x.trim_right_matches('x'); -} \ No newline at end of file +}