about summary refs log tree commit diff
path: root/src/libsyntax_ext/test_harness.rs
AgeCommit message (Collapse)AuthorLines
2019-09-28Put panic=abort test support behind -Z panic_abort_testsTyler Mandry-0/+16
2019-09-28Spawn one subprocess per unit test when panic=abortTyler Mandry-2/+12
2019-09-26Rename `Item.node` to `Item.kind`varkor-5/+5
2019-09-15Give more `Idents` spansMatthew Jasper-1/+1
2019-09-15Avoid some unnecessary `&str` to `Ident` conversionsMatthew Jasper-1/+1
2019-09-05Document test harness generationMatthew Jasper-27/+55
Also ensure that we're consistently using the def-site span when appropriate.
2019-09-05Add `with_{def_site,call_site,legacy}_ctxt,` methods to `Span`Vadim Petrochenkov-4/+6
Use these to create call-site spans for AST passes when needed.
2019-09-05Make use of hygiene in AST passesMatthew Jasper-129/+46
2019-08-15hygiene: `ExpnInfo` -> `ExpnData`Vadim Petrochenkov-2/+2
For naming consistency with everything else in this area
2019-08-15hygiene: Merge `ExpnInfo` and `InternalExpnData`Vadim Petrochenkov-3/+2
2019-08-15`Ident::with_empty_ctxt` -> `Ident::with_dummy_span`Vadim Petrochenkov-3/+3
`Ident` has had a full span rather than just a `SyntaxContext` for a long time now.
2019-08-14expand: Unimplement `MutVisitor` on `MacroExpander`Vadim Petrochenkov-12/+15
Each call to `fully_expand_fragment` is something unique, interesting, and requiring attention. It represents a "root" of expansion and its use means that something unusual is happening, like eager expansion or expansion performed outside of the primary expansion pass. So, it shouldn't be hide under a generic visitor call. Also, from all the implemented visitor methods only two were actually used.
2019-08-05Drop span argument from mk_list_itemMark Rousskov-2/+1
2019-07-31Replace AstBuilder with inherent methodsMark Rousskov-1/+0
2019-07-31Remove span argument from mk_attr_{inner,outer}Mark Rousskov-2/+1
Always the same as the passed MetaItem
2019-07-31Remove Span argument from ExtCtxt::attributeMark Rousskov-1/+1
MetaItem.span was always equivalent
2019-07-31Remove AttrId from Attribute constructorsMark Rousskov-1/+0
2019-07-27syntax_ext: `proc_macro_decls` -> `proc_macro_harness`Vadim Petrochenkov-6/+8
Few other minor renamings for consistency. Remove one unused dependency from `rustc_passes`. Fix libsyntax tests. Fix rebase.
2019-07-27Move test harness generation into libsyntax_extVadim Petrochenkov-0/+392