| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2016-04-06 | rustc: move rustc_front to rustc::hir. | Eduard Burtescu | -8443/+0 | |
| 2016-04-02 | Add `Crate` and `Restricted` variants to `ast::Visibility` | Jeffrey Seyfried | -1/+2 | |
| 2016-04-02 | Make `ast::Visibility` non-copyable | Jeffrey Seyfried | -5/+5 | |
| 2016-03-31 | Remove incorrect comment about `PartialEq` implementation | Tobias Bucher | -1/+0 | |
| 2016-03-24 | address nits | Alex Burka | -1/+1 | |
| 2016-03-24 | fatal error instead of ICE for impossible range during HIR lowering | Alex Burka | -1/+8 | |
| 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 | fix alignment | Jorge Aparicio | -53/+53 | |
| 2016-03-22 | sprinkle feature gates here and there | Jorge Aparicio | -0/+1 | |
| 2016-03-22 | try! -> ? | Jorge Aparicio | -698/+698 | |
| 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-21 | Expose attached attributes to `FnKind` abstraction so that I can look at ↵ | Felix S. Klock II | -13/+31 | |
| them in borrowck. | ||||
| 2016-03-17 | hir_map: Provide expression and statement attributes. | Eduard Burtescu | -1/+20 | |
| 2016-03-17 | hir, mir: Separate HIR expressions / MIR operands from InlineAsm. | Eduard Burtescu | -46/+24 | |
| 2016-03-14 | Add pretty printer output for `default` | Aaron Turon | -0/+5 | |
| 2016-03-14 | Move specialization graph walks to iterators; make associated type | Aaron Turon | -0/+10 | |
| projection sensitive to "mode" (most importantly, trans vs middle). This commit introduces several pieces of iteration infrastructure in the specialization graph data structure, as well as various helpers for finding the definition of a given item, given its kind and name. In addition, associated type projection is now *mode-sensitive*, with three possible modes: - **Topmost**. This means that projection is only possible if there is a non-`default` definition of the associated type directly on the selected impl. This mode is a bit of a hack: it's used during early coherence checking before we have built the specialization graph (and therefore before we can walk up the specialization parents to find other definitions). Eventually, this should be replaced with a less "staged" construction of the specialization graph. - **AnyFinal**. Projection succeeds for any non-`default` associated type definition, even if it is defined by a parent impl. Used throughout typechecking. - **Any**. Projection always succeeds. Used by trans. The lasting distinction here is between `AnyFinal` and `Any` -- we wish to treat `default` associated types opaquely for typechecking purposes. In addition to the above, the commit includes a few other minor review fixes. | ||||
| 2016-03-14 | Add `default` as contextual keyword, and parse it for impl items. | Aaron Turon | -4/+20 | |
| 2016-03-11 | removed suffixes for librustc_front | srinivasreddy | -2/+2 | |
| 2016-03-07 | implement the `?` operator | Jorge Aparicio | -0/+70 | |
| 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-03-06 | Auto merge of #30884 - durka:inclusive-ranges, r=aturon | bors | -22/+94 | |
| 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 | Move span into `StructField` | Vadim Petrochenkov | -33/+27 | |
| + some cleanup in rustdoc | ||||
| 2016-03-02 | Use numeric field `Name`s ("0", "1" etc) for positional fields | Vadim Petrochenkov | -35/+17 | |
| 2016-03-02 | Get rid of hir::StructFieldKind | Vadim Petrochenkov | -65/+48 | |
| 2016-02-27 | fix stability hole | Alex Burka | -1/+6 | |
| 2016-02-27 | fallout from removing hir::ExprRange | Alex Burka | -17/+0 | |
| A whole bunch of stuff gets folded into struct handling! Plus, removes an ugly hack from trans and accidentally fixes a bug with constructing ranges from references (see later commits with tests). | ||||
| 2016-02-27 | HIR: add inclusive ranges, desugar all ranges (remove ExprRange) | Alex Burka | -5/+89 | |
| 2016-02-21 | rustbuild: Sync some Cargo.toml/lib.rs dependencies | Alex Crichton | -0/+1 | |
| The standard library doesn't depend on rustc_bitflags, so move it to explicit dependencies on all other crates. Additionally, the arena/fmt_macros deps could be dropped from libsyntax. | ||||
| 2016-02-16 | Split PatKind::Enum into PatKind::TupleStruct and PatKind::Path | Vadim Petrochenkov | -25/+43 | |
| 2016-02-14 | Rename hir::Pat_ and its variants | Vadim Petrochenkov | -88/+87 | |
| 2016-02-13 | Split ast::PatKind::Enum into tuple struct and path patterns | Vadim Petrochenkov | -1/+4 | |
| 2016-02-13 | Rename ast::Pat_ and its variants | Vadim Petrochenkov | -12/+14 | |
| 2016-02-12 | Make more use of autoderef in librustc_front | Jonas Schievink | -109/+108 | |
| 2016-02-11 | bootstrap: Add a bunch of Cargo.toml files | Alex Crichton | -0/+14 | |
| These describe the structure of all our crate dependencies. | ||||
| 2016-02-11 | [breaking-change] don't glob export ast::PathListItem_ variants | Oliver 'ker' Schneider | -18/+18 | |
| 2016-02-11 | [breaking-change] don't glob export ast::StrStyle variants | Oliver 'ker' Schneider | -6/+6 | |
| 2016-02-11 | [breaking-change] don't glob export ast::Visibility variants | Oliver 'ker' Schneider | -2/+2 | |
| 2016-02-11 | [breaking-change] don't glob export ast::TraitItemKind variants | Oliver 'ker' Schneider | -3/+3 | |
| 2016-02-11 | [breaking-change] don't glob export ast::Mutablity variants | Oliver 'ker' Schneider | -2/+2 | |
| 2016-02-11 | [breaking-change] don't glob export ast::MetaItem_ | Oliver 'ker' Schneider | -5/+5 | |
| 2016-02-11 | [breaking-change] don't glob export ast::Item_ variants | Oliver 'ker' Schneider | -16/+16 | |
| 2016-02-11 | [breaking-change] don't glob export ast::ForeignItem_ variants | Oliver 'ker' Schneider | -2/+2 | |
| 2016-02-11 | [breaking-change] don't pub export ast::Stmt_ variants | Oliver Schneider | -4/+4 | |
| 2016-02-11 | [breaking-change] don't pub export ast::Ty_ variants | Oliver Schneider | -13/+14 | |
| 2016-02-11 | [breaking-change] don't glob export ast::Expr_ variants | Oliver Schneider | -37/+37 | |
| 2016-02-11 | [breaking-change] don't glob export ast::ExplicitSelf_ variants | Oliver Schneider | -5/+5 | |
| 2016-02-11 | [breaking-change] don't glob export ast::Decl_ variants | Oliver Schneider | -2/+2 | |
| 2016-02-11 | [breaking-change] don't glob export ast::CaptureClause variants | Oliver Schneider | -3/+3 | |
| 2016-02-11 | [breaking-change] don't glob import/export syntax::abi enum variants | Oliver Schneider | -10/+10 | |
| 2016-02-11 | [breaking-change] don't glob export ast::BlockCheckMode variants | Oliver Schneider | -2/+2 | |
| 2016-02-11 | [breaking-change] don't glob import ast::FunctionRetTy variants | Oliver Schneider | -3/+3 | |
| 2016-02-11 | [breaking-change] don't glob export ast::BinOp_ | Oliver Schneider | -18/+18 | |
| 2016-02-11 | [breaking-change] don't glob export ast::UnOp variants | Oliver Schneider | -3/+3 | |
