From 6dbd706906d922ae5606eb5654dd804095ffc8c8 Mon Sep 17 00:00:00 2001 From: est31 Date: Tue, 16 May 2017 08:53:02 +0200 Subject: [PATCH] put option_try macro def under #[cfg(unix)] --- src/librustc/util/common.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/librustc/util/common.rs b/src/librustc/util/common.rs index 7b5e2253109aa..17564671a1e36 100644 --- a/src/librustc/util/common.rs +++ b/src/librustc/util/common.rs @@ -116,6 +116,7 @@ pub fn record_time(accu: &Cell, f: F) -> T where } // Like std::macros::try!, but for Option<>. +#[cfg(unix)] macro_rules! option_try( ($e:expr) => (match $e { Some(e) => e, None => return None }) );