| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-11-07 | move syntax::{parse::literal -> util::literal} | Mazdak Farrokhzad | -309/+1 | |
| 2019-11-07 | move syntax::parse::lexer::comments -> syntax::util::comments | Mazdak Farrokhzad | -322/+6 | |
| 2019-11-07 | syntax::attr: remove usage of lexer | Mazdak Farrokhzad | -2/+9 | |
| 2019-11-07 | move parse::classify -> util::classify | Mazdak Farrokhzad | -28/+3 | |
| 2019-11-07 | move PResult to librustc_errors | Mazdak Farrokhzad | -33/+29 | |
| 2019-11-07 | syntax::parser::token -> syntax::token | Mazdak Farrokhzad | -746/+17 | |
| 2019-11-07 | move unescape_error_reporting to lexer/ | Mazdak Farrokhzad | -2/+2 | |
| 2019-11-07 | syntax: simplify imports | Mazdak Farrokhzad | -5/+6 | |
| 2019-11-07 | move parse/parser.rs -> parse/parser/mod.rs | Mazdak Farrokhzad | -0/+0 | |
| 2019-11-07 | Rollup merge of #65974 - Centril:matcher-friendly-gating, r=petrochenkov | Mazdak Farrokhzad | -30/+24 | |
| A scheme for more macro-matcher friendly pre-expansion gating Pre-expansion gating will now avoid gating macro matchers that did not result in `Success(...)`. That is, the following is now OK despite `box 42` being a valid `expr` and that form being pre-expansion gated: ```rust macro_rules! m { ($e:expr) => { 0 }; // This fails on the input below due to `, foo`. (box $e:expr, foo) => { 1 }; // Successful matcher, we should get `2`. } fn main() { assert_eq!(1, m!(box 42, foo)); } ``` Closes https://github.com/rust-lang/rust/issues/65846. r? @petrochenkov cc @Mark-Simulacrum | ||||
| 2019-11-07 | syntax: use distinct FloatTy from rustc_target. | Mazdak Farrokhzad | -11/+12 | |
| 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: allow ABIs from literal macro fragments | Mazdak Farrokhzad | -22/+33 | |
| 2019-11-07 | cleanup can_begin_const_arg | Mazdak Farrokhzad | -3/+1 | |
| 2019-11-07 | parser: don't hardcode ABIs into grammar | Mazdak Farrokhzad | -42/+17 | |
| 2019-11-06 | Make doc comments cheaper with `AttrKind`. | Nicholas Nethercote | -19/+24 | |
| `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 | -4/+4 | |
| This kind of thing just makes the code harder to read. | ||||
| 2019-11-06 | revamp pre-expansion gating infra | Mazdak Farrokhzad | -30/+24 | |
| 2019-11-06 | Rollup merge of #66139 - euclio:pluralize, r=nagisa | Mazdak Farrokhzad | -8/+8 | |
| use American spelling for `pluralize!` | ||||
| 2019-11-06 | Rollup merge of #65776 - nnethercote:rename-LocalInternedString-and-more, ↵ | Mazdak Farrokhzad | -7/+7 | |
| r=estebank Rename `LocalInternedString` and more This PR renames `LocalInternedString` as `SymbolStr`, removes an unnecessary `impl` from it, improves comments, and cleans up some `SymbolStr` uses. r? @estebank | ||||
| 2019-11-06 | Rollup merge of #66098 - estebank:path-asciption-typo, r=Centril | Mazdak Farrokhzad | -4/+12 | |
| Detect `::` -> `:` typo when involving turbofish Fix #65569. | ||||
| 2019-11-06 | Rollup merge of #66054 - petrochenkov:delspan, r=estebank | Mazdak Farrokhzad | -2/+2 | |
| syntax: Avoid span arithmetic for delimiter tokens The +/-1 logic is from the time where the whole group had a single span and the delimiter spans had to be calculated from it. Now the delimiters have their own spans which are constructed by lexer or proc macro API and can be used directly. If those spans are not perfect, then it should be fixed by tweaking the corresponding lexer logic rather than by trying to add or substract `1` from the span boundaries. Fixes https://github.com/rust-lang/rust/issues/62524 r? @estebank | ||||
| 2019-11-05 | use American spelling for `pluralize!` | Andy Russell | -8/+8 | |
| 2019-11-05 | Account for typo in turbofish and suggest `::` | Esteban Küber | -4/+10 | |
| 2019-11-05 | Rollup merge of #66025 - petrochenkov:lohi, r=eddyb | Pietro Albini | -1/+1 | |
| `Span` cannot represent `span.hi < span.lo` So we can remove the corresponding checks from various code | ||||
| 2019-11-04 | Detect `::` -> `:` typo when involving turbofish | Esteban Küber | -1/+3 | |
| 2019-11-04 | Auto merge of #65838 - estebank:resilient-recovery, r=Centril | bors | -48/+93 | |
| Reduce amount of errors given unclosed delimiter When in a file with a non-terminated item, catch the error and consume the block instead of trying to recover it on a more granular way in order to reduce the amount of unrelated errors that would be fixed after adding the missing closing brace. Also point out the possible location of the missing closing brace. Fix #63690. | ||||
| 2019-11-03 | syntax: Avoid span arithmetics for delimiter tokens | Vadim Petrochenkov | -2/+2 | |
| 2019-11-02 | Remove the `AsRef` impl for `SymbolStr`. | Nicholas Nethercote | -4/+4 | |
| Because it's highly magical, which goes against the goal of keeping `SymbolStr` simple. Plus it's only used in a handful of places that only require minor changes. | ||||
| 2019-11-02 | Simplify various `Symbol` use points. | Nicholas Nethercote | -3/+3 | |
| Including removing a bunch of unnecessary `.as_str()` calls, and a bunch of unnecessary sigils. | ||||
| 2019-11-01 | `Span` cannot represent `span.hi < span.lo` | Vadim Petrochenkov | -1/+1 | |
| So we can remove the corresponding checks from various code | ||||
| 2019-10-31 | Create new error E0743 | Guillaume Gomez | -2/+5 | |
| 2019-10-30 | Do not complain about missing `fn main()` in some cases | Esteban Küber | -8/+14 | |
| 2019-10-30 | Reduce ammount of errors given unclosed delimiter | Esteban Küber | -44/+83 | |
| When in a file with a non-terminated item, catch the error and consume the block instead of trying to recover it more granularly in order to reduce the amount of unrelated errors that would be fixed after adding the missing closing brace. Also point out the possible location of the missing closing brace. | ||||
| 2019-10-28 | review comments | Esteban Küber | -42/+39 | |
| 2019-10-28 | Tweak unexpected token wording | Esteban Küber | -5/+5 | |
| 2019-10-28 | Use heuristics to recover parsing of missing `;` | Esteban Küber | -76/+96 | |
| - Detect `,` and `:` typos where `;` was intended. - When the next token could have been the start of a new statement, detect a missing semicolon. | ||||
| 2019-10-28 | Rollup merge of #65792 - Centril:split-syntax-2, r=petrochenkov | Mazdak Farrokhzad | -1/+22 | |
| rustc, rustc_passes: reduce deps on rustc_expand Part of #65324. r? @petrochenkov | ||||
| 2019-10-27 | syntax/attr: reduce reliance on parser | Mazdak Farrokhzad | -1/+22 | |
| 2019-10-26 | review comments and tweaks | Esteban Küber | -1/+1 | |
| 2019-10-25 | Rollup merge of #65790 - Centril:move-report-invalid, r=davidtwco | Mazdak Farrokhzad | -19/+20 | |
| move report_invalid_macro_expansion_item to item.rs From https://github.com/rust-lang/rust/pull/65324. r? @Mark-Simulacrum | ||||
| 2019-10-25 | Rollup merge of #65789 - Centril:with-desugared-doc, r=davidtwco | Mazdak Farrokhzad | -2/+3 | |
| move Attribute::with_desugared_doc to librustdoc From https://github.com/rust-lang/rust/pull/65324. r? @varkor | ||||
| 2019-10-25 | Rollup merge of #65787 - Centril:panictry, r=davidtwco | Mazdak Farrokhzad | -0/+17 | |
| move panictry! to where it is used. From https://github.com/rust-lang/rust/pull/65324 r? @davidtwco | ||||
| 2019-10-25 | move report_invalid_macro_expansion_item to item.rs | Mazdak Farrokhzad | -19/+20 | |
| 2019-10-25 | move Attribute::with_desugared_doc to librustdoc | Mazdak Farrokhzad | -2/+3 | |
| 2019-10-25 | move panictry! to where it is used. | Mazdak Farrokhzad | -0/+17 | |
| 2019-10-24 | pre-expansion gate type_ascription | Mazdak Farrokhzad | -0/+1 | |
| 2019-10-24 | pre-expansion gate box_syntax | Mazdak Farrokhzad | -1/+3 | |
| 2019-10-24 | pre-expansion gate label_break_value | Mazdak Farrokhzad | -0/+4 | |
| 2019-10-24 | pre-expansion gate try_blocks | Mazdak Farrokhzad | -1/+3 | |
| 2019-10-24 | pre-expansion gate exclusive_range_pattern | Mazdak Farrokhzad | -2/+7 | |
