Skip to content

Commit 045e265

Browse files
committed
Fix build warning on #[ignore] attrbute
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>
1 parent cea7c86 commit 045e265

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/cli-rustup.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ fn list_default_toolchain() {
686686
}
687687

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

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

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

794794
#[test]
795-
#[ignore(windows)] // FIXME Windows shows UNC paths
795+
#[ignore = "FIXME: Windows shows UNC paths"]
796796
fn show_toolchain_toolchain_file_override_not_installed() {
797797
setup(&|config| {
798798
expect_ok(config, &["rustup", "default", "stable"]);

0 commit comments

Comments
 (0)