| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2016-03-06 | Auto merge of #30884 - durka:inclusive-ranges, r=aturon | bors | -37/+50 | |
| This PR implements [RFC 1192](https://github.com/rust-lang/rfcs/blob/master/text/1192-inclusive-ranges.md), which is triple-dot syntax for inclusive range expressions. The new stuff is behind two feature gates (one for the syntax and one for the std::ops types). This replaces the deprecated functionality in std::iter. Along the way I simplified the desugaring for all ranges. This is my first contribution to rust which changes more than one character outside of a test or comment, so please review carefully! Some of the individual commit messages have more of my notes. Also thanks for putting up with my dumb questions in #rust-internals. - For implementing `std::ops::RangeInclusive`, I took @Stebalien's suggestion from https://github.com/rust-lang/rfcs/pull/1192#issuecomment-137864421. It seemed to me to make the implementation easier and increase type safety. If that stands, the RFC should be amended to avoid confusion. - I also kind of like @glaebhoerl's [idea](https://github.com/rust-lang/rfcs/pull/1254#issuecomment-147815299), which is unified inclusive/exclusive range syntax something like `x>..=y`. We can experiment with this while everything is behind a feature gate. - There are a couple of FIXMEs left (see the last commit). I didn't know what to do about `RangeArgument` and I haven't added `Index` impls yet. Those should be discussed/finished before merging. cc @Gankro since you [complained](https://www.reddit.com/r/rust/comments/3xkfro/what_happened_to_inclusive_ranges/cy5j0yq) cc #27777 #30877 rust-lang/rust#1192 rust-lang/rfcs#1254 relevant to #28237 (tracking issue) | ||||
| 2016-03-02 | Add `filename` to Parser | Jeffrey Seyfried | -1/+6 | |
| 2016-03-02 | Use numeric field `Name`s ("0", "1" etc) for positional fields | Vadim Petrochenkov | -1/+1 | |
| 2016-02-27 | fix fallout from libsyntax enumpocalypse | Alex Burka | -1/+1 | |
| 2016-02-27 | libsyntax: parse inclusive ranges | Alex Burka | -38/+51 | |
| 2016-02-25 | Rollup merge of #31362 - jseyfried:fix_extern_crate_visibility, r=nikomatsakis | Manish Goregaokar | -7/+0 | |
| This PR changes the visibility of extern crate declarations to match that of items (fixes #26775). To avoid breakage, the PR makes it a `public_in_private` lint to reexport a private extern crate, and it adds the lint `inaccessible_extern_crate` for uses of an inaccessible extern crate. The lints can be avoided by making the appropriate `extern crate` declaration public. | ||||
| 2016-02-24 | Fix the visibility of extern crate declarations and stop warning on pub ↵ | Jeffrey Seyfried | -7/+0 | |
| extern crate | ||||
| 2016-02-22 | Use associated functions for libsyntax SepSeq constructors. | Corey Farwell | -34/+36 | |
| 2016-02-16 | Auto merge of #31534 - jseyfried:restrict_noninline_mod, r=nikomatsakis | bors | -7/+17 | |
| This PR disallows non-inline modules without path annotations that are either in a block or in an inline module whose containing file is not a directory owner (fixes #29765). This is a [breaking-change]. r? @nikomatsakis | ||||
| 2016-02-15 | Rebasing | Nick Cameron | -2/+2 | |
| 2016-02-15 | Some error recovery in the parser | Nick Cameron | -32/+150 | |
| 2016-02-15 | Add some simple error recovery to the parser and fix tests | Nick Cameron | -28/+63 | |
| Some tests just add the extra errors, others I fix by doing some simple error recovery. I've tried to avoid doing too much in the hope of doing something more principled later. In general error messages are getting worse at this stage, but I think in the long run they will get better. | ||||
| 2016-02-15 | error correction for missing or mismatched closing brackets | Nick Cameron | -28/+40 | |
| 2016-02-15 | refactoring: inline some function in the parser | Nick Cameron | -31/+28 | |
| 2016-02-13 | Split ast::PatKind::Enum into tuple struct and path patterns | Vadim Petrochenkov | -3/+3 | |
| 2016-02-13 | Rename ast::Pat_ and its variants | Vadim Petrochenkov | -25/+24 | |
| 2016-02-13 | Disallow non-inline modules without path annotations inside blocks and fix ↵ | Jeffrey Seyfried | -4/+17 | |
| fallout | ||||
| 2016-02-13 | Only consider a module to be a directory owner if it is located within a ↵ | Jeffrey Seyfried | -3/+0 | |
| directory owner | ||||
| 2016-02-12 | Use more autoderef in libsyntax | Jonas Schievink | -23/+23 | |
| 2016-02-11 | Remove some unnecessary indirection from AST structures | Vadim Petrochenkov | -40/+53 | |
| 2016-02-11 | [breaking-change] don't glob export ast::PathListItem_ variants | Oliver 'ker' Schneider | -2/+2 | |
| 2016-02-11 | [breaking-change] don't glob export ast::StrStyle variants | Oliver 'ker' Schneider | -4/+6 | |
| 2016-02-11 | [breaking-change] don't glob export ast::Visibility variants | Oliver 'ker' Schneider | -15/+15 | |
| 2016-02-11 | [breaking-change] don't glob export ast::TraitItemKind variants | Oliver 'ker' Schneider | -7/+6 | |
| 2016-02-11 | [breaking-change] don't glob export ast::Mutablity variants | Oliver 'ker' Schneider | -19/+25 | |
| 2016-02-11 | [breaking-change] don't glob export ast::MetaItem_ | Oliver 'ker' Schneider | -3/+3 | |
| 2016-02-11 | [breaking-change] don't glob export ast::MacStmtStyle | Oliver 'ker' Schneider | -7/+7 | |
| 2016-02-11 | [breaking-change] don't glob export ast::KleeneOp variants | Oliver 'ker' Schneider | -2/+2 | |
| 2016-02-11 | [breaking-change] don't glob export ast::Item_ variants | Oliver 'ker' Schneider | -25/+22 | |
| 2016-02-11 | [breaking-change] don't glob export ast::ForeignItem_ variants | Oliver 'ker' Schneider | -3/+3 | |
| 2016-02-11 | [breaking-change] don't pub export ast::Stmt_ variants | Oliver Schneider | -26/+23 | |
| 2016-02-11 | [breaking-change] don't pub export ast::IntLitType variants | Oliver Schneider | -12/+12 | |
| 2016-02-11 | [breaking-change] don't pub export ast::Lit_ variants | Oliver Schneider | -24/+23 | |
| 2016-02-11 | [breaking-change] don't pub export ast::Ty_ variants | Oliver Schneider | -27/+25 | |
| 2016-02-11 | [breaking-change] remove the sign from integer literals in the ast | Oliver Schneider | -18/+10 | |
| 2016-02-11 | [breaking-change] don't glob export ast::{UintTy, IntTy} variants | Oliver Schneider | -13/+13 | |
| 2016-02-11 | [breaking-change] don't glob export ast::FloatTy variants | Oliver Schneider | -2/+2 | |
| 2016-02-11 | [breaking-change] don't glob export ast::Expr_ variants | Oliver Schneider | -90/+84 | |
| 2016-02-11 | [breaking-change] don't glob export ast::ExplicitSelf_ variants | Oliver Schneider | -18/+18 | |
| 2016-02-11 | [breaking-change] don't glob export ast::Decl_ variants | Oliver Schneider | -6/+6 | |
| 2016-02-11 | [breaking-change] don't glob export ast::CaptureClause variants | Oliver Schneider | -4/+4 | |
| 2016-02-11 | [breaking-change] don't glob import/export syntax::abi enum variants | Oliver Schneider | -14/+14 | |
| 2016-02-11 | [breaking-change] don't glob export ast::BlockCheckMode variants | Oliver Schneider | -10/+10 | |
| 2016-02-11 | [breaking-change] don't glob import ast::FunctionRetTy variants | Oliver Schneider | -8/+8 | |
| 2016-02-11 | [breaking-change] don't glob export ast::BinOp_ | Oliver Schneider | -38/+39 | |
| 2016-02-11 | [breaking-change] don't glob export ast::UnOp variants | Oliver Schneider | -7/+7 | |
| 2016-02-08 | Breaking tokens into pieces should behave similar to Parser::bump. | Tomasz Miąsko | -11/+19 | |
| Previously when breaking tokens into smaller pieces, the replace_token function have been used. It replaced current token and updated span information, but it did not clear the list of expected tokens, neither did it update remaining info about last token. This could lead to incorrect error message, like one described in the issue #24780: expected one of ... `>` ... found `>` | ||||
| 2016-02-01 | Replace some aborts with Results | Nick Cameron | -7/+3 | |
| Fixes #31207 by removing abort_if_new_errors | ||||
| 2016-01-30 | Rollup merge of #31244 - tshepang:rustfmt-parse, r=nikomatsakis | Manish Goregaokar | -49/+49 | |
| 2016-01-27 | rustfmt syntax::parse | Tshepang Lekhonkhobe | -49/+49 | |
