1
Fork 0

Adapt ui-tests to the tool_lints

This commit is contained in:
flip1995 2018-07-28 17:34:52 +02:00 committed by Manish Goregaokar
parent bb49b31254
commit 1b6f6051a8
176 changed files with 597 additions and 486 deletions

View file

@ -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