]> git.lizzy.rs Git - rust.git/commitdiff
More cases of [cfg(test)] instead of [test].
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Thu, 2 May 2013 06:50:19 +0000 (08:50 +0200)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Thu, 2 May 2013 06:55:08 +0000 (08:55 +0200)
src/libsyntax/parse/mod.rs

index 74e4f562ce5c53fc08431859030f0434b9dd54f9..4f1d41a4a7a171ed9c09759d8776ca3461a62389 100644 (file)
@@ -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<E : Encodable<std::json::Encoder>>(val: @E) -> ~str {
+    #[cfg(test)] fn to_json_str<E : Encodable<std::json::Encoder>>(val: @E) -> ~str {
         do io::with_str_writer |writer| {
             val.encode(~std::json::Encoder(writer));
         }