summary refs log tree commit diff
path: root/compiler/rustc_ast/src
AgeCommit message (Expand)AuthorLines
2020-12-22Rework beautify_doc_string so that it returns a Symbol instead of a StringGuillaume Gomez-35/+37
2020-12-17docs: Edit rustc_ast::token::Tokenpierwill-1/+1
2020-12-09Accept arbitrary expressions in key-value attributes at parse timeVadim Petrochenkov-30/+9
2020-12-01Add documentation for name_value_literal_span methodsGuillaume Gomez-0/+14
2020-12-01Improve some attributes error spansGuillaume Gomez-1/+3
2020-12-01Created NestedMetaItem::name_value_literal_span methodGuillaume Gomez-0/+15
2020-11-28Auto merge of #78296 - Aaron1011:fix/stmt-tokens, r=petrochenkovbors-14/+61
2020-11-27Auto merge of #79266 - b-naber:gat_trait_path_parser, r=petrochenkovbors-1/+8
2020-11-26Properly handle attributes on statementsAaron Hill-14/+61
2020-11-26Rollup merge of #79000 - sivadeilra:user/ardavis/lev_distance, r=wesleywiserJonas Schievink-169/+0
2020-11-25ast and parserb-naber-1/+8
2020-11-25Adjust pretty-print compat hack to work with item statementsAaron Hill-7/+14
2020-11-24Move lev_distance to rustc_ast, make non-genericArlie Davis-169/+0
2020-11-15Rollup merge of #79016 - fanzier:underscore-expressions, r=petrochenkovJonas Schievink-0/+5
2020-11-14Add underscore expressions for destructuring assignmentsFabian Zaiser-0/+5
2020-11-13Reserve space in advanceDániel Buga-1/+1
2020-11-12Rollup merge of #78836 - fanzier:struct-and-slice-destructuring, r=petrochenkovMara Bos-7/+24
2020-11-12Auto merge of #78782 - petrochenkov:nodoctok, r=Aaron1011bors-27/+37
2020-11-11Implement destructuring assignment for structs and slicesFabian Zaiser-7/+24
2020-11-10Changed unwrap_or to unwrap_or_else in some places.Nicholas-Baron-3/+3
2020-11-09Rollup merge of #78710 - petrochenkov:macvisit, r=davidtwcoDylan DPC-26/+18
2020-11-09Do not collect tokens for doc commentsVadim Petrochenkov-27/+37
2020-11-08Auto merge of #78712 - petrochenkov:visitok, r=Aaron1011bors-16/+35
2020-11-06The renumber pass is long goneest31-2/+2
2020-11-06rustc_ast: Never clone empty token streams in mutable visitorVadim Petrochenkov-1/+1
2020-11-06rustc_ast: Visit tokens stored in AST nodes in mutable visitorVadim Petrochenkov-15/+34
2020-11-04fix a couple of clippy warnings:Matthias Krüger-1/+1
2020-11-03rustc_ast: `visit_mac` -> `visit_mac_call`Vadim Petrochenkov-16/+16
2020-11-03rustc_ast: Do not panic by default when visiting macro callsVadim Petrochenkov-12/+4
2020-11-03Rollup merge of #78376 - Aaron1011:feature/consistent-empty-expr, r=petrochenkovYuki Okushi-0/+7
2020-11-03Expand `NtExpr` tokens only in key-value attributesVadim Petrochenkov-53/+94
2020-11-02Treat trailing semicolon as a statement in macro callAaron Hill-0/+7
2020-11-01Do not remove tokens before AST json serializationVadim Petrochenkov-2/+3
2020-10-31parser: Cleanup `LazyTokenStream` and avoid some clonesVadim Petrochenkov-43/+22
2020-10-27Auto merge of #77502 - varkor:const-generics-suggest-enclosing-braces, r=petr...bors-0/+16
2020-10-26Suggest expressions that look like const generic arguments should be enclosed...varkor-0/+16
2020-10-25Rollup merge of #78326 - Aaron1011:fix/min-stmt-lints, r=petrochenkovYuki Okushi-2/+4
2020-10-24Fix inconsistencies in handling of inert attributes on statementsAaron Hill-2/+4
2020-10-21Unconditionally capture tokens for attributes.Aaron Hill-3/+10
2020-10-21Auto merge of #77250 - Aaron1011:feature/flat-token-collection, r=petrochenkovbors-11/+83
2020-10-19Rewrite `collect_tokens` implementations to use a flattened bufferAaron Hill-11/+83
2020-10-19Avoid cloning the contents of a `TokenStream` in a few placesAaron Hill-5/+5
2020-10-18Auto merge of #78066 - bugadani:wat, r=jonas-schievinkbors-1/+1
2020-10-18No need to map the max_distanceDániel Buga-1/+1
2020-10-16Add check_generic_arg early passSantiago Pastorino-5/+12
2020-10-16Parse inline const expressionsSantiago Pastorino-0/+10
2020-10-15Rollup merge of #77739 - est31:remove_unused_code, r=petrochenkov,varkorYuki Okushi-64/+0
2020-10-14Remove unused code from rustc_astest31-64/+0
2020-10-11Add hack to keep `actix-web` and `actori-web` compilingAaron Hill-5/+16
2020-10-09address review commentsEsteban Küber-0/+10