diff options
| author | bors <bors@rust-lang.org> | 2025-03-01 22:22:06 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-03-01 22:22:06 +0000 |
| commit | 351686bcfd18dd0f652aba69a806bfa68c57234d (patch) | |
| tree | 7d20ba474a6283e76572bb8c59b5e61347120420 /src/tools/clippy/tests/ui/unicode.rs | |
| parent | 8c392966a013fd8a09e6b78b3c8d6e442bc278e1 (diff) | |
| parent | 7bfea666528281d627fc01b3858e3742fafa0d7d (diff) | |
Auto merge of #137752 - flip1995:clippy-subtree-update, r=Manishearth
Clippy subtree update ? `@Manishearth` Cargo.lock change because of Clippy version bump and rustc_tool_utils new release. Fixes #137640 Would be nice, if we could this merged before nightly is being build, so that this ICE is fixed tomorrow.
Diffstat (limited to 'src/tools/clippy/tests/ui/unicode.rs')
| -rw-r--r-- | src/tools/clippy/tests/ui/unicode.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/unicode.rs b/src/tools/clippy/tests/ui/unicode.rs index bba613e228e..ada8bac8e04 100644 --- a/src/tools/clippy/tests/ui/unicode.rs +++ b/src/tools/clippy/tests/ui/unicode.rs @@ -3,16 +3,20 @@ #[warn(clippy::invisible_characters)] fn zero() { print!("Here >< is a ZWS, and another"); + //~^ invisible_characters print!("This\u{200B}is\u{200B}fine"); print!("Here >< is a SHY, and another"); + //~^ invisible_characters print!("This\u{ad}is\u{ad}fine"); print!("Here >< is a WJ, and another"); + //~^ invisible_characters print!("This\u{2060}is\u{2060}fine"); } #[warn(clippy::unicode_not_nfc)] fn canon() { print!("̀àh?"); + //~^ unicode_not_nfc print!("a\u{0300}h?"); // also ok } @@ -21,13 +25,16 @@ mod non_ascii_literal { fn uni() { print!("Üben!"); + //~^ non_ascii_literal print!("\u{DC}ben!"); // this is ok } // issue 8013 fn single_quote() { const _EMPTY_BLOCK: char = '▱'; + //~^ non_ascii_literal const _FULL_BLOCK: char = '▰'; + //~^ non_ascii_literal } #[test] @@ -48,6 +55,7 @@ mod non_ascii_literal { #[test] fn denied() { let _ = "悲しいかな、ここに日本語を書くことはできない。"; + //~^ non_ascii_literal } } } |
