Skip to content

Commit 8939dfc

Browse files
committed
Auto merge of rust-lang#116033 - bvanjoi:fix-116032, r=petrochenkov
report `unused_import` for empty reexports even it is pub Fixes rust-lang#116032 An easy fix. r? `@petrochenkov` (Discovered this issue while reviewing rust-lang#115993.)
2 parents 0c25d06 + 3848261 commit 8939dfc

File tree

8 files changed

+4
-6
lines changed

8 files changed

+4
-6
lines changed

core/src/arch.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#![doc = include_str!("../../stdarch/crates/core_arch/src/core_arch_docs.md")]
22

3+
#[allow(unused_imports)]
34
#[stable(feature = "simd_arch", since = "1.27.0")]
45
pub use crate::core_arch::arch::*;
56

core/tests/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,6 @@
120120
#![deny(unsafe_op_in_unsafe_fn)]
121121
#![deny(fuzzy_provenance_casts)]
122122

123-
extern crate test;
124-
125123
mod alloc;
126124
mod any;
127125
mod array;

core/tests/num/flt2dec/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ use core::num::flt2dec::{
88
};
99
use core::num::fmt::{Formatted, Part};
1010

11-
pub use test::Bencher;
12-
1311
mod estimator;
1412
mod strategy {
1513
mod dragon;

portable-simd/crates/core_simd/src/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,5 @@ pub mod simd {
3535
pub use crate::core_simd::masks::*;
3636
pub use crate::core_simd::ord::*;
3737
pub use crate::core_simd::swizzle::*;
38-
pub use crate::core_simd::swizzle_dyn::*;
3938
pub use crate::core_simd::vector::*;
4039
}

std/src/sys/common/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
pub mod alloc;
1414
pub mod small_c_string;
15+
#[allow(unused_imports)]
1516
pub mod thread_local;
1617

1718
#[cfg(test)]

std/src/sys/unix/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ pub unsafe fn cleanup() {
241241

242242
#[cfg(target_os = "android")]
243243
pub use crate::sys::android::signal;
244+
#[allow(unused_imports)]
244245
#[cfg(not(target_os = "android"))]
245246
pub use libc::signal;
246247

std/src/sys/unix/process/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
pub use self::process_common::{Command, CommandArgs, ExitCode, Stdio, StdioPipes};
22
pub use self::process_inner::{ExitStatus, ExitStatusError, Process};
33
pub use crate::ffi::OsString as EnvKey;
4-
pub use crate::sys_common::process::CommandEnvs;
54

65
#[cfg_attr(any(target_os = "espidf", target_os = "horizon"), allow(unused))]
76
mod process_common;

std/src/sys/unix/process/process_common.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ cfg_if::cfg_if! {
7575
return 0;
7676
}
7777
} else {
78+
#[allow(unused_imports)]
7879
pub use libc::{sigemptyset, sigaddset};
7980
}
8081
}

0 commit comments

Comments
 (0)