Skip to content

Commit 2dc923a

Browse files
authored
Rollup merge of rust-lang#104419 - Ayush1325:test-issue-30490, r=lcnr
Fix test/ui/issues/issue-30490.rs Since the empty main is used for `not(unix)`, all the targets that will use this empty main will also need `allow(unused_imports)`. Originally part of rust-lang#100316 Signed-off-by: Ayush Singh <ayushsingh1325@gmail.com>
2 parents b2d162d + 55746a4 commit 2dc923a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/ui/issues/issue-30490.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// This test checks to avoid that regression.
1111

1212
#![cfg_attr(unix, feature(rustc_private))]
13-
#![cfg_attr(windows, allow(unused_imports))]
13+
#![cfg_attr(not(unix), allow(unused_imports))]
1414

1515
#[cfg(unix)]
1616
extern crate libc;

0 commit comments

Comments
 (0)