Skip to content

Commit 5d7b2d9

Browse files
committed
Disable the ScmTimestamp doc test on 32-bit musl
Because this platform has very unique behavior. It can be worked around, but our doc test does not include that workaround. #2698
1 parent aadefd8 commit 5d7b2d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sys/socket/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,9 @@ pub enum ControlMessageOwned {
772772
///
773773
/// # Examples
774774
///
775-
/// ```
775+
#[cfg_attr(all(target_env = "musl", target_pointer_width = "32"), doc = "See <https://github.com/nix-rust/nix/issues/2698> for notes regarding 32-bit musl")]
776+
#[cfg_attr(all(target_env = "musl", target_pointer_width = "32"), doc = "```no_run")]
777+
#[cfg_attr(any(not(target_env = "musl"), target_pointer_width = "64"), doc="```")]
776778
/// # #[macro_use] extern crate nix;
777779
/// # use nix::sys::socket::*;
778780
/// # use nix::sys::time::*;

0 commit comments

Comments
 (0)