about summary refs log tree commit diff
path: root/src/libsyntax/ext
AgeCommit message (Collapse)AuthorLines
2016-04-16Rollup merge of #32945 - durka:rfc1494, r=pnkfelixManish Goregaokar-0/+1
implement RFC amendment 1494 Adds `:block` to the follow set for `:ty` and `:path`. See rust-lang/rfcs#1494.
2016-04-13implement RFC amendment 1494Alex Burka-0/+1
2016-04-13Fixes #32922, a macro hygiene bugJeffrey Seyfried-8/+9
2016-04-09Remove redundant call to `expand_item_multi_modifier`Jeffrey Seyfried-3/+1
2016-04-06Move span into `StructField`Vadim Petrochenkov-2/+3
2016-04-06Get rid of ast::StructFieldKindVadim Petrochenkov-1/+2
2016-03-25do not overwrite spans as eagerlyNiko Matsakis-6/+36
this was required to preserve the span from the #[structural_match] attribute -- but honestly I am not 100% sure if it makes sense.
2016-03-22try! -> ?Jorge Aparicio-2/+2
Automated conversion using the untry tool [1] and the following command: ``` $ find -name '*.rs' -type f | xargs untry ``` at the root of the Rust repo. [1]: https://github.com/japaric/untry
2016-03-15syntax: impl ToTokens for P<ast::ImplItem>Richo Healey-0/+6
2016-03-14Add `default` as contextual keyword, and parse it for impl items.Aaron Turon-0/+1
2016-03-09Auto merge of #31631 - jonas-schievink:agoraphobia, r=nrcbors-23/+25
[breaking-batch] Move more uses of `panictry!` out of libsyntax
2016-03-02Fix the search paths for macro-expanded non-inline modulesJeffrey Seyfried-3/+60
2016-02-18Remove unnecessary explicit lifetime bounds.Corey Farwell-11/+11
These explicit lifetimes can be ommitted because of lifetime elision rules. Instances were found using rust-clippy.
2016-02-16Add check on find_best_match_for_name and improve help message for undefined ↵ggomez-1/+6
macro
2016-02-16Move more uses of `panictry!` out of libsyntaxJonas Schievink-23/+25
[breaking-change] for syntax extensions
2016-02-13Split ast::PatKind::Enum into tuple struct and path patternsVadim Petrochenkov-1/+5
2016-02-13Rename ast::Pat_ and its variantsVadim Petrochenkov-24/+24
2016-02-12Use more autoderef in libsyntaxJonas Schievink-1/+1
2016-02-11Remove some unnecessary indirection from AST structuresVadim Petrochenkov-98/+101
2016-02-11[breaking-change] don't glob export ast::PathListItem_ variantsOliver 'ker' Schneider-1/+6
2016-02-11[breaking-change] don't glob export ast::StrStyle variantsOliver 'ker' Schneider-2/+2
2016-02-11[breaking-change] don't glob export ast::Visibility variantsOliver 'ker' Schneider-3/+3
2016-02-11[breaking-change] don't glob export ast::TraitItemKind variantsOliver 'ker' Schneider-3/+3
2016-02-11[breaking-change] don't glob export ast::Mutablity variantsOliver 'ker' Schneider-5/+8
2016-02-11[breaking-change] don't glob export ast::MetaItem_Oliver 'ker' Schneider-4/+4
2016-02-11[breaking-change] don't glob export ast::MacStmtStyleOliver 'ker' Schneider-1/+1
2016-02-11[breaking-change] don't glob export ast::KleeneOp variantsOliver 'ker' Schneider-12/+14
2016-02-11[breaking-change] don't glob export ast::Item_ variantsOliver 'ker' Schneider-23/+23
2016-02-11[breaking-change] don't pub export ast::Stmt_ variantsOliver Schneider-14/+13
2016-02-11[breaking-change] don't pub export ast::IntLitType variantsOliver Schneider-6/+6
2016-02-11[breaking-change] don't pub export ast::Lit_ variantsOliver Schneider-19/+20
2016-02-11[breaking-change] don't pub export ast::Ty_ variantsOliver Schneider-10/+10
2016-02-11[breaking-change] remove the sign from integer literals in the astOliver Schneider-5/+28
2016-02-11[breaking-change] don't glob export ast::{UintTy, IntTy} variantsOliver Schneider-15/+15
2016-02-11[breaking-change] don't glob export ast::Expr_ variantsOliver Schneider-50/+50
2016-02-11[breaking-change] don't glob export ast::Decl_ variantsOliver Schneider-6/+6
2016-02-11[breaking-change] don't glob export ast::CaptureClause variantsOliver Schneider-2/+2
2016-02-11[breaking-change] don't glob import/export syntax::abi enum variantsOliver Schneider-2/+2
2016-02-11[breaking-change] don't glob export ast::BlockCheckMode variantsOliver Schneider-4/+2
2016-02-11[breaking-change] don't glob import ast::FunctionRetTy variantsOliver Schneider-1/+1
2016-02-11[breaking-change] don't glob export ast::BinOp_Oliver Schneider-2/+2
2016-02-11[breaking-change] don't glob export ast::UnOp variantsOliver Schneider-1/+2
2016-01-27trpl: fix macro follow setsAlex Burka-0/+1
2016-01-26Rollup merge of #31152 - durka:ty-follow-bracket, r=pnkfelixManish Goregaokar-1/+1
cc #31135 rust-lang/rfcs#1462 #30923 @retep998 r? @pnkfelix
2016-01-23add `[` to FOLLOW(ty) and FOLLOW(path)Alex Burka-1/+1
Following RFC 1462 (amending 550). Closes #31135.
2016-01-22The war on abort_if_errorsNick Cameron-1/+6
2016-01-07extending FOLLOW(NT) as specified in amendment.Felix S. Klock II-4/+7
See RFC amendment 1384: https://github.com/rust-lang/rfcs/pull/1384
2016-01-07macro_rules: proper FIRST/FOLLOW computations for checking macro_rules validity.Felix S. Klock II-16/+500
See RFC amendment 1384 and tracking issue 30450: https://github.com/rust-lang/rfcs/pull/1384 https://github.com/rust-lang/rust/issues/30450 Moved old check_matcher code into check_matcher_old combined the two checks to enable a warning cycle (where we will continue to error if the two checks agree to reject, accept if the new check says accept, and warn if the old check accepts but the new check rejects).
2016-01-06Auto merge of #30654 - nrc:panictry, r=brsonbors-6/+6
The motivation (other than removing boilerplate) is that this is a baby step towards a parser with error recovery. [breaking-change] if you use any of the changed functions, you'll need to remove a try! or panictry!
2016-01-04Add test for "malformed macro lhs" and change back span_bug to span_fatalGuillaume Gomez-2/+2