From 913f7bdae744f88110eaca73fb28e4b8e987456c Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 15 Aug 2012 16:22:40 -0700 Subject: Modify pipec to not emit calls to some and none --- src/libsyntax/ext/pipes/pipec.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libsyntax/ext') diff --git a/src/libsyntax/ext/pipes/pipec.rs b/src/libsyntax/ext/pipes/pipec.rs index 5c5147741db..8bd0d3313d5 100644 --- a/src/libsyntax/ext/pipes/pipec.rs +++ b/src/libsyntax/ext/pipes/pipec.rs @@ -104,8 +104,8 @@ impl message: gen_send { } else { body += fmt!("if pipes::send(pipe, message) {\n \ - some(c) \ - } else { none } }"); + pipes::rt::make_some(c) \ + } else { pipes::rt::make_none() } }"); } let body = cx.parse_expr(body); @@ -163,8 +163,8 @@ impl message: gen_send { body += ~" }"; } else { body += fmt!("if pipes::send(pipe, message) { \ - some(()) \ - } else { none } }"); + pipes::rt::make_some(()) \ + } else { pipes::rt::make_none() } }"); } let body = cx.parse_expr(body); -- cgit 1.4.1-3-g733a5