Skip to content

Commit

Permalink
Fix build warning on #[ignore] attrbute
Browse files Browse the repository at this point in the history
The full warning:

    warning: attribute must be of the form `#[ignore]` or `#[ignore = "reason"]`
    = note: #[warn(ill_formed_attribute_input)] on by default
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #57571 <rust-lang/rust#57571>
  • Loading branch information
tesuji committed Apr 13, 2019
1 parent cea7c86 commit 045e265
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/cli-rustup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ fn list_default_toolchain() {
}

#[test]
#[ignore(windows)] // FIXME Windows shows UNC paths
#[ignore = "FIXME: Windows shows UNC paths"]
fn show_toolchain_override() {
setup(&|config| {
let cwd = config.current_dir();
Expand All @@ -709,7 +709,7 @@ nightly-{0} (directory override for '{1}')
}

#[test]
#[ignore(windows)] // FIXME Windows shows UNC paths
#[ignore = "FIXME: Windows shows UNC paths"]
fn show_toolchain_toolchain_file_override() {
setup(&|config| {
expect_ok(config, &["rustup", "default", "stable"]);
Expand Down Expand Up @@ -748,7 +748,7 @@ nightly-{0} (overridden by '{1}')
}

#[test]
#[ignore(windows)] // FIXME Windows shows UNC paths
#[ignore = "FIXME: Windows shows UNC paths"]
fn show_toolchain_version_nested_file_override() {
setup(&|config| {
expect_ok(config, &["rustup", "default", "stable"]);
Expand Down Expand Up @@ -792,7 +792,7 @@ nightly-{0} (overridden by '{1}')
}

#[test]
#[ignore(windows)] // FIXME Windows shows UNC paths
#[ignore = "FIXME: Windows shows UNC paths"]
fn show_toolchain_toolchain_file_override_not_installed() {
setup(&|config| {
expect_ok(config, &["rustup", "default", "stable"]);
Expand Down

0 comments on commit 045e265

Please sign in to comment.