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 https://github.com/rust-lang/rust/pull/100316

Signed-off-by: Ayush Singh <ayushsingh1325@gmail.com>
This commit is contained in:
Ayush Singh 2022-11-14 23:52:41 +05:30
parent 742d3f02c2
commit 55746a4479
No known key found for this signature in database
GPG Key ID: 05CEF5C789E55A74

View File

@ -10,7 +10,7 @@
// This test checks to avoid that regression.
#![cfg_attr(unix, feature(rustc_private))]
#![cfg_attr(windows, allow(unused_imports))]
#![cfg_attr(not(unix), allow(unused_imports))]
#[cfg(unix)]
extern crate libc;