about summary refs log tree commit diff
path: root/src/libsyntax/fold.rs
AgeCommit message (Collapse)AuthorLines
2016-02-27libsyntax: parse inclusive rangesAlex Burka-2/+3
2016-02-13Split ast::PatKind::Enum into tuple struct and path patternsVadim Petrochenkov-2/+5
2016-02-13Rename ast::Pat_ and its variantsVadim Petrochenkov-18/+18
2016-02-12Use more autoderef in libsyntaxJonas Schievink-1/+1
2016-02-11Remove some unnecessary indirection from AST structuresVadim Petrochenkov-65/+65
2016-02-11[breaking-change] don't glob export ast::PathListItem_ variantsOliver 'ker' Schneider-4/+4
2016-02-11[breaking-change] don't glob export ast::Visibility variantsOliver 'ker' Schneider-1/+1
2016-02-11[breaking-change] don't glob export ast::TraitItemKind variantsOliver 'ker' Schneider-6/+6
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::Item_ variantsOliver 'ker' Schneider-31/+31
2016-02-11[breaking-change] don't glob export ast::ForeignItem_ variantsOliver 'ker' Schneider-4/+4
2016-02-11[breaking-change] don't pub export ast::Stmt_ variantsOliver Schneider-10/+10
2016-02-11[breaking-change] don't pub export ast::Ty_ variantsOliver Schneider-21/+21
2016-02-11[breaking-change] don't glob export ast::Expr_ variantsOliver Schneider-63/+63
2016-02-11[breaking-change] don't glob export ast::ExplicitSelf_ variantsOliver Schneider-10/+10
2016-02-11[breaking-change] don't glob export ast::Decl_ variantsOliver Schneider-4/+4
2016-02-11[breaking-change] don't glob import ast::FunctionRetTy variantsOliver Schneider-3/+3
2015-12-22Stop re-exporting PathParameters's variants.Ms2ger-4/+4
2015-12-19Auto merge of #30184 - petrochenkov:ascr, r=nikomatsakisbors-0/+3
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-10/+9
2015-12-16Implement type ascription.Eduard Burtescu-0/+3
2015-12-16Rollup merge of #30388 - DanielJCampbell:macro-ident-spans, r=nrcManish Goregaokar-1/+2
r? @nrc
2015-12-15Generated code spans now point to callsite parameters (where applicable)Daniel Campbell-1/+2
2015-12-05Use a struct instead of a tuple for inline asm output operandsAmanieu d'Antras-2/+7
2015-12-05Add proper support for indirect output constraints in inline asmAmanieu d'Antras-2/+2
2015-11-26Some TLC for the MoveMap traitMarvin Löbel-35/+13
2015-11-26Fixed macro expander not folding attributes (though I'm not sure if that is ↵Marvin Löbel-1/+5
actually neccessary)
2015-11-26Moved and refactored ThinAttributesMarvin Löbel-3/+4
2015-11-26Add syntax support for attributes on expressions and all syntaxMarvin Löbel-19/+48
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-16rename `ast::ImplItem_::*ImplItem` to `ast::ImplItemKind::*`Oliver Schneider-6/+6
2015-11-11libsyntax: Add more quasiquoting macrosKyle Mayes-0/+1
2015-11-10Use deref coercionsSeo Sanghyeon-1/+1
2015-11-06remove `Tt` prefix from TokenType variantsOliver Schneider-6/+6
[breaking change]
2015-10-31Remove PatWildMultiVadim Petrochenkov-1/+1
2015-10-25syntax/rustc_front: Simplify VariantData::fieldsVadim Petrochenkov-15/+13
And use VariantData instead of P<VariantData> in Item_ and Variant_
2015-10-13Merge VariantData and VariantData_Vadim Petrochenkov-9/+10
2015-10-13Merge struct fields and struct kindVadim Petrochenkov-3/+10
2015-10-13Dict -> Struct, StructDef -> VariantData, def -> dataVadim Petrochenkov-6/+6
2015-10-13Provide span for visit_struct_def + remove some dead codeVadim Petrochenkov-12/+0
2015-10-13Remove now redundant NodeId from VariantVadim Petrochenkov-2/+1
2015-10-13Decouple structure kinds from NodeIdsVadim Petrochenkov-2/+3
2015-10-13Unify structures and enum variants in ASTVadim Petrochenkov-10/+2
2015-10-09Some cleanup of no longer used AST thingsNick Cameron-3/+2
2015-09-24Remove the deprecated box(PLACE) syntax.Eduard Burtescu-2/+5
2015-09-20Replace `ast::Mac_` enum with structAndrew Paseltiner-4/+4
Closes #28527.
2015-09-17Remove Visibility field from enum variantsSimonas Kazlauskas-2/+1
Followup on #28440
2015-09-03Use proper span for break and continue labelsSimonas Kazlauskas-2/+8
Fixes #28109
2015-08-10Auto merge of #27451 - seanmonstar:use-groups-as, r=alexcrichtonbors-3/+7
An implementation of [RFC 1219](https://github.com/rust-lang/rfcs/pull/1219). The RFC is not merged yet, but once merged, this could be.
2015-08-08rustc: rename multiple imports in a listSean McArthur-3/+7
2015-08-04Add a macro invocation to the type ASTJared Roesch-0/+3
Reapplied the changes from https://github.com/freebroccolo/rust/commit/dc64b731d7f66c2b43d5e5e8c721be7bd3b59540 to a clean branch of master