about summary refs log tree commit diff
path: root/src/libsyntax/ast.rs
AgeCommit message (Collapse)AuthorLines
2016-02-16Move more uses of `panictry!` out of libsyntaxJonas Schievink-1/+1
[breaking-change] for syntax extensions
2016-02-16Split PatKind::Enum into PatKind::TupleStruct and PatKind::PathVadim Petrochenkov-1/+1
2016-02-13Split ast::PatKind::Enum into tuple struct and path patternsVadim Petrochenkov-10/+16
2016-02-13Rename ast::Pat_ and its variantsVadim Petrochenkov-19/+18
2016-02-11Remove some unnecessary indirection from AST structuresVadim Petrochenkov-7/+7
2016-02-11[breaking-change] don't glob export ast::PathListItem_ variantsOliver 'ker' Schneider-10/+9
2016-02-11[breaking-change] don't glob export ast::StrStyle variantsOliver 'ker' Schneider-3/+2
2016-02-11[breaking-change] don't glob export ast::Visibility variantsOliver 'ker' Schneider-3/+2
2016-02-11[breaking-change] don't glob export ast::TraitItemKind variantsOliver 'ker' Schneider-6/+5
2016-02-11[breaking-change] don't glob export ast::Mutablity variantsOliver 'ker' Schneider-3/+2
2016-02-11[breaking-change] don't glob export ast::MetaItem_Oliver 'ker' Schneider-15/+15
2016-02-11[breaking-change] don't glob export ast::MacStmtStyleOliver 'ker' Schneider-4/+3
2016-02-11[breaking-change] don't glob export ast::KleeneOp variantsOliver 'ker' Schneider-1/+0
2016-02-11[breaking-change] don't glob export ast::Item_ variantsOliver 'ker' Schneider-33/+32
2016-02-11[breaking-change] don't glob export ast::ForeignItem_ variantsOliver 'ker' Schneider-8/+7
2016-02-11[breaking-change] don't pub export ast::Stmt_ variantsOliver Schneider-17/+16
2016-02-11[breaking-change] don't pub export ast::IntLitType variantsOliver Schneider-4/+3
2016-02-11[breaking-change] don't pub export ast::Lit_ variantsOliver Schneider-13/+12
2016-02-11[breaking-change] don't pub export ast::Ty_ variantsOliver Schneider-18/+17
2016-02-11[breaking-change] remove unused enum ast::PrimTyOliver Schneider-12/+0
2016-02-11[breaking-change] remove the sign from integer literals in the astOliver Schneider-28/+2
2016-02-11[breaking-change] don't glob export ast::{UintTy, IntTy} variantsOliver Schneider-40/+38
2016-02-11[breaking-change] don't glob export ast::FloatTy variantsOliver Schneider-7/+6
2016-02-11[breaking-change] don't glob export ast::Expr_ variantsOliver Schneider-40/+39
2016-02-11[breaking-change] don't glob export ast::ExplicitSelf_ variantsOliver Schneider-7/+6
2016-02-11[breaking-change] don't glob export ast::Decl_ variantsOliver Schneider-7/+6
2016-02-11[breaking-change] don't glob export ast::CaptureClause variantsOliver Schneider-5/+5
2016-02-11[breaking-change] don't glob export ast::BlockCheckMode variantsOliver Schneider-3/+2
2016-02-11[breaking-change] don't glob import ast::FunctionRetTy variantsOliver Schneider-7/+6
2016-02-11[breaking-change] don't glob export ast::BinOp_Oliver Schneider-46/+47
2016-02-11[breaking-change] don't glob export ast::UnOp variantsOliver Schneider-8/+7
2016-02-03Rollup merge of #27499 - barosl:macro-doc-raw-str-hashes, r=nikomatsakisManish Goregaokar-1/+15
Any documentation comments that contain raw-string-looking sequences may pretty-print invalid code when expanding them, as the current logic always uses the `r"literal"` form, without appending any `#`s. This commit calculates the minimum number of `#`s required to wrap a comment correctly and appends `#`s appropriately. Fixes #27489.
2016-02-01Comment fixReeze Xia-3/+3
2016-01-19Use different numbers of `#`s when expanding documentation commentsBarosl Lee-1/+15
Any documentation comments that contain raw-string-looking sequences may pretty-print invalid code when expanding them, as the current logic always uses the `r"literal"` form, without appending any `#`s. This commit calculates the minimum number of `#`s required to wrap a comment correctly and appends `#`s appropriately. Fixes #27489.
2016-01-02Grammar fixesJames Mantooth-5/+5
2015-12-22Stop re-exporting PathParameters's variants.Ms2ger-15/+15
2015-12-21Auto merge of #30460 - Ms2ger:BindingMode, r=alexcrichtonbors-4/+3
2015-12-20Stop re-exporting the ast::BindingMode variants.Ms2ger-4/+3
2015-12-19Auto merge of #30184 - petrochenkov:ascr, r=nikomatsakisbors-0/+1
This PR is a rebase of the original PR by @eddyb https://github.com/rust-lang/rust/pull/21836 with some unrebasable parts manually reapplied, feature gate added + type equality restriction added as described below. This implementation is partial because the type equality restriction is applied to all type ascription expressions and not only those in lvalue contexts. Thus, all difficulties with detection of these contexts and translation of coercions having effect in runtime are avoided. So, you can't write things with coercions like `let slice = &[1, 2, 3]: &[u8];`. It obviously makes type ascription less useful than it should be, but it's still much more useful than not having type ascription at all. In particular, things like `let v = something.iter().collect(): Vec<_>;` and `let u = t.into(): U;` work as expected and I'm pretty happy with these improvements alone. Part of https://github.com/rust-lang/rust/issues/23416
2015-12-18Deprecate name `OwnedSlice` and don't use itVadim Petrochenkov-9/+8
2015-12-17Remove unused importsJeffrey Seyfried-1/+1
2015-12-16Implement type ascription.Eduard Burtescu-0/+1
2015-12-14[breaking-change] move ast_util functions to methodsfaineance-5/+161
2015-12-05Use a struct instead of a tuple for inline asm output operandsAmanieu d'Antras-1/+9
2015-12-05Add proper support for indirect output constraints in inline asmAmanieu d'Antras-1/+1
2015-11-26Moved and refactored ThinAttributesMarvin Löbel-92/+1
2015-11-26Add syntax support for attributes on expressions and all syntaxMarvin Löbel-1/+141
nodes in statement position. Extended #[cfg] folder to allow removal of statements, and of expressions in optional positions like expression lists and trailing block expressions. Extended lint checker to recognize lint levels on expressions and locals.
2015-11-23Avoid some code duplication around getting names of numeric types.Michael Woerister-2/+2
2015-11-17Auto merge of #29887 - sanxiyn:match-ref-pats, r=sfacklerbors-3/+3
2015-11-17Fix match_ref_pats flagged by ClippySeo Sanghyeon-3/+3