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

Commit

Permalink
Let's not disable lints
Browse files Browse the repository at this point in the history
  • Loading branch information
killercup committed May 10, 2018
1 parent cd641cd commit a956e9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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 -A unused -A nonstandard-style -A bad-style");
rustc_flags.push("-W rust-2018-breakage");
cmd.env("RUSTFLAGS", &rustc_flags);
}

Expand Down
3 changes: 2 additions & 1 deletion cargo-fix/tests/all/edition_upgrade.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ fn prepare_for_2018() {
.file(
"src/lib.rs",
r#"
#![feature(rust_2018_preview )]
#![allow(unused)]
#![feature(rust_2018_preview)]
mod foo {
pub const FOO: &str = "fooo";
Expand Down

0 comments on commit a956e9e

Please sign in to comment.