| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 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. | ||||
| 2017-03-29 | Refactor how spans are combined in the parser. | Jeffrey Seyfried | -17/+12 | |
| 2017-03-14 | Liberalize attributes. | Jeffrey Seyfried | -7/+25 | |
| 2017-03-14 | Refactor `Attribute` to use `Path` and `TokenStream` instead of `MetaItem`. | Jeffrey Seyfried | -5/+11 | |
| 2016-11-21 | Use `Symbol` instead of `InternedString` in the AST, HIR, and various other ↵ | Jeffrey Seyfried | -8/+3 | |
| places. | ||||
| 2016-11-20 | Refactor `P<ast::MetaItem>` -> `ast::MetaItem`. | Jeffrey Seyfried | -3/+2 | |
| 2016-11-20 | Move `MetaItemKind`'s `Name` to a field of `MetaItem`. | Jeffrey Seyfried | -17/+9 | |
| 2016-11-20 | Refactor `MetaItemKind` to use `Name`s instead of `InternedString`s. | Jeffrey Seyfried | -4/+3 | |
| 2016-11-20 | Refactor away `ast::Attribute_`. | Jeffrey Seyfried | -11/+9 | |
| 2016-11-03 | Reduce the size of `Token` and make it cheaper to clone by refactoring | Jeffrey Seyfried | -1/+4 | |
| `Token::Interpolated(Nonterminal)` -> `Token::Interpolated(Rc<Nonterminal>)`. | ||||
| 2016-10-05 | Rename Parser::last_span as prev_span. | Nicholas Nethercote | -6/+6 | |
| This is a [breaking-change] for libsyntax. | ||||
| 2016-09-16 | fix top level attr spans | Mikhail Modin | -1/+1 | |
| 2016-09-10 | fix span for errors E0537, E0535 & E0536 | Mikhail Modin | -5/+5 | |
| 2016-08-25 | Implement RFC#1559: allow all literals in attributes. | Sergio Benitez | -16/+48 | |
| 2016-07-15 | syntax: Better error message for inner attr following doc comment | Aravind Gollakota | -14/+56 | |
| 2016-07-03 | prefer `if let` to match with `None => {}` arm in some places | Zack M. Davis | -6/+3 | |
| This is a spiritual succesor to #34268/8531d581, in which we replaced a number of matches of None to the unit value with `if let` conditionals where it was judged that this made for clearer/simpler code (as would be recommended by Manishearth/rust-clippy's `single_match` lint). The same rationale applies to matches of None to the empty block. | ||||
| 2016-06-23 | Move errors from libsyntax to its own crate | Jonathan Turner | -1/+2 | |
| 2016-05-03 | parser: show a helpful note on unexpected inner comment | Georg Brandl | -1/+4 | |
| Fixes: #30318. | ||||
| 2016-05-02 | replace fileline_{help,note} with {help,note} | Niko Matsakis | -3/+2 | |
| The extra filename and line was mainly there to keep the indentation relative to the main snippet; now that this doesn't include filename/line-number as a prefix, it is distracted. | ||||
| 2016-03-22 | try! -> ? | Jorge Aparicio | -8/+8 | |
| Automated conversion using the untry tool [1] and the following command: ``` $ find -name '*.rs' -type f | xargs untry ``` at the root of the Rust repo. [1]: https://github.com/japaric/untry | ||||
| 2016-02-22 | Use associated functions for libsyntax SepSeq constructors. | Corey Farwell | -2/+2 | |
| 2016-02-11 | [breaking-change] don't glob export ast::MetaItem_ | Oliver 'ker' Schneider | -3/+3 | |
| 2016-02-11 | [breaking-change] don't pub export ast::Lit_ variants | Oliver Schneider | -1/+1 | |
| 2016-01-27 | rustfmt syntax::parse | Tshepang Lekhonkhobe | -34/+34 | |
