Skip to content

Commit a580383

Browse files
committed
Auto merge of #119552 - krtab:dead_code_priv_mod_pub_field, r=cjgillot,saethlin
Replace visibility test with reachability test in dead code detection Fixes rust-lang/rust#119545 Also included is a fix for an error now flagged by the lint
2 parents 6cb60e2 + 9e0ade0 commit a580383

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/shims/unix/linux/fd/epoll.rs

+2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ pub struct Epoll {
2121
/// <https://man7.org/linux/man-pages/man2/epoll_ctl.2.html>
2222
#[derive(Clone, Debug)]
2323
pub struct EpollEvent {
24+
#[allow(dead_code)]
2425
pub events: u32,
2526
/// `Scalar<Provenance>` is used to represent the
2627
/// `epoll_data` type union.
28+
#[allow(dead_code)]
2729
pub data: Scalar<Provenance>,
2830
}
2931

0 commit comments

Comments
 (0)