Skip to content

Commit 515847d

Browse files
committed
Use edition:2018 flag more widely
1 parent 16b925b commit 515847d

8 files changed

+8
-8
lines changed

tests/ui/doc_errors.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: --edition 2018
1+
// edition:2018
22
#![warn(clippy::missing_errors_doc)]
33

44
use std::io;

tests/ui/issue_4266.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: --edition 2018
1+
// edition:2018
22
#![allow(dead_code)]
33

44
async fn sink1<'a>(_: &'a str) {} // lint

tests/ui/macro_use_imports.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: --edition 2018
1+
// edition:2018
22
#![warn(clippy::macro_use_imports)]
33

44
use std::collections::HashMap;

tests/ui/methods.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// aux-build:option_helpers.rs
2-
// compile-flags: --edition 2018
2+
// edition:2018
33

44
#![warn(clippy::all, clippy::pedantic)]
55
#![allow(

tests/ui/single_component_path_imports.fixed

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// run-rustfix
2-
// compile-flags: --edition 2018
2+
// edition:2018
33
#![warn(clippy::single_component_path_imports)]
44
#![allow(unused_imports)]
55

tests/ui/single_component_path_imports.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// run-rustfix
2-
// compile-flags: --edition 2018
2+
// edition:2018
33
#![warn(clippy::single_component_path_imports)]
44
#![allow(unused_imports)]
55

tests/ui/use_self.fixed

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// run-rustfix
2-
// compile-flags: --edition 2018
2+
// edition:2018
33

44
#![warn(clippy::use_self)]
55
#![allow(dead_code)]

tests/ui/use_self.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// run-rustfix
2-
// compile-flags: --edition 2018
2+
// edition:2018
33

44
#![warn(clippy::use_self)]
55
#![allow(dead_code)]

0 commit comments

Comments
 (0)