| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2020-03-15 | Rollup merge of #69589 - petrochenkov:maccall, r=Centril | Mazdak Farrokhzad | -1/+1 | |
| ast: `Mac`/`Macro` -> `MacCall` It's now obvious that these refer to macro calls rather than to macro definitions. It's also a single name instead of two different names in different places. `rustc_expand` usually calls macro calls in a wide sense (including attributes and derives) "macro invocations", but structures and variants renamed in this PR are only relevant to fn-like macros, so it's simpler and clearer to just call them calls. cc https://github.com/rust-lang/rust/pull/63586#discussion_r314232513 r? @eddyb | ||||
| 2020-03-14 | rustc_metadata: Remove `rmeta::MacroDef` | Vadim Petrochenkov | -13/+0 | |
| Use `ast::MacroDef` instead. Also remove `Session::imported_macro_spans`, external macros have spans now. | ||||
| 2020-03-12 | ast: `Mac`/`Macro` -> `MacCall` | Vadim Petrochenkov | -1/+1 | |
| 2020-03-12 | Rollup merge of #69674 - mark-i-m:assoc-fn, r=matthewjasper | Mazdak Farrokhzad | -1/+1 | |
| Rename DefKind::Method and TraitItemKind::Method r? @eddyb, @Centril, or @matthewjasper cc #69498 #60163 | ||||
| 2020-03-08 | Rollup merge of #69422 - JohnTitor:remove-unwrap, r=Xanewok | Mazdak Farrokhzad | -2/+5 | |
| Remove use of `unwrap()` from save-analysis Fix #69409, fix #69416 | ||||
| 2020-03-06 | Don't redundantly repeat field names (clippy::redundant_field_names) | Matthias Krüger | -1/+1 | |
| 2020-03-06 | Auto merge of #69586 - petrochenkov:unmerge, r=Centril | bors | -2/+1 | |
| ast: Unmerge structures for associated items and foreign items Follow-up to https://github.com/rust-lang/rust/pull/69194. r? @Centril | ||||
| 2020-03-03 | DefKind::Method -> DefKind::AssocFn | Mark Mansi | -1/+1 | |
| 2020-03-01 | ast: Unmerge structures for associated items and foreign items | Vadim Petrochenkov | -2/+1 | |
| 2020-03-01 | Rollup merge of #69605 - JohnTitor:opt-def-id, r=petrochenkov | Yuki Okushi | -1/+1 | |
| Use `opt_def_id()` over `def_id()` Fixes #69588 | ||||
| 2020-03-01 | Use `opt_def_id()` over `def_id()` | Yuki Okushi | -1/+1 | |
| 2020-02-29 | Rename `syntax` to `rustc_ast` in source code | Vadim Petrochenkov | -3/+3 | |
| 2020-02-25 | Address review comment | Yuki Okushi | -11/+11 | |
| 2020-02-24 | Remove use of `unwrap()` from save-analysis | Yuki Okushi | -8/+11 | |
| 2020-02-24 | parse/ast: move `Defaultness` into variants. | Mazdak Farrokhzad | -4/+5 | |
| 2020-02-22 | Rename CodeMap to SourceMap follow up | Maxim Zholobak | -5/+5 | |
| 2020-02-19 | Make lookup of associated item by name O(log n) | Dylan MacKenzie | -9/+10 | |
| 2020-02-18 | Rollup merge of #69194 - Centril:assoc-extern-fuse, r=petrochenkov | Mazdak Farrokhzad | -2/+2 | |
| parse: fuse associated and extern items up to defaultness Language changes: - The grammar of extern `type` aliases is unified with associated ones, and becomes: ```rust TypeItem = "type" ident generics {":" bounds}? where_clause {"=" type}? ";" ; ``` Semantic restrictions (`ast_validation`) are added to forbid any parameters in `generics`, any bounds in `bounds`, and any predicates in `where_clause`, as well as the presence of a type expression (`= u8`). (Work still remains to fuse this with free `type` aliases, but this can be done later.) - The grammar of constants and static items (free, associated, and extern) now permits the absence of an expression, and becomes: ```rust GlobalItem = {"const" {ident | "_"} | "static" "mut"? ident} {"=" expr}? ";" ; ``` - A semantic restriction is added to enforce the presence of the expression (the body). - A semantic restriction is added to reject `const _` in associated contexts. Together, these changes allow us to fuse the grammar of associated items and extern items up to `default`ness which is the main goal of the PR. ----------------------- We are now very close to fully fusing the entirely of item parsing and their ASTs. To progress further, we must make a decision: should we parse e.g. `default use foo::bar;` and whatnot? Accepting that is likely easiest from a parsing perspective, as it does not require using look-ahead, but it is perhaps not too onerous to only accept it for `fn`s (and all their various qualifiers), `const`s, `static`s, and `type`s. r? @petrochenkov | ||||
| 2020-02-17 | Rename `FunctionRetTy` to `FnRetTy` | Yuki Okushi | -2/+2 | |
| 2020-02-15 | parse extern consts | Mazdak Farrokhzad | -1/+1 | |
| 2020-02-15 | ast/parser: fuse `static` & `const` grammars in all contexts. | Mazdak Farrokhzad | -1/+1 | |
| 2020-02-15 | ast: normalize `ForeignItemKind::Ty` & `AssocItemKind::TyAlias`. | Mazdak Farrokhzad | -1/+1 | |
| 2020-02-08 | Make `associated_items` query return a slice | Jonas Schievink | -0/+2 | |
| 2020-02-05 | parser: merge `fn` grammars wrt. bodies & headers | Mazdak Farrokhzad | -2/+2 | |
| also refactor `FnKind` and `visit_assoc_item` visitors | ||||
| 2020-02-01 | syntax::print -> new crate rustc_ast_pretty | Mazdak Farrokhzad | -8/+6 | |
| 2020-01-26 | Don't use ExpnKind::descr to get the name of a bang macro. | Eduard-Mihai Burtescu | -7/+14 | |
| 2020-01-17 | Use named fields for `hir::ItemKind::Impl` | Dylan MacKenzie | -2/+2 | |
| 2020-01-17 | Use named fields for `ast::ItemKind::Impl` | Dylan MacKenzie | -6/+6 | |
| 2020-01-05 | Remove rustc_hir reexports in rustc::hir. | Mazdak Farrokhzad | -4/+4 | |
| 2020-01-02 | Normalize `syntax::source_map` imports. | Mazdak Farrokhzad | -1/+1 | |
| 2020-01-01 | Rename `syntax_pos` to `rustc_span` in source code | Vadim Petrochenkov | -1/+1 | |
| 2019-12-28 | doc comments: Less attribute mimicking | Vadim Petrochenkov | -9/+9 | |
| 2019-12-22 | Format the world | Mark Rousskov | -364/+260 | |
| 2019-12-21 | Use Arena inside hir::Item. | Camille GILLOT | -2/+2 | |
| 2019-12-20 | 1. ast::Mutability::{Mutable -> Mut, Immutable -> Not}. | Mazdak Farrokhzad | -1/+1 | |
| 2. mir::Mutability -> ast::Mutability. | ||||
| 2019-11-08 | ast::ItemKind::Fn: use ast::FnSig | Mazdak Farrokhzad | -2/+2 | |
| 2019-11-07 | move syntax::parse::lexer::comments -> syntax::util::comments | Mazdak Farrokhzad | -1/+1 | |
| 2019-11-06 | Make doc comments cheaper with `AttrKind`. | Nicholas Nethercote | -2/+2 | |
| `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-06 | Remove unnecessary `Deref` impl for `Attribute`. | Nicholas Nethercote | -1/+1 | |
| This kind of thing just makes the code harder to read. | ||||
| 2019-10-13 | Use empty typeck tables when nesting on items without those | Igor Matuszewski | -0/+4 | |
| 2019-10-05 | Rollup merge of #64708 - SimonSapin:option-deref, r=Centril | Tyler Mandry | -1/+0 | |
| Stabilize `Option::as_deref` and `Option::as_deref_mut` The tracking issue https://github.com/rust-lang/rust/issues/50264 still has unresolved question for the corresponding `Result` methods. | ||||
| 2019-09-26 | Rename `ForeignItem.node` to `ForeignItem.kind` | varkor | -1/+1 | |
| 2019-09-26 | Rename `Item.node` to `Item.kind` | varkor | -3/+3 | |
| 2019-09-26 | Rename `Ty.node` to `Ty.kind` | varkor | -2/+2 | |
| 2019-09-26 | Rename `Pat.node` to `Pat.kind` | varkor | -5/+5 | |
| 2019-09-26 | Rename `Expr.node` to `Expr.kind` | varkor | -3/+3 | |
| For both `ast::Expr` and `hir::Expr`. | ||||
| 2019-09-25 | Rename `sty` to `kind` | varkor | -3/+3 | |
| 2019-09-23 | Stabilize Option::deref and Option::deref_mut | Simon Sapin | -1/+0 | |
| The tracking issue https://github.com/rust-lang/rust/issues/50264 still has unresolved question for the corresponding `Result` methods. | ||||
| 2019-09-15 | save-analysis: Deduplicate lookup_{d,r}ef_id functions | Igor Matuszewski | -4/+4 | |
| 2019-09-05 | or-patterns: adjust save_analysis wrt. `process_var_decl{_multi}`. | Mazdak Farrokhzad | -0/+1 | |
