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

Signed-off-by: Ayush Singh <ayushsingh1325@gmail.com>
This commit is contained in:
Matthias Krüger 2022-11-16 08:36:12 +01:00 committed by GitHub
commit 4ef422e2b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;