summaryrefslogtreecommitdiffstats
path: root/third_party/rust/xfailure/src
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/rust/xfailure/src')
-rw-r--r--third_party/rust/xfailure/src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/third_party/rust/xfailure/src/lib.rs b/third_party/rust/xfailure/src/lib.rs
new file mode 100644
index 0000000000..4676c69685
--- /dev/null
+++ b/third_party/rust/xfailure/src/lib.rs
@@ -0,0 +1,2 @@
+#[macro_export]
+macro_rules! xbail { ($e:expr) => (Err($e)?); }