| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2020-04-24 | Avoid unused Option::map results | Josh Stone | -2/+2 | |
| These are changes that would be needed if we add `#[must_use]` to `Option::map`, per #71484. | ||||
| 2020-03-21 | parse: nix unused `root_module_name`. | Mazdak Farrokhzad | -5/+0 | |
| 2020-03-18 | {rustc_parse::parser -> rustc_expand}::module | Mazdak Farrokhzad | -2/+0 | |
| 2020-03-18 | outline modules: parse -> expand. | Mazdak Farrokhzad | -32/+1 | |
| 2020-03-18 | expand: use push_directory | Mazdak Farrokhzad | -1/+1 | |
| 2020-03-09 | rustc_parse: Remove `Parser::normalized(_prev)_token` | Vadim Petrochenkov | -37/+5 | |
| 2020-03-09 | rustc_ast: Introduce `Token::uninterpolated_span` | Vadim Petrochenkov | -3/+3 | |
| 2020-03-09 | rustc_parse: Use `Token::ident` where possible | Vadim Petrochenkov | -4/+4 | |
| 2020-03-01 | Rollup merge of #69579 - petrochenkov:noprevspan, r=Centril | Yuki Okushi | -19/+21 | |
| parser: Remove `Parser::prev_span` Follow-up to https://github.com/rust-lang/rust/pull/69384. r? @Centril | ||||
| 2020-02-29 | Rename `syntax` to `rustc_ast` in source code | Vadim Petrochenkov | -7/+9 | |
| 2020-02-29 | parser: Remove `Parser::prev_span` | Vadim Petrochenkov | -8/+10 | |
| 2020-02-29 | parser: `prev_span` -> `prev_token.span` | Vadim Petrochenkov | -11/+11 | |
| 2020-02-28 | Rollup merge of #69384 - petrochenkov:nounnorm, r=Centril | Mazdak Farrokhzad | -25/+23 | |
| parser: `token` -> `normalized_token`, `nonnormalized_token` -> `token` So, after https://github.com/rust-lang/rust/pull/69006, its follow-ups and an attempt to remove `Parser::prev_span` I came to the conclusion that the unnormalized token and its span is what you want in most cases, so it should be default. Normalization only makes difference in few cases where we are checking against `token::Ident` or `token::Lifetime` specifically. This PR uses `normalized_token` for those cases. Using normalization explicitly means that people writing code should remember about `NtIdent` and `NtLifetime` in general. (That is alleviated by the fact that `token.ident()` and `fn parse_ident_*` are already written.) Remembering about `NtIdent`, was, however, already the case, kind of, because the implicit normalization was performed only for the current/previous token, but not for things like `look_ahead`. As a result, most of token classification methods in `token.rs` already take `NtIdent` into account (this PR fixes a few pre-existing minor mistakes though). The next step is removing `normalized(_prev)_token` entirely and replacing it with `token.ident()` (mostly) and `token.normalize()` (occasionally). I want to make it a separate PR for that and run it though perf. `normalized_token` filled on every bump has both a potential to avoid repeated normalization, and to do unnecessary work in advance (it probably doesn't matter anyway, the normalization is very cheap). r? @Centril | ||||
| 2020-02-27 | don't use .into() to convert types into identical types. | Matthias Krüger | -4/+3 | |
| example: let s: String = format!("hello").into(); | ||||
| 2020-02-24 | parser: `token` -> `normalized_token`, `nonnormalized_token` -> `token` | Vadim Petrochenkov | -25/+23 | |
| 2020-02-22 | parser: Cleanup `Parser::bump_with` and its uses | Vadim Petrochenkov | -127/+51 | |
| 2020-02-17 | parser: Remove `Option`s from unnormalized tokens | Vadim Petrochenkov | -36/+19 | |
| They are always set synchronously with normalized tokens now | ||||
| 2020-02-17 | parser: Set previous and unnormalized tokens in couple more places | Vadim Petrochenkov | -4/+4 | |
| 2020-02-17 | parser: Do not call `bump` recursively | Vadim Petrochenkov | -43/+32 | |
| Token normalization is merged directly into `bump`. Special "unknown macro variable" diagnostic for unexpected `$`s is removed as preventing legal code from compiling. | ||||
| 2020-02-13 | parser: misc small item related improvements & cleanups. | Mazdak Farrokhzad | -0/+5 | |
| 2020-02-13 | parser: move `ban_async_in_2015` to `fn` parsing & improve it. | Mazdak Farrokhzad | -13/+0 | |
| 2020-02-13 | IsAsync -> enum Async { Yes { span: Span, .. }, No } | Mazdak Farrokhzad | -4/+5 | |
| use new span for better diagnostics. | ||||
| 2020-02-13 | Constness -> enum Const { Yes(Span), No } | Mazdak Farrokhzad | -3/+9 | |
| Same idea for `Unsafety` & use new span for better diagnostics. | ||||
| 2020-02-13 | Rollup merge of #68848 - nnethercote:hasten-macro-parsing, r=petrochenkov | Dylan DPC | -5/+4 | |
| Hasten macro parsing r? @eddyb | ||||
| 2020-02-12 | Rollup merge of #69034 - petrochenkov:notokind, r=Centril | Dylan DPC | -32/+6 | |
| parser: Remove `Parser::prev_token_kind` Follow-up to https://github.com/rust-lang/rust/pull/69006. r? @Centril | ||||
| 2020-02-11 | Run RustFmt | jumbatm | -1/+3 | |
| 2020-02-11 | Invert control in struct_lint_level. | jumbatm | -1/+1 | |
| Caller now passes in a `decorate` function, which is only run if the lint is allowed. | ||||
| 2020-02-10 | parser: Remove `Parser::prev_token_kind` | Vadim Petrochenkov | -32/+6 | |
| 2020-02-10 | parser: Keep current and previous tokens precisely | Vadim Petrochenkov | -23/+51 | |
| including their unnormalized forms. Add more documentation for them. | ||||
| 2020-02-06 | Remove the `Cow` from `Directory`. | Nicholas Nethercote | -5/+4 | |
| The previous commit wrapped `Parser` within a `Cow` for the hot macro parsing path. As a result, there's no need for the `Cow` within `Directory`, because it lies within `Parser`. | ||||
| 2020-02-04 | stop using BytePos for computing spans in librustc_parse/parser/mod.rs | David Renshaw | -17/+22 | |
| 2020-02-03 | Auto merge of #68735 - JohnTitor:fix-ice-0202, r=estebank | bors | -2/+2 | |
| Use `next_point` to avoid ICE Fixes #68730 r? @estebank (I think you're familiar with that) | ||||
| 2020-02-01 | syntax::print -> new crate rustc_ast_pretty | Mazdak Farrokhzad | -1/+1 | |
| 2020-02-01 | 1. move node_id to syntax | Mazdak Farrokhzad | -1/+1 | |
| 2. invert rustc_session & syntax deps 3. drop rustc_session dep in rustc_hir | ||||
| 2020-02-02 | Use `next_point` to avoid ICE | Yuki Okushi | -2/+2 | |
| 2020-01-18 | remove rustc_error_codes deps except in rustc_driver | Mazdak Farrokhzad | -2/+0 | |
| 2020-01-11 | restore some rustc_parse visibilities | Caleb Cartwright | -4/+9 | |
| 2020-01-10 | Change `next_point` when `shrink_to_hi` is more appropriate | Esteban Küber | -1/+1 | |
| 2020-01-08 | - remove syntax::{span_warn!, span_err!, span_fatal!. struct_err!} | Mazdak Farrokhzad | -2/+1 | |
| - remove syntax::{help!, span_help!, span_note!} - remove unused syntax::{struct_span_fatal, struct_span_err_or_warn!, span_err_or_warn!} - lintify check_for_bindings_named_same_as_variants + conflicting_repr_hints - inline syntax::{struct_span_warn!, diagnostic_used!} - stringify_error_code! -> error_code! & use it more. - find_plugin_registrar: de-fatalize an error - de-fatalize metadata errors - move type_error_struct! to rustc_typeck - struct_span_err! -> rustc_errors | ||||
| 2020-01-03 | tweak wording of mismatched delimiter errors | Andy Russell | -4/+4 | |
| 2020-01-01 | Rename `syntax_pos` to `rustc_span` in source code | Vadim Petrochenkov | -3/+3 | |
| 2019-12-31 | parser: bug -> span_bug | Mazdak Farrokhzad | -1/+2 | |
| 2019-12-31 | process_potential_macro_variable: de-fatalize an error | Mazdak Farrokhzad | -2/+1 | |
| 2019-12-23 | extract parse_not_expr | Mazdak Farrokhzad | -23/+18 | |
| 2019-12-22 | Format the world | Mark Rousskov | -171/+154 | |
| 2019-12-21 | Rollup merge of #67355 - Centril:merge-mut, r=oli-obk | Mazdak Farrokhzad | -4/+4 | |
| Merge `ast::Mutability` and `mir::Mutability` r? @oli-obk | ||||
| 2019-12-20 | fix bug in parse_tuple_parens_expr + related refactoring | Mazdak Farrokhzad | -33/+29 | |
| 2019-12-20 | introduce 'type AttrVec' | Mazdak Farrokhzad | -5/+4 | |
| 2019-12-20 | 1. ast::Mutability::{Mutable -> Mut, Immutable -> Not}. | Mazdak Farrokhzad | -4/+4 | |
| 2. mir::Mutability -> ast::Mutability. | ||||
| 2019-12-05 | rustc_parser: cleanup imports | Mazdak Farrokhzad | -8/+5 | |
