We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a636f51 commit 9862cf7Copy full SHA for 9862cf7
src/libsyntax/parse/mod.rs
@@ -418,7 +418,7 @@ mod test {
418
new_parser_from_source_str(ps,~[],~"bogofile",source_str)
419
}
420
421
- #[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 {
422
do io::with_str_writer |writer| {
423
val.encode(~std::json::Encoder(writer));
424
0 commit comments