about summary refs log tree commit diff
path: root/compiler/rustc_expand/src/lib.rs
AgeCommit message (Collapse)AuthorLines
2021-09-08Bump stage0 compiler to 1.56Mark Rousskov-2/+0
2021-09-02expand: Treat more macro calls as statement macro callsVadim Petrochenkov-0/+1
2021-08-25Various pattern cleanupsLéo Lanteri Thauvin-0/+1
2021-08-25Use if-let guards in the codebaseLéo Lanteri Thauvin-0/+2
2021-08-12Revert "Rollup merge of #87779 - Aaron1011:stmt-ast-id, r=petrochenkov"Aaron Hill-1/+0
Fixes #87877 This change interacts badly with `noop_flat_map_stmt`, which synthesizes multiple statements with the same `NodeId`. I'm working on a better fix that will still allow us to remove this special case. For now, let's revert the change to fix the ICE. This reverts commit a4262cc9841d91d48ef994b36eab323e615a7083, reversing changes made to 8ee962f88e1be7e29482b13c7776c26b98a93bf7.
2021-08-06Remove special case for statement `NodeId` assignmentAaron Hill-0/+1
We now let `noop_flat_map_stmt` assign `NodeId`s (via `visit_id`), just as we do for other AST nodes.
2021-06-07Include macro name in 'local ambiguity' errorAaron Hill-0/+1
Currently, we only point at the span of the macro argument. When the macro call is itself generated by another macro, this can make it difficult or impossible to determine which macro is responsible for producing the error.
2021-05-31Remove unused feature gatesbjorn3-1/+0
2021-05-24remove cfg(bootstrap)Pietro Albini-1/+0
2021-03-26Use iter::zip in compiler/Josh Stone-0/+1
2021-03-19stabilize or_patternsmark-1/+1
2021-03-05expand: Introduce enum for module loading errors and make module loading ↵Vadim Petrochenkov-0/+1
speculative
2021-03-05rustc_interface: Hide some hacky details of early linting from expandVadim Petrochenkov-0/+1
2021-02-15Remove redundant bool_to_option feature gateest31-1/+0
2020-12-12Remove some no longer necessary `#[cfg(test)]`sVadim Petrochenkov-3/+0
With https://github.com/rust-lang/rust/pull/69838 inner modules are never touched in the outer module is unconfigured.
2020-09-17Remove redundant #![feature(...)] 's from compiler/est31-1/+0
2020-08-30Move lexer unit tests to rustc_lexerAleksey Kladov-5/+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/+57