Skip to content

Commit b4909f6

Browse files
committed
Fix rustdoc
1 parent d9eac5d commit b4909f6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/librustdoc/flock.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ mod imp {
8484
pub static F_SETLKW: libc::c_int = 9;
8585
}
8686

87-
#[cfg(target_os = "macos")]
88-
#[cfg(target_os = "ios")]
87+
#[cfg(any(target_os = "macos", target_os = "ios"))]
8988
mod os {
9089
use libc;
9190

src/librustdoc/plugins.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ fn libname(mut n: String) -> String {
8585
n
8686
}
8787

88-
#[cfg(not(target_os="windows"), not(target_os="macos"))]
88+
#[cfg(all(not(target_os="windows"), not(target_os="macos")))]
8989
fn libname(n: String) -> String {
9090
let mut i = String::from_str("lib");
9191
i.push_str(n.as_slice());

0 commit comments

Comments
 (0)