@@ -312,18 +312,18 @@ mod test {
312312 @~"fn foo ( x : int) { x; } ",
313313 ~[ ] ,
314314 new_parse_sess ( None ) ) ;
315- check_equal ( to_json_str ( @tts as @ Encodable < std:: json:: Encoder > ) ,
316- ~"[ [ \" tt_tok\" , [ , [ \" IDENT \" , [ \" fn \" , false ] ] ] ] , \
317- [ \" tt_tok\" , [ , [ \" IDENT \" , [ \" foo\" , false ] ] ] ] , \
318- [ \" tt_delim\" , [ [ [ \" tt_tok\" , [ , [ \" LPAREN \" , [ ] ] ] ] , \
319- [ \" tt_tok\" , [ , [ \" IDENT \" , [ \" x\" , false ] ] ] ] , \
320- [ \" tt_tok\" , [ , [ \" COLON \" , [ ] ] ] ] , \
321- [ \" tt_tok\" , [ , [ \" IDENT \" , [ \" int\" , false ] ] ] ] , \
322- [ \" tt_tok\" , [ , [ \" RPAREN \" , [ ] ] ] ] ] ] ] , \
323- [ \" tt_delim\" , [ [ [ \" tt_tok\" , [ , [ \" LBRACE \" , [ ] ] ] ] , \
324- [ \" tt_tok\" , [ , [ \" IDENT \" , [ \" x\" , false ] ] ] ] , \
325- [ \" tt_tok\" , [ , [ \" SEMI \" , [ ] ] ] ] , \
326- [ \" tt_tok\" , [ , [ \" RBRACE \" , [ ] ] ] ] ] ] ] ] "
315+ check_equal ( to_json_str ( @tts as Encodable :: < std:: json:: Encoder > ) ,
316+ ~"[ [ \" tt_tok\" , [ null , [ \" IDENT \" , [ \" fn \" , false] ] ] ] , \
317+ [ \" tt_tok\" , [ null , [ \" IDENT \" , [ \" foo \" , false] ] ] ] , \
318+ [ \" tt_delim\" , [ [ [ \" tt_tok\" , [ null , [ \" LPAREN \" , [ ] ] ] ] , \
319+ [ \" tt_tok\" , [ null , [ \" IDENT \" , [ \" x \" , false] ] ] ] , \
320+ [ \" tt_tok\" , [ null , [ \" COLON \" , [ ] ] ] ] , \
321+ [ \" tt_tok\" , [ null , [ \" IDENT \" , [ \" int \" , false] ] ] ] , \
322+ [ \" tt_tok\" , [ null , [ \" RPAREN \" , [ ] ] ] ] ] ] ] , \
323+ [ \" tt_delim\" , [ [ [ \" tt_tok\" , [ null , [ \" LBRACE \" , [ ] ] ] ] , \
324+ [ \" tt_tok\" , [ null , [ \" IDENT \" , [ \" x\" , false ] ] ] ] , \
325+ [ \" tt_tok\" , [ null , [ \" SEMI \" , [ ] ] ] ] , \
326+ [ \" tt_tok\" , [ null , [ \" RBRACE \" , [ ] ] ] ] ] ] ] ] "
327327 ) ;
328328 let ast1 = new_parser_from_tts ( new_parse_sess ( None ) , ~[ ] , tts)
329329 . parse_item ( ~[ ] ) ;
0 commit comments