about summary refs log tree commit diff
path: root/compiler/rustc_expand/src/parse
AgeCommit message (Collapse)AuthorLines
2021-07-08Rework SESSION_GLOBALS API to prevent overwriting itGuillaume Gomez-12/+12
2021-06-14Use the now available implementation of `IntoIterator` for arraysLeSeulArtichaut-1/+1
2021-02-18ast: Keep expansion status for out-of-line module itemsVadim Petrochenkov-2/+2
Also remove `ast::Mod` which is mostly redundant now
2021-01-20Force token collection to run when parsing nonterminalsAaron Hill-2/+3
Fixes #81007 Previously, we would fail to collect tokens in the proper place when only builtin attributes were present. As a result, we would end up with attribute tokens in the collected `TokenStream`, leading to duplication when we attempted to prepend the attributes from the AST node. We now explicitly track when token collection must be performed due to nomterminal parsing.
2020-08-30Move lexer unit tests to rustc_lexerAleksey Kladov-252/+0
StringReader is an intornal abstraction which at the moment changes a lot, so these unit tests cause quite a bit of friction. Moving them to rustc_lexer and more ingerated-testing style should make them much less annoying, hopefully without decreasing their usefulness much. Note that coloncolon tests are removed (it's unclear what those are testing). \r\n tests are removed as well, as we normalize line endings even before lexing.
2020-08-30mv compiler to compiler/mark-0/+600