Skip to content

Commit eebc699

Browse files
committed
Update lint group names
Fixes usage on a nightly after rust-lang/rust#50620
1 parent df678eb commit eebc699

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cargo-fix/src/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ pub fn run() -> Result<(), Error> {
8989
if let Some("2018") = matches.value_of("edition") {
9090
info!("edition upgrade!");
9191
let mut rustc_flags = env::var_os("RUSTFLAGS").unwrap_or_else(|| "".into());
92-
rustc_flags.push("-W rust-2018-breakage");
92+
rustc_flags.push("-W rust_2018_compatibility");
9393
cmd.env("RUSTFLAGS", &rustc_flags);
9494
}
9595

cargo-fix/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ fn rustfix_crate(rustc: &Path, filename: &str) -> Result<FixedCrate, Error> {
197197
.iter()
198198
.all(|s| s.file_name == file_name && s.line_range == range)
199199
{
200-
trace!("rejecting as it spans mutliple files {:?}", suggestion);
200+
trace!("rejecting as it spans multiple files {:?}", suggestion);
201201
continue;
202202
}
203203

cargo-fix/tests/all/edition_upgrade.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ fn upgrade_extern_crate() {
131131
.file(
132132
"src/lib.rs",
133133
r#"
134-
#![warn(rust_2018_migration)]
134+
#![warn(rust_2018_idioms)]
135135
136136
extern crate bar;
137137

0 commit comments

Comments
 (0)