Skip to content

Commit

Permalink
Auto merge of #119552 - krtab:dead_code_priv_mod_pub_field, r=cjgillo…
Browse files Browse the repository at this point in the history
…t,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
  • Loading branch information
bors committed Mar 23, 2024
2 parents 6cb60e2 + 9e0ade0 commit a580383
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/shims/unix/linux/fd/epoll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ pub struct Epoll {
/// <https://man7.org/linux/man-pages/man2/epoll_ctl.2.html>
#[derive(Clone, Debug)]
pub struct EpollEvent {
#[allow(dead_code)]
pub events: u32,
/// `Scalar<Provenance>` is used to represent the
/// `epoll_data` type union.
#[allow(dead_code)]
pub data: Scalar<Provenance>,
}

Expand Down

0 comments on commit a580383

Please sign in to comment.