Skip to content

Commit 3867299

Browse files
committed
FreeBSD: hide ucontext from docs to fix xdoc build
Why does it try to document the cfg'd out struct? + cargo xdoc --target i686-unknown-freebsd --no-default-features --features extra_traits error[E0412]: cannot find type `ucontext_t` in this scope --> src/unix/bsd/freebsdlike/freebsd/mod.rs:166:16 | 166 | pub struct ucontext_t { | ^^^^^^^^^^ not found in this scope
1 parent 08041c9 commit 3867299

File tree

1 file changed

+1
-0
lines changed
  • src/unix/bsd/freebsdlike/freebsd

1 file changed

+1
-0
lines changed

src/unix/bsd/freebsdlike/freebsd/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ s_no_extra_traits! {
163163

164164
#[cfg_attr(feature = "extra_traits", derive(Debug))]
165165
#[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))]
166+
#[doc(hidden)] // rustdoc tries to generate for i686, can't find it
166167
pub struct ucontext_t {
167168
pub uc_sigmask: ::sigset_t,
168169
pub uc_mcontext: ::mcontext_t,

0 commit comments

Comments
 (0)