Skip to content
This repository was archived by the owner on Nov 24, 2023. It is now read-only.

Update lint group names #102

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cargo-fix/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ pub fn run() -> Result<(), Error> {
if let Some("2018") = matches.value_of("edition") {
info!("edition upgrade!");
let mut rustc_flags = env::var_os("RUSTFLAGS").unwrap_or_else(|| "".into());
rustc_flags.push("-W rust-2018-breakage");
rustc_flags.push("-W rust_2018_compatibility");
cmd.env("RUSTFLAGS", &rustc_flags);
}

Expand Down
2 changes: 1 addition & 1 deletion cargo-fix/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ fn rustfix_crate(rustc: &Path, filename: &str) -> Result<FixedCrate, Error> {
.iter()
.all(|s| s.file_name == file_name && s.line_range == range)
{
trace!("rejecting as it spans mutliple files {:?}", suggestion);
trace!("rejecting as it spans multiple files {:?}", suggestion);
continue;
}

Expand Down
2 changes: 1 addition & 1 deletion cargo-fix/tests/all/edition_upgrade.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ fn upgrade_extern_crate() {
.file(
"src/lib.rs",
r#"
#![warn(rust_2018_migration)]
#![warn(rust_2018_idioms)]

extern crate bar;

Expand Down