Adapt ui-tests to the tool_lints
This commit is contained in:
parent
bb49b31254
commit
1b6f6051a8
176 changed files with 597 additions and 486 deletions
|
@ -1,19 +1,19 @@
|
|||
#![feature(tool_lints)]
|
||||
|
||||
|
||||
|
||||
#[warn(zero_width_space)]
|
||||
#[warn(clippy::zero_width_space)]
|
||||
fn zero() {
|
||||
print!("Here >< is a ZWS, and another");
|
||||
print!("This\u{200B}is\u{200B}fine");
|
||||
}
|
||||
|
||||
#[warn(unicode_not_nfc)]
|
||||
#[warn(clippy::unicode_not_nfc)]
|
||||
fn canon() {
|
||||
print!("̀àh?");
|
||||
print!("a\u{0300}h?"); // also okay
|
||||
}
|
||||
|
||||
#[warn(non_ascii_literal)]
|
||||
#[warn(clippy::non_ascii_literal)]
|
||||
fn uni() {
|
||||
print!("Üben!");
|
||||
print!("\u{DC}ben!"); // this is okay
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue