mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
Use edition:2018
flag more widely
This commit is contained in:
parent
16b925b748
commit
515847dad1
@ -1,4 +1,4 @@
|
||||
// compile-flags: --edition 2018
|
||||
// edition:2018
|
||||
#![warn(clippy::missing_errors_doc)]
|
||||
|
||||
use std::io;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// compile-flags: --edition 2018
|
||||
// edition:2018
|
||||
#![allow(dead_code)]
|
||||
|
||||
async fn sink1<'a>(_: &'a str) {} // lint
|
||||
|
@ -1,4 +1,4 @@
|
||||
// compile-flags: --edition 2018
|
||||
// edition:2018
|
||||
#![warn(clippy::macro_use_imports)]
|
||||
|
||||
use std::collections::HashMap;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// aux-build:option_helpers.rs
|
||||
// compile-flags: --edition 2018
|
||||
// edition:2018
|
||||
|
||||
#![warn(clippy::all, clippy::pedantic)]
|
||||
#![allow(
|
||||
|
@ -1,5 +1,5 @@
|
||||
// run-rustfix
|
||||
// compile-flags: --edition 2018
|
||||
// edition:2018
|
||||
#![warn(clippy::single_component_path_imports)]
|
||||
#![allow(unused_imports)]
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
// run-rustfix
|
||||
// compile-flags: --edition 2018
|
||||
// edition:2018
|
||||
#![warn(clippy::single_component_path_imports)]
|
||||
#![allow(unused_imports)]
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
// run-rustfix
|
||||
// compile-flags: --edition 2018
|
||||
// edition:2018
|
||||
|
||||
#![warn(clippy::use_self)]
|
||||
#![allow(dead_code)]
|
||||
|
@ -1,5 +1,5 @@
|
||||
// run-rustfix
|
||||
// compile-flags: --edition 2018
|
||||
// edition:2018
|
||||
|
||||
#![warn(clippy::use_self)]
|
||||
#![allow(dead_code)]
|
||||
|
Loading…
Reference in New Issue
Block a user