From: Felix S. Klock II Date: Thu, 2 May 2013 06:50:19 +0000 (+0200) Subject: More cases of [cfg(test)] instead of [test]. X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=9862cf703b8a867b13e674f892f7059b09fe59e0;p=rust.git More cases of [cfg(test)] instead of [test]. --- diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs index 74e4f562ce5..4f1d41a4a7a 100644 --- a/src/libsyntax/parse/mod.rs +++ b/src/libsyntax/parse/mod.rs @@ -418,7 +418,7 @@ fn string_to_parser(source_str: @~str) -> Parser { new_parser_from_source_str(ps,~[],~"bogofile",source_str) } - #[test] fn to_json_str>(val: @E) -> ~str { + #[cfg(test)] fn to_json_str>(val: @E) -> ~str { do io::with_str_writer |writer| { val.encode(~std::json::Encoder(writer)); }