Use edition:2018 flag more widely

This commit is contained in:
Yuki Okushi 2020-03-11 06:35:07 +09:00
parent 16b925b748
commit 515847dad1
No known key found for this signature in database
GPG Key ID: B0986C85C0E2DAA1
8 changed files with 8 additions and 8 deletions

View File

@ -1,4 +1,4 @@
// compile-flags: --edition 2018
// edition:2018
#![warn(clippy::missing_errors_doc)]
use std::io;

View File

@ -1,4 +1,4 @@
// compile-flags: --edition 2018
// edition:2018
#![allow(dead_code)]
async fn sink1<'a>(_: &'a str) {} // lint

View File

@ -1,4 +1,4 @@
// compile-flags: --edition 2018
// edition:2018
#![warn(clippy::macro_use_imports)]
use std::collections::HashMap;

View File

@ -1,5 +1,5 @@
// aux-build:option_helpers.rs
// compile-flags: --edition 2018
// edition:2018
#![warn(clippy::all, clippy::pedantic)]
#![allow(

View File

@ -1,5 +1,5 @@
// run-rustfix
// compile-flags: --edition 2018
// edition:2018
#![warn(clippy::single_component_path_imports)]
#![allow(unused_imports)]

View File

@ -1,5 +1,5 @@
// run-rustfix
// compile-flags: --edition 2018
// edition:2018
#![warn(clippy::single_component_path_imports)]
#![allow(unused_imports)]

View File

@ -1,5 +1,5 @@
// run-rustfix
// compile-flags: --edition 2018
// edition:2018
#![warn(clippy::use_self)]
#![allow(dead_code)]

View File

@ -1,5 +1,5 @@
// run-rustfix
// compile-flags: --edition 2018
// edition:2018
#![warn(clippy::use_self)]
#![allow(dead_code)]