about summary refs log tree commit diff
path: root/src/test/ui/ast-json
AgeCommit message (Collapse)AuthorLines
2020-05-25Only capture tokens for items with outer attributesAaron Hill-2/+2
Suggested by @petrochenkov in https://github.com/rust-lang/rust/issues/43081#issuecomment-633389225
2020-05-22Rewrite `Parser::collect_tokens`Aaron Hill-2/+2
The previous implementation did not work when called on an opening delimiter, or when called re-entrantly from the same `TokenCursor` stack depth.
2020-04-19check '-Zast-json' & '-Zast-json-noexpand' to output legal JSONJOE1994-2/+14
2020-03-26Update tests to use llvm_asm!Amanieu d'Antras-2/+2
2020-02-15Record proc macro harness order for use during metadata deserializationAaron Hill-1/+1
Fixes #68690 When we generate the proc macro harness, we now explicitly recorder the order in which we generate entries. We then use this ordering data to deserialize the correct proc-macro-data from the crate metadata.
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.