| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-12-12 | `AssocImplKind::{Method -> Fn}`. | Mazdak Farrokhzad | -2/+1 | |
| 2019-12-12 | Remove `ast::{Impl,Trait}{Item,ItemKind}`. | Mazdak Farrokhzad | -10/+4 | |
| 2019-12-12 | parse: refactor fun ret ty & param ty | Mazdak Farrokhzad | -2/+2 | |
| 2019-12-12 | Unify associated function parsing. | Mazdak Farrokhzad | -0/+1 | |
| 2019-12-12 | Unify `{Impl,Trait}Item` as `AssocItem`. | Mazdak Farrokhzad | -17/+24 | |
| 2019-12-12 | Unify `{Trait,Impl}ItemKind::TyAlias` structures. | Mazdak Farrokhzad | -1/+1 | |
| 2019-12-12 | `TraitItemKind::Type` -> `TraitItemKind::TyAlias`. | Mazdak Farrokhzad | -1/+1 | |
| 2019-12-12 | Use `Option` in `ImplItemKind::Method`. | Mazdak Farrokhzad | -1/+1 | |
| 2019-12-12 | Use `Option` in `ImplItemKind::Const`. | Mazdak Farrokhzad | -2/+2 | |
| 2019-12-12 | Alias `TraitItem` & `ImplItem`. | Mazdak Farrokhzad | -17/+5 | |
| Allow defaultness on trait items syntactically. | ||||
| 2019-12-07 | Make `ForeignItem` an alias of `Item`. | Mazdak Farrokhzad | -12/+3 | |
| 2019-12-03 | Deduplicate CrateConfig | Mark Rousskov | -4/+1 | |
| 2019-12-03 | Move BufferedEarlyLint to librustc_session | Mark Rousskov | -41/+2 | |
| 2019-12-02 | Address review comments | Vadim Petrochenkov | -9/+13 | |
| 2019-12-02 | syntax: Use `ast::MacArgs` for macro definitions | Vadim Petrochenkov | -7/+1 | |
| 2019-12-02 | syntax: Use `ast::MacArgs` for attributes | Vadim Petrochenkov | -4/+4 | |
| 2019-12-02 | syntax: Remove redundant span from `ast::Mac` | Vadim Petrochenkov | -7/+14 | |
| Also remove a couple of redundant `visit_mac` asserts | ||||
| 2019-12-02 | syntax: Introduce a struct `MacArgs` for macro arguments | Vadim Petrochenkov | -15/+69 | |
| 2019-11-26 | Rollup merge of #66719 - Mark-Simulacrum:int-normalization, r=Centril | Tyler Mandry | -0/+24 | |
| Store pointer width as u32 on Config This removes the dependency on IntTy, UintTy from Session. It's not obviously a win, but it seems a bit odd to store the AST IntTy/UintTy in Session, rather we store the pointer width as an integer and add normalization methods to IntTy and UintTy. | ||||
| 2019-11-25 | Auto merge of #66279 - cjgillot:hashstable, r=Zoxc | bors | -6/+16 | |
| Use proc-macro to derive HashStable everywhere Hello, A second proc-macro is added to derive HashStable for crates librustc depends on. This proc-macro `HashStable_Generic` (to bikeshed) allows to decouple code and strip much of librustc's boilerplate. Still, two implementations `Span` and `TokenKind` require to be placed in librustc. The latter only depends on the `bug` macro. Advise welcome on how to sever that link. A trait `StableHasingContextLike` has been introduced at each crate root, in order to handle those implementations which require librustc's very `StableHashingContext`. This overall effort allowed to remove the `impl_stable_hash_for` macro. Each commit passes the `x.py check`. I still have to double check there was no change in the implementation. | ||||
| 2019-11-24 | Store ptr_width as u32 on Config | Mark Rousskov | -0/+24 | |
| This removes the dependency on IntTy, UintTy from Session. | ||||
| 2019-11-24 | Add raw address of expressions to the AST and HIR | Matthew Jasper | -3/+18 | |
| 2019-11-22 | Derives for ast. | Camille GILLOT | -4/+4 | |
| 2019-11-22 | Invert implementations for TokenKind. | Camille GILLOT | -1/+1 | |
| Also export a bunch of Token-related impls. | ||||
| 2019-11-22 | Export HashStable for DelimSpan, Lit and Path. | Camille GILLOT | -1/+11 | |
| 2019-11-22 | Rollup merge of #66183 - Centril:empty-vis-trait-decl, r=petrochenkov | Mazdak Farrokhzad | -21/+29 | |
| *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-17 | Remove extern crate. | Camille GILLOT | -0/+1 | |
| 2019-11-17 | HashStable in libsyntax. | Camille GILLOT | -4/+3 | |
| 2019-11-17 | Further HashStable_Generic derives. | Camille GILLOT | -1/+1 | |
| 2019-11-17 | Use proc_macro for HashStable derive in libsyntax. | Camille GILLOT | -15/+18 | |
| 2019-11-17 | Address review comments | Vadim Petrochenkov | -4/+1 | |
| 2019-11-16 | ast: Keep string literals in ABIs precisely | Vadim Petrochenkov | -12/+30 | |
| 2019-11-16 | ast: Keep `extern` qualifiers in functions more precisely | Vadim Petrochenkov | -11/+16 | |
| 2019-11-14 | TAIT: use hack in ->HIR to avoid more changes | Mazdak Farrokhzad | -0/+9 | |
| 2019-11-14 | TAIT: remove `OpaqueTy` in AST. | Mazdak Farrokhzad | -6/+0 | |
| 2019-11-11 | Tiny cleanup to size assertions | Vadim Petrochenkov | -4/+1 | |
| 2019-11-11 | Auto merge of #66252 - cjgillot:trees, r=oli-obk | bors | -15/+53 | |
| Merge repeated definitions Step forward on #66149 I may need further context to understand the need for a separate crate. Also, please tell me if you think of other definitions to merge. | ||||
| 2019-11-11 | syntactically allow visibility on trait item & enum variant | Mazdak Farrokhzad | -21/+29 | |
| 2019-11-10 | Merge hir::GeneratorMovability into ast::Movability. | Camille GILLOT | -2/+6 | |
| 2019-11-10 | Merge hir::Unsafety into ast::Unsafety. | Camille GILLOT | -13/+23 | |
| 2019-11-10 | Merge hir::Mutability into ast::Mutability. | Camille GILLOT | -0/+24 | |
| 2019-11-10 | move syntax::parse -> librustc_parse | Mazdak Farrokhzad | -3/+3 | |
| also move MACRO_ARGUMENTS -> librustc_parse | ||||
| 2019-11-08 | ast::ItemKind::Fn: use ast::FnSig | Mazdak Farrokhzad | -1/+1 | |
| 2019-11-08 | ast::MethodSig -> ast::FnSig | Mazdak Farrokhzad | -5/+5 | |
| 2019-11-07 | syntax::parser::token -> syntax::token | Mazdak Farrokhzad | -1/+1 | |
| 2019-11-07 | syntax: use distinct FloatTy from rustc_target. | Mazdak Farrokhzad | -40/+51 | |
| We also sever syntax's dependency on rustc_target as a result. This should slightly improve pipe-lining. Moreover, some cleanup is done in related code. | ||||
| 2019-11-07 | parser: don't hardcode ABIs into grammar | Mazdak Farrokhzad | -2/+22 | |
| 2019-11-06 | Make doc comments cheaper with `AttrKind`. | Nicholas Nethercote | -3/+16 | |
| `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 | -6/+0 | |
| This kind of thing just makes the code harder to read. | ||||
| 2019-11-02 | Simplify various `Symbol` use points. | Nicholas Nethercote | -1/+1 | |
| Including removing a bunch of unnecessary `.as_str()` calls, and a bunch of unnecessary sigils. | ||||
