| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-10-16 | move parse::attr -> parse::parser::attr | Mazdak Farrokhzad | -330/+0 | |
| 2019-10-14 | Remove the `Option` in `TokenStream`. | Nicholas Nethercote | -1/+1 | |
| It means an allocation is required to create an empty `TokenStream`, but all other operations are simpler and marginally faster due to not having to check for `None`. Overall it simplifies the code for a negligible performance effect. The commit also removes `TokenStream::empty` by implementing `Default`, which is now possible. | ||||
| 2019-10-01 | Address review comments | Vadim Petrochenkov | -2/+2 | |
| 2019-09-30 | syntax: Support modern attribute syntax in the `meta` matcher | Vadim Petrochenkov | -13/+18 | |
| 2019-09-30 | syntax: Split `ast::Attribute` into container and inner parts | Vadim Petrochenkov | -2/+1 | |
| 2019-09-26 | Rename `MetaItem.node` to `MetaItem.kind` | varkor | -3/+3 | |
| 2019-09-26 | Rename `Lit.node` to `Lit.kind` | varkor | -1/+1 | |
| 2019-09-23 | Auto merge of #64272 - Mark-Simulacrum:parallel-handler, r=estebank | bors | -2/+2 | |
| Refactor librustc_errors::Handler API This should be reviewed by-commit. The last commit moves all fields into an inner struct behind a single lock; this is done to prevent possible deadlocks in a multi-threaded compiler, as well as inconsistent state observation. | ||||
| 2019-09-17 | Remove Handler::cancel | Mark Rousskov | -2/+2 | |
| 2019-09-11 | Stabilize `param_attrs` in Rust 1.39.0 | Caio | -7/+0 | |
| 2019-09-07 | Aggregation of cosmetic changes made during work on REPL PRs: libsyntax | Alexander Regueiro | -19/+19 | |
| 2019-09-06 | Move injection of attributes from command line to `libsyntax_ext` | Vadim Petrochenkov | -1/+1 | |
| 2019-08-27 | Cleanup: Consistently use `Param` instead of `Arg` #62426 | Kevin Per | -1/+1 | |
| 2019-08-20 | Use dedicated type for spans in pre-expansion gating. | Mazdak Farrokhzad | -3/+2 | |
| 2019-07-31 | Remove AttrId from Attribute constructors | Mark Rousskov | -2/+2 | |
| 2019-07-27 | Treat doc comments separately | Evgenii P | -8/+20 | |
| 2019-07-27 | Make more informative error on outer attr after inner | Evgenii P | -15/+32 | |
| 2019-07-16 | normalize use of backticks in compiler messages for libsyntax/parse | Samy Kacimi | -1/+1 | |
| https://github.com/rust-lang/rust/issues/60532 | ||||
| 2019-06-09 | Allow attributes in formal function parameters | Caio | -1/+10 | |
| 2019-06-07 | parser: `self.span` -> `self.token.span` | Vadim Petrochenkov | -6/+6 | |
| 2019-06-06 | syntax: Switch function parameter order in `TokenTree::token` | Vadim Petrochenkov | -1/+1 | |
| 2019-06-06 | syntax: Use `Token` in `Parser` | Vadim Petrochenkov | -6/+6 | |
| 2019-06-06 | syntax: Use `Token` in `TokenTree::Token` | Vadim Petrochenkov | -1/+1 | |
| 2019-03-29 | Use `SmallVec` in `TokenStreamBuilder`. | Nicholas Nethercote | -1/+2 | |
| This reduces by 12% the number of allocations done for a "clean incremental" of `webrender_api`, which reduces the instruction count by about 0.5%. It also reduces instruction counts by up to 1.4% across a range of rustc-perf benchmark runs. | ||||
| 2019-03-16 | Fix rebase | Vadim Petrochenkov | -2/+0 | |
| 2019-03-16 | Refactor away `NestedMetaItemKind` | Vadim Petrochenkov | -3/+2 | |
| Remove methods `Attribute::span` and `MetaItem::span` duplicating public fields | ||||
| 2019-03-16 | Rename `MetaItem::ident` to `MetaItem::path` | Vadim Petrochenkov | -3/+3 | |
| 2019-03-06 | Surround found token with ` | Esteban Küber | -1/+1 | |
| 2019-03-05 | On incorrect cfg literal/identifier, point at the right span | Esteban Küber | -1/+1 | |
| 2019-02-25 | Restrict value in key-value attributes to literals | Vadim Petrochenkov | -4/+14 | |
| 2019-02-18 | Remove `LazyTokenStream`. | Nicholas Nethercote | -2/+2 | |
| It's present within `Token::Interpolated` as an optimization, so that if a nonterminal is converted to a `TokenStream` multiple times, the first-computed value is saved and reused. But in practice it's not needed. `interpolated_to_tokenstream()` is a cold function: it's only called a few dozen times while compiling rustc itself, and a few hundred times across the entire `rustc-perf` suite. Furthermore, when it is called, it is almost always the first conversion, so no benefit is gained from it. So this commit removes `LazyTokenStream`, along with the now-unnecessary `Token::interpolated()`. As well as a significant simplification, the removal speeds things up slightly, mostly due to not having to `drop` the `LazyTokenStream` instances. | ||||
| 2019-02-07 | libsyntax => 2018 | Taiki Endo | -8/+10 | |
| 2018-12-25 | Remove licenses | Mark Rousskov | -10/+0 | |
| 2018-12-12 | Rename `TokenStream::concat` and remove `TokenStream::concat_rc_vec`. | Nicholas Nethercote | -1/+1 | |
| `TokenStream::new` is a better name for the former, and the latter is now just equivalent to `TokenStream::Stream`. | ||||
| 2018-12-04 | cleanup: remove static lifetimes from consts | ljedrz | -2/+2 | |
| 2018-08-19 | mv (mod) codemap source_map | Donato Sciarra | -1/+1 | |
| 2018-08-15 | syntax: Enforce attribute grammar in the parser | Vadim Petrochenkov | -5/+29 | |
| 2018-07-14 | Remove most of `PartialEq` impls from AST and HIR structures | Vadim Petrochenkov | -2/+2 | |
| 2018-06-09 | Crate-ify and delete unused code in syntax::parse | Mark Simulacrum | -6/+5 | |
| 2018-05-02 | make it compile again | flip1995 | -3/+3 | |
| 2018-05-02 | Allow Path for name of MetaItem | Seiichi Uchida | -3/+4 | |
| 2018-04-06 | Use `Ident` instead of `Name` in `MetaItem` | Vadim Petrochenkov | -3/+2 | |
| 2018-04-06 | Remove more duplicated spans | Vadim Petrochenkov | -1/+1 | |
| 2018-03-17 | improve attribute trailing semicolon error | csmoe | -10/+1 | |
| 2017-10-30 | edit and fix bad spacing of inner-attribute-not-allowed note | Zack M. Davis | -5/+4 | |
| This multiline string literal was missing a backslash, leaving an awkward newline and 35 spaces in the middle of the message. But while we're here, the existing message seems kind of long in comparison to similar notes: to cut it down, we excise the mentions of doc comments, which seems sensible because we know that this erroneous attribute is not a doc comment (notice the `is_sugared_doc: false` at the end of the function; if it had been a doc comment, that error would get set in the `token::DocComment` match branch of `parse_outer_attributes`). | ||||
| 2017-08-18 | Auto merge of #43904 - topecongiro:libsyntax/parse-attr, r=petrochenkov | bors | -6/+4 | |
| Eat open paren when parsing list in libsyntax/parse/attr.rs This PR adds a small refactoring: ```diff pub fn parse_meta_item_kind(&mut self) -> PResult<'a, ast::MetaItemKind> { Ok(if self.eat(&token::Eq) { ast::MetaItemKind::NameValue(self.parse_unsuffixed_lit()?) - } else if self.token == token::OpenDelim(token::Paren) { + } else if self.eat(&token::OpenDelim(token::Paren)) { ast::MetaItemKind::List(self.parse_meta_seq()?) } else { - self.eat(&token::OpenDelim(token::Paren)); ast::MetaItemKind::Word }) } ``` in `parse_meta_item_kind()`, the parser calls `self.eat(&token::OpenDelim(token::Paren));` before returning `ast::MetaItemKind::Word` just to add `(` to expected token. It seems more natural to eat the paren when parsing `ast::MetaItemKind::List`. | ||||
| 2017-08-16 | Eat open paren when parsing list | Seiichi Uchida | -6/+4 | |
| 2017-08-15 | use field init shorthand EVERYWHERE | Zack M. Davis | -4/+4 | |
| Like #43008 (f668999), but _much more aggressive_. | ||||
| 2017-06-26 | Add `LazyTokenStream`. | Jeffrey Seyfried | -2/+2 | |
| 2017-05-12 | Fix some clippy warnings in libsyntax | Andre Bogus | -2/+2 | |
| This is mostly removing stray ampersands, needless returns and lifetimes. | ||||
