| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 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 | -2/+2 | |
| 2020-03-06 | Auto merge of #69586 - petrochenkov:unmerge, r=Centril | bors | -9/+4 | |
| ast: Unmerge structures for associated items and foreign items Follow-up to https://github.com/rust-lang/rust/pull/69194. r? @Centril | ||||
| 2020-03-01 | ast: Unmerge structures for associated items and foreign items | Vadim Petrochenkov | -9/+4 | |
| 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-03-01 | Auto merge of #69592 - petrochenkov:nosyntax, r=Centril | bors | -12/+12 | |
| Rename `libsyntax` to `librustc_ast` This was the last rustc crate that wasn't following the `rustc_*` naming convention. Follow-up to https://github.com/rust-lang/rust/pull/67763. | ||||
| 2020-02-29 | Rename `syntax` to `rustc_ast` in source code | Vadim Petrochenkov | -12/+12 | |
| 2020-02-29 | Make it build again | Vadim Petrochenkov | -1/+1 | |
| 2020-02-29 | don't use question mark operator on Err(), return the Result directly instead. | Matthias Krüger | -1/+1 | |
| 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 | -20/+22 | |
| 2020-02-24 | add `Span` to `ast::Defaultness::Default`. | Mazdak Farrokhzad | -1/+1 | |
| 2020-02-23 | Rollup merge of #69375 - Menschenkindlein:master, r=Dylan-DPC | Dylan DPC | -7/+7 | |
| Rename CodeMap to SourceMap follow up See https://github.com/rust-lang/rust/issues/51574 | ||||
| 2020-02-23 | Rollup merge of #69361 - Centril:free-ty-alias, r=petrochenkov | Dylan DPC | -5/+11 | |
| parse: allow `type Foo: Ord` syntactically This addresses: > (Work still remains to fuse this with free type aliases, but this can be done later.) in https://github.com/rust-lang/rust/pull/69194. r? @petrochenkov | ||||
| 2020-02-22 | Rename CodeMap to SourceMap follow up | Maxim Zholobak | -7/+7 | |
| 2020-02-22 | parse: allow `type Foo: Ord` syntactically. | Mazdak Farrokhzad | -5/+11 | |
| 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 | -25/+34 | |
| 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 | -11/+11 | |
| 2020-02-15 | parse extern consts | Mazdak Farrokhzad | -2/+3 | |
| 2020-02-15 | parse associated statics. | Mazdak Farrokhzad | -2/+4 | |
| 2020-02-15 | ast/parser: fuse `static` & `const` grammars in all contexts. | Mazdak Farrokhzad | -3/+3 | |
| 2020-02-15 | ast: make `= <expr>;` optional in free statics/consts. | Mazdak Farrokhzad | -10/+16 | |
| 2020-02-15 | ast: normalize `ForeignItemKind::Ty` & `AssocItemKind::TyAlias`. | Mazdak Farrokhzad | -3/+3 | |
| 2020-02-15 | ast: move Generics into AssocItemKinds | Mazdak Farrokhzad | -7/+7 | |
| 2020-02-13 | IsAsync -> enum Async { Yes { span: Span, .. }, No } | Mazdak Farrokhzad | -6/+6 | |
| use new span for better diagnostics. | ||||
| 2020-02-13 | Constness -> enum Const { Yes(Span), No } | Mazdak Farrokhzad | -8/+8 | |
| Same idea for `Unsafety` & use new span for better diagnostics. | ||||
| 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 | -7/+9 | |
| also refactor `FnKind` and `visit_assoc_item` visitors | ||||
| 2020-02-02 | Fix ICE with save-analysis | Yuki Okushi | -2/+2 | |
| 2020-02-01 | syntax::print -> new crate rustc_ast_pretty | Mazdak Farrokhzad | -14/+12 | |
| 2020-01-30 | Use `P` for `NtTraitItem`, `NtImplItem`, and `NtForeignItem`. | Nicholas Nethercote | -2/+2 | |
| This commit reduces the size of `Nonterminal` from a whopping 240 bytes to 72 bytes (on x86-64), which gets it below the `memcpy` threshold. It also removes some impedance mismatches with `Annotatable`, which already uses `P` for these variants. | ||||
| 2020-01-26 | Don't use ExpnKind::descr to get the name of a bang macro. | Eduard-Mihai Burtescu | -7/+14 | |
| 2020-01-19 | Add `constness` field to `ast::ItemKind::Impl` | Dylan MacKenzie | -0/+4 | |
| 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 | -15/+15 | |
| 2020-01-05 | Remove rustc_hir reexports in rustc::hir. | Mazdak Farrokhzad | -7/+8 | |
| 2020-01-02 | Normalize `syntax::source_map` imports. | Mazdak Farrokhzad | -2/+2 | |
| 2020-01-01 | Rename `syntax_pos` to `rustc_span` in source code | Vadim Petrochenkov | -4/+4 | |
| 2019-12-30 | Make things build again | Vadim Petrochenkov | -1/+1 | |
| 2019-12-28 | doc comments: Less attribute mimicking | Vadim Petrochenkov | -9/+9 | |
| 2019-12-22 | Format the world | Mark Rousskov | -674/+475 | |
| 2019-12-21 | Use Arena inside hir::Item. | Camille GILLOT | -2/+2 | |
| 2019-12-20 | 1. ast::Mutability::{Mutable -> Mut, Immutable -> Not}. | Mazdak Farrokhzad | -6/+6 | |
| 2. mir::Mutability -> ast::Mutability. | ||||
| 2019-12-12 | `AssocImplKind::{Method -> Fn}`. | Mazdak Farrokhzad | -2/+2 | |
| 2019-12-12 | Remove `ast::{Impl,Trait}{Item,ItemKind}`. | Mazdak Farrokhzad | -13/+13 | |
| 2019-12-12 | parse: refactor fun ret ty & param ty | Mazdak Farrokhzad | -5/+4 | |
| 2019-12-12 | Unify `{Trait,Impl}ItemKind::TyAlias` structures. | Mazdak Farrokhzad | -1/+2 | |
