Skip to content

Commit 9862cf7

Browse files
committed
More cases of [cfg(test)] instead of [test].
1 parent a636f51 commit 9862cf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/parse/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ mod test {
418418
new_parser_from_source_str(ps,~[],~"bogofile",source_str)
419419
}
420420

421-
#[test] fn to_json_str<E : Encodable<std::json::Encoder>>(val: @E) -> ~str {
421+
#[cfg(test)] fn to_json_str<E : Encodable<std::json::Encoder>>(val: @E) -> ~str {
422422
do io::with_str_writer |writer| {
423423
val.encode(~std::json::Encoder(writer));
424424
}

0 commit comments

Comments
 (0)