| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2016-05-16 | Remove hir::Ident | Vadim Petrochenkov | -0/+4 | |
| 2016-05-15 | Auto merge of #33505 - petrochenkov:self, r=nrc | bors | -18/+65 | |
| Remove ExplicitSelf from HIR `self` argument is already kept in the argument list and can be retrieved from there if necessary, so there's no need for the duplication. The same changes can be applied to AST, I'll make them in the next breaking batch. The first commit also improves parsing of method declarations and fixes https://github.com/rust-lang/rust/issues/33413. r? @eddyb | ||||
| 2016-05-14 | syntax: Refactor parsing of method declarations | Vadim Petrochenkov | -18/+65 | |
| Fix spans and expected token lists, fix #33413 + other cosmetic improvements Add test for #33413 Convert between `Arg` and `ExplicitSelf` precisely Simplify pretty-printing for methods | ||||
| 2016-05-11 | save-analysis: give better text info in value fields | Nick Cameron | -4/+1 | |
| 2016-05-09 | Move resolution to before lowering | Jeffrey Seyfried | -0/+38 | |
| 2016-04-25 | Rollup merge of #33041 - petrochenkov:path, r=nrc,Manishearth | Manish Goregaokar | -11/+9 | |
| Paths are mostly parsed without taking whitespaces into account, e.g. `std :: vec :: Vec :: new ()` parses successfully, however, there are some special cases involving keywords `super`, `self` and `Self`. For example, `self::` is considered a path start only if there are no spaces between `self` and `::`. These restrictions probably made sense when `self` and friends weren't keywords, but now they are unnecessary. The first two commits remove this special treatment of whitespaces by removing `token::IdentStyle` entirely and therefore fix https://github.com/rust-lang/rust/issues/14109. This change also affects naked `self` and `super` (which are not tightly followed by `::`, obviously) they can now be parsed as paths, however they are still not resolved correctly in imports (cc @jseyfried, see `compile-fail/use-keyword.rs`), so https://github.com/rust-lang/rust/issues/29036 is not completely fixed. The third commit also makes `super`, `self`, `Self` and `static` keywords nominally (before this they acted as keywords for all purposes) and removes most of remaining \"special idents\". The last commit (before tests) contains some small improvements - some qualified paths with type parameters are parsed correctly, `parse_path` is not used for parsing single identifiers, imports are sanity checked for absence of type parameters - such type parameters can be generated by syntax extensions or by macros when https://github.com/rust-lang/rust/issues/10415 is fixed (~~soon!~~already!). This patch changes some pretty basic things in `libsyntax`, like `token::Token` and the keyword list, so it's a plugin-[breaking-change]. r? @eddyb | ||||
| 2016-04-24 | Remove some old code from libsyntax | Vadim Petrochenkov | -3/+3 | |
| 2016-04-24 | syntax: Make static/super/self/Self keywords + special ident cleanup | Vadim Petrochenkov | -1/+1 | |
| 2016-04-24 | syntax: Get rid of token::IdentStyle | Vadim Petrochenkov | -7/+5 | |
| 2016-04-24 | thread tighter span for closures around | Niko Matsakis | -1/+3 | |
| Track the span corresponding to the `|...|` part of the closure. | ||||
| 2016-04-14 | Add a span to the `Crate` variant of `ast::Visibility` | Jeffrey Seyfried | -1/+1 | |
| 2016-04-06 | Rollup merge of #32570 - eddyb:tis-but-a-front, r=nikomatsakis | Manish Goregaokar | -0/+17 | |
| r? @nikomatsakis Conflicts: src/librustc_save_analysis/lib.rs src/libsyntax/ast_util.rs | ||||
| 2016-04-06 | Move span into `StructField` | Vadim Petrochenkov | -3/+2 | |
| 2016-04-06 | Get rid of ast::StructFieldKind | Vadim Petrochenkov | -33/+2 | |
| 2016-04-06 | syntax: dismantle ast_util. | Eduard Burtescu | -0/+17 | |
| 2016-04-02 | Add `Crate` and `Restricted` variants to `ast::Visibility` | Jeffrey Seyfried | -0/+2 | |
| 2016-04-02 | Make `ast::Visibility` non-copyable | Jeffrey Seyfried | -4/+4 | |
| 2016-04-02 | Remove `ast::Visibility::inherit_from` (it is unused and has obsolete semantics) | Jeffrey Seyfried | -9/+0 | |
| 2016-03-24 | fatal error instead of ICE for impossible range during HIR lowering | Alex Burka | -0/+5 | |
| End-less ranges (`a...`) don't parse but bad syntax extensions could conceivably produce them. Unbounded ranges (`...`) do parse and are caught here. The other panics in HIR lowering are all for unexpanded macros, which cannot be constructed by bad syntax extensions. | ||||
| 2016-03-22 | try! -> ? | 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-14 | Add `default` as contextual keyword, and parse it for impl items. | Aaron Turon | -4/+11 | |
| 2016-03-12 | Removed integer suffixes in libsyntax crate | srinivasreddy | -3/+3 | |
| 2016-03-09 | Auto merge of #31631 - jonas-schievink:agoraphobia, r=nrc | bors | -1/+1 | |
| [breaking-batch] Move more uses of `panictry!` out of libsyntax | ||||
| 2016-03-07 | implement the `?` operator | Jorge Aparicio | -0/+3 | |
| The `?` postfix operator is sugar equivalent to the try! macro, but is more amenable to chaining: `File::open("foo")?.metadata()?.is_dir()`. `?` is accepted on any *expression* that can return a `Result`, e.g. `x()?`, `y!()?`, `{z}?`, `(w)?`, etc. And binds more tightly than unary operators, e.g. `!x?` is parsed as `!(x?)`. cc #31436 | ||||
| 2016-02-27 | libsyntax: parse inclusive ranges | Alex Burka | -2/+11 | |
| 2016-02-16 | Move more uses of `panictry!` out of libsyntax | Jonas Schievink | -1/+1 | |
| [breaking-change] for syntax extensions | ||||
| 2016-02-16 | Split PatKind::Enum into PatKind::TupleStruct and PatKind::Path | Vadim Petrochenkov | -1/+1 | |
| 2016-02-13 | Split ast::PatKind::Enum into tuple struct and path patterns | Vadim Petrochenkov | -10/+16 | |
| 2016-02-13 | Rename ast::Pat_ and its variants | Vadim Petrochenkov | -19/+18 | |
| 2016-02-11 | Remove some unnecessary indirection from AST structures | Vadim Petrochenkov | -7/+7 | |
| 2016-02-11 | [breaking-change] don't glob export ast::PathListItem_ variants | Oliver 'ker' Schneider | -10/+9 | |
| 2016-02-11 | [breaking-change] don't glob export ast::StrStyle variants | Oliver 'ker' Schneider | -3/+2 | |
| 2016-02-11 | [breaking-change] don't glob export ast::Visibility variants | Oliver 'ker' Schneider | -3/+2 | |
| 2016-02-11 | [breaking-change] don't glob export ast::TraitItemKind variants | Oliver 'ker' Schneider | -6/+5 | |
| 2016-02-11 | [breaking-change] don't glob export ast::Mutablity variants | Oliver '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::MacStmtStyle | Oliver 'ker' Schneider | -4/+3 | |
| 2016-02-11 | [breaking-change] don't glob export ast::KleeneOp variants | Oliver 'ker' Schneider | -1/+0 | |
| 2016-02-11 | [breaking-change] don't glob export ast::Item_ variants | Oliver 'ker' Schneider | -33/+32 | |
| 2016-02-11 | [breaking-change] don't glob export ast::ForeignItem_ variants | Oliver 'ker' Schneider | -8/+7 | |
| 2016-02-11 | [breaking-change] don't pub export ast::Stmt_ variants | Oliver Schneider | -17/+16 | |
| 2016-02-11 | [breaking-change] don't pub export ast::IntLitType variants | Oliver Schneider | -4/+3 | |
| 2016-02-11 | [breaking-change] don't pub export ast::Lit_ variants | Oliver Schneider | -13/+12 | |
| 2016-02-11 | [breaking-change] don't pub export ast::Ty_ variants | Oliver Schneider | -18/+17 | |
| 2016-02-11 | [breaking-change] remove unused enum ast::PrimTy | Oliver Schneider | -12/+0 | |
| 2016-02-11 | [breaking-change] remove the sign from integer literals in the ast | Oliver Schneider | -28/+2 | |
| 2016-02-11 | [breaking-change] don't glob export ast::{UintTy, IntTy} variants | Oliver Schneider | -40/+38 | |
| 2016-02-11 | [breaking-change] don't glob export ast::FloatTy variants | Oliver Schneider | -7/+6 | |
| 2016-02-11 | [breaking-change] don't glob export ast::Expr_ variants | Oliver Schneider | -40/+39 | |
| 2016-02-11 | [breaking-change] don't glob export ast::ExplicitSelf_ variants | Oliver Schneider | -7/+6 | |
