| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2020-02-01 | syntax::print -> new crate rustc_ast_pretty | Mazdak Farrokhzad | -3527/+0 | |
| 2020-02-01 | pretty: remove ParseSess dependency | Mazdak Farrokhzad | -17/+11 | |
| 2020-01-23 | unused-parens: implement for block return values | Tyler Lanphear | -5/+1 | |
| 2020-01-22 | Rollup merge of #68441 - Centril:pprust-as_deref, r=Mark-Simulacrum | Tyler Mandry | -2/+2 | |
| pprust: use as_deref Some drive-by cleanup. | ||||
| 2020-01-22 | pprust: use as_deref | Mazdak Farrokhzad | -2/+2 | |
| 2020-01-19 | Add `constness` field to `ast::ItemKind::Impl` | Dylan MacKenzie | -0/+9 | |
| 2020-01-17 | Use named fields for `ast::ItemKind::Impl` | Dylan MacKenzie | -8/+8 | |
| 2020-01-10 | Introduce `#![feature(half_open_range_patterns)]`. | Mazdak Farrokhzad | -3/+7 | |
| This feature adds `X..`, `..X`, and `..=X` patterns. | ||||
| 2020-01-02 | Normalize `syntax::symbol` imports. | Mazdak Farrokhzad | -1/+1 | |
| 2020-01-02 | Normalize `syntax::source_map` imports. | Mazdak Farrokhzad | -7/+6 | |
| 2020-01-01 | Rename `syntax_pos` to `rustc_span` in source code | Vadim Petrochenkov | -17/+17 | |
| 2019-12-23 | Add span information to `ExprKind::Assign` | varkor | -1/+1 | |
| 2019-12-22 | Format the world | Mark Rousskov | -444/+400 | |
| 2019-12-20 | 1. ast::Mutability::{Mutable -> Mut, Immutable -> Not}. | Mazdak Farrokhzad | -7/+7 | |
| 2. mir::Mutability -> ast::Mutability. | ||||
| 2019-12-12 | `AssocImplKind::{Method -> Fn}`. | Mazdak Farrokhzad | -1/+1 | |
| 2019-12-12 | Unify associated item pretty printing. | Mazdak Farrokhzad | -75/+21 | |
| 2019-12-12 | parse: refactor fun ret ty & param ty | Mazdak Farrokhzad | -56/+19 | |
| 2019-12-12 | Unify `{Trait,Impl}ItemKind::TyAlias` structures. | Mazdak Farrokhzad | -12/+10 | |
| 2019-12-12 | `TraitItemKind::Type` -> `TraitItemKind::TyAlias`. | Mazdak Farrokhzad | -1/+1 | |
| 2019-12-12 | Use `Option` in `ImplItemKind::Method`. | Mazdak Farrokhzad | -15/+11 | |
| 2019-12-12 | Use `Option` in `ImplItemKind::Const`. | Mazdak Farrokhzad | -1/+1 | |
| 2019-12-12 | Alias `TraitItem` & `ImplItem`. | Mazdak Farrokhzad | -0/+1 | |
| Allow defaultness on trait items syntactically. | ||||
| 2019-12-07 | Print the visibility in `print_variant`. | Mazdak Farrokhzad | -0/+1 | |
| 2019-12-06 | Rename to `then_some` and `then` | varkor | -1/+1 | |
| 2019-12-06 | Use `to_option` in various places | varkor | -1/+1 | |
| 2019-12-02 | syntax: Use `ast::MacArgs` for macro definitions | Vadim Petrochenkov | -2/+2 | |
| 2019-12-02 | syntax: Use `ast::MacArgs` for attributes | Vadim Petrochenkov | -10/+15 | |
| 2019-12-02 | syntax: Remove redundant span from `ast::Mac` | Vadim Petrochenkov | -2/+2 | |
| Also remove a couple of redundant `visit_mac` asserts | ||||
| 2019-12-02 | syntax: Introduce a struct `MacArgs` for macro arguments | Vadim Petrochenkov | -14/+10 | |
| 2019-11-24 | Add raw address of expressions to the AST and HIR | Matthew Jasper | -17/+20 | |
| 2019-11-22 | Rollup merge of #66183 - Centril:empty-vis-trait-decl, r=petrochenkov | Mazdak Farrokhzad | -0/+1 | |
| *Syntactically* permit visibilities on trait items & enum variants Fixes #65041 Suppose we have `$vis trait_item` or `$vis enum_variant` and `$vis` is a `:vis` macro fragment. Before this PR, this would fail to parse. This is now instead allowed as per language team consensus in https://github.com/rust-lang/rust/issues/65041#issuecomment-538105286. (See added tests for elaboration.) Moreover, we now also permit visibility modifiers on trait items & enum variants *syntactically* but reject them with semantic checks (in `ast_validation`): ```rust #[cfg(FALSE)] trait Foo { pub fn bar(); } // OK #[cfg(FALSE)] enum E { pub U } // OK ``` | ||||
| 2019-11-16 | ast: Keep string literals in ABIs precisely | Vadim Petrochenkov | -6/+4 | |
| 2019-11-16 | ast: Keep `extern` qualifiers in functions more precisely | Vadim Petrochenkov | -7/+15 | |
| 2019-11-14 | TAIT: remove `OpaqueTy` in AST. | Mazdak Farrokhzad | -20/+0 | |
| 2019-11-11 | syntactically allow visibility on trait item & enum variant | Mazdak Farrokhzad | -0/+1 | |
| 2019-11-10 | move syntax::parse -> librustc_parse | Mazdak Farrokhzad | -7/+7 | |
| also move MACRO_ARGUMENTS -> librustc_parse | ||||
| 2019-11-10 | move config.rs to libsyntax_expand | Mazdak Farrokhzad | -2/+5 | |
| 2019-11-08 | ast::ItemKind::Fn: use ast::FnSig | Mazdak Farrokhzad | -3/+3 | |
| 2019-11-08 | ast::MethodSig -> ast::FnSig | Mazdak Farrokhzad | -1/+1 | |
| 2019-11-07 | move syntax::parse::lexer::comments -> syntax::util::comments | Mazdak Farrokhzad | -1/+1 | |
| 2019-11-07 | move parse::classify -> util::classify | Mazdak Farrokhzad | -2/+2 | |
| 2019-11-07 | syntax::parser::token -> syntax::token | Mazdak Farrokhzad | -1/+1 | |
| 2019-11-07 | parser: don't hardcode ABIs into grammar | Mazdak Farrokhzad | -11/+9 | |
| 2019-11-06 | Make doc comments cheaper with `AttrKind`. | Nicholas Nethercote | -9/+12 | |
| `AttrKind` is a new type with two variants, `Normal` and `DocComment`. It's a big performance win (over 10% in some cases) because `DocComment` lets doc comments (which are common) be represented very cheaply. `Attribute` gets some new helper methods to ease the transition: - `has_name()`: check if the attribute name matches a single `Symbol`; for `DocComment` variants it succeeds if the symbol is `sym::doc`. - `is_doc_comment()`: check if it has a `DocComment` kind. - `{get,unwrap}_normal_item()`: extract the item from a `Normal` variant; panic otherwise. Fixes #60935. | ||||
| 2019-11-02 | Convert `x.as_str().to_string()` to `x.to_string()` where possible. | Nicholas Nethercote | -3/+3 | |
| 2019-10-15 | syntax::parse::sess -> syntax::sess | Mazdak Farrokhzad | -1/+2 | |
| 2019-10-14 | pprust: `p1@p2` -> `p1 @ p2` | Mazdak Farrokhzad | -1/+2 | |
| 2019-09-30 | syntax: Support modern attribute syntax in the `meta` matcher | Vadim Petrochenkov | -18/+22 | |
| 2019-09-29 | Rollup merge of #63492 - eddyb:cvarargs, r=nagisa,matthewjasper | Mazdak Farrokhzad | -1/+0 | |
| Remove redundancy from the implementation of C variadics. This cleanup was first described in https://github.com/rust-lang/rust/issues/44930#issuecomment-497163539: * AST doesn't track `c_variadic: bool` anymore, relying solely on a trailing `CVarArgs` type in fn signatures * HIR doesn't have a `CVarArgs` anymore, relying solely on `c_variadic: bool` * same for `ty::FnSig` (see tests for diagnostics improvements from that) * `{hir,mir}::Body` have one extra argument than the signature when `c_variadic == true` * `rustc_typeck` and `rustc_mir::{build,borrowck}` need to give that argument the right type (which no longer uses a lifetime parameter, but a function-internal scope) * `rustc_target::abi::call` doesn't need special hacks anymore (since it never sees the `VaListImpl` now, it's all inside the body) r? @nagisa / @rkruppe cc @dlrobertson @oli-obk | ||||
| 2019-09-28 | syntax: don't keep a redundant c_variadic flag in the AST. | Eduard-Mihai Burtescu | -1/+0 | |
