summary refs log tree commit diff
path: root/src/test/ui/ast-json
AgeCommit message (Collapse)AuthorLines
2019-11-11syntactically allow visibility on trait item & enum variantMazdak Farrokhzad-1/+1
2019-10-21Derive `Rustc{En,De}codable` for `TokenStream`.Nicholas Nethercote-1/+1
`TokenStream` used to be a complex type, but it is now just a newtype around a `Lrc<Vec<TreeAndJoint>>`. Currently it uses custom encoding that discards the `IsJoint` and custom decoding that adds `NonJoint` back in for every token tree. This requires building intermediate `Vec<TokenTree>`s. This commit makes `TokenStream` derive `Rustc{En,De}codable`. This simplifies the code, and avoids the creation of the intermediate vectors, saving up to 3% on various benchmarks. It also changes the AST JSON output in one test.
2019-09-26Fix AST JSON output testvarkor-1/+1
2019-08-27Add default serialization for `Ident`sMatthew Jasper-0/+51
Add tests for -Zast-json and -Zast-json-noexpand, which need this impl.