| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2020-01-11 | Rollup merge of #68084 - estebank:ice-68000, r=varkor | Mazdak Farrokhzad | -12/+9 | |
| Do not ICE on unicode next point Use `shrink_to_hi` instead of `next_point` and fix `next_point`. Fix #68000, fix #68091, fix #68092. | ||||
| 2020-01-11 | Add suggestions when encountering chained comparisons | varkor | -32/+93 | |
| 2020-01-10 | Change `next_point` when `shrink_to_hi` is more appropriate | Esteban Küber | -11/+8 | |
| 2020-01-10 | Introduce `#![feature(half_open_range_patterns)]`. | Mazdak Farrokhzad | -195/+134 | |
| This feature adds `X..`, `..X`, and `..=X` patterns. | ||||
| 2020-01-09 | Do not ICE on unicode next point | Esteban Küber | -1/+1 | |
| Use `shrink_to_hi` instead of `next_point` Fix #68000. | ||||
| 2020-01-10 | Rollup merge of #68073 - Centril:fix-68062, r=estebank | Mazdak Farrokhzad | -1/+1 | |
| expect `fn` after `const unsafe` / `const extern` Fixes #68062 r? @estebank @petrochenkov cc @Aaron1011 | ||||
| 2020-01-10 | Rollup merge of #68071 - estebank:ice-67995, r=Centril | Mazdak Farrokhzad | -2/+6 | |
| Extend support of `_` in type parameters - Account for `impl Trait<_>`. - Provide a reasonable `Span` for empty `Generics` in `impl`s. - Account for `fn foo<_>(_: _) {}` to suggest `fn foo<T>(_: T) {}`. - Fix #67995. Follow up to #67597. | ||||
| 2020-01-09 | Reject `const` in inherent impls | Dylan MacKenzie | -3/+12 | |
| 2020-01-09 | Parse `?const Trait` bound syntax | Dylan MacKenzie | -14/+77 | |
| The grammar also handles `?const ?Trait` even though this is semantically redundant. | ||||
| 2020-01-09 | Parse `impl const Trait for Ty` syntax | Dylan MacKenzie | -3/+11 | |
| 2020-01-09 | Extend support of `_` in type parameters | Esteban Küber | -2/+6 | |
| - Account for `impl Trait<_>`. - Provide a reasonable `Span` for empty `Generics` in `impl`s. - Account for `fn foo<_>(_: _) {}` to suggest `fn foo<T>(_: T) {}`. - Fix #67995. | ||||
| 2020-01-09 | expect `fn` after `const unsafe` / `const extern` | Mazdak Farrokhzad | -1/+1 | |
| 2020-01-08 | - remove syntax::{span_warn!, span_err!, span_fatal!. struct_err!} | Mazdak Farrokhzad | -8/+5 | |
| - 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-04 | Rollup merge of #67835 - euclio:delimiter-wording, r=Centril | Mazdak Farrokhzad | -4/+4 | |
| tweak wording of mismatched delimiter errors This PR improves the wording of the "incorrect delimiter" error messages. Here's a quick rationale: - *"un-closed" -> "unclosed"*: "unclosed" is valid English, so there's no need to hyphenate the prefix. This should be pretty uncontroversial, I think. - *"close delimiter" -> "closing delimiter"*: In my anecdotal experience, I've always heard "closing delimiter" or "closing parenthesis". In addition, the codebase already uses this terminology in comments and function names more than "close delimiter", which could indicate that it's more intuitive. - "incorrect delimiter" -> "mismatched delimiter": "Incorrect delimiter" is vague; why is it incorrect? "mismatched" clearly indicates why the delimiter is causing the error. r? @estebank | ||||
| 2020-01-04 | Rollup merge of #67786 - Centril:canon-span, r=petrochenkov | Mazdak Farrokhzad | -1/+1 | |
| Nix reexports from `rustc_span` in `syntax` Remove reexports `syntax::{source_map, symbol, edition}` and use `rustc_span` paths directly. r? @petrochenkov | ||||
| 2020-01-03 | tweak wording of mismatched delimiter errors | Andy Russell | -4/+4 | |
| 2020-01-03 | Rollup merge of #67807 - lzutao:toilet-closure, r=Centril | Yuki Okushi | -2/+2 | |
| Use drop instead of the toilet closure `|_| ()` | ||||
| 2020-01-02 | Normalize `syntax::source_map` imports. | Mazdak Farrokhzad | -1/+1 | |
| 2020-01-02 | Use drop instead of the toilet closure `|_| ()` | Lzu Tao | -2/+2 | |
| 2020-01-01 | Rename `syntax_pos` to `rustc_span` in source code | Vadim Petrochenkov | -22/+22 | |
| 2019-12-31 | parser: bug -> span_bug | Mazdak Farrokhzad | -7/+6 | |
| 2019-12-31 | parser::diagnostics: remove fn fatal | Mazdak Farrokhzad | -6/+3 | |
| 2019-12-31 | parser::pat: remove .fatal calls | Mazdak Farrokhzad | -11/+15 | |
| 2019-12-31 | parser::path: remove .fatal calls | Mazdak Farrokhzad | -10/+15 | |
| 2019-12-31 | parser::module: remove .fatal calls | Mazdak Farrokhzad | -1/+2 | |
| 2019-12-31 | parser::item: remove .fatal calls | Mazdak Farrokhzad | -8/+7 | |
| 2019-12-31 | parser::attr: remove .fatal calls | Mazdak Farrokhzad | -2/+4 | |
| 2019-12-31 | process_potential_macro_variable: de-fatalize an error | Mazdak Farrokhzad | -2/+1 | |
| 2019-12-31 | parser: span_fatal -> struct_span_err | Mazdak Farrokhzad | -12/+8 | |
| 2019-12-31 | de-fatalize some errors | Mazdak Farrokhzad | -8/+9 | |
| 2019-12-31 | parser: call .struct_span_err directly | Mazdak Farrokhzad | -68/+56 | |
| 2019-12-29 | Auto merge of #67112 - Centril:expr-polish, r=estebank | bors | -481/+497 | |
| Refactor expression parsing thoroughly Based on https://github.com/rust-lang/rust/pull/66994 together with which this has refactored basically the entirety of `expr.rs`. r? @estebank | ||||
| 2019-12-23 | Auto merge of #66296 - Centril:bindings_after_at-init, r=pnkfelix | bors | -0/+1 | |
| Initial implementation of `#![feature(bindings_after_at)]` Following up on #16053, under the gate `#![feature(bindings_after_at)]`, `x @ Some(y)` is allowed subject to restrictions necessary for soundness. The implementation and test suite should be fairly complete now. One aspect that is not covered is the interaction with nested `#![feature(or_patterns)]`. This is not possible to test at the moment in a good way because that feature has not progressed sufficiently and has fatal errors in MIR building. We should make sure to add such tests before we stabilize both features (but shipping one of them is fine). r? @pnkfelix cc @nikomatsakis @matthewjasper @pcwalton cc https://github.com/rust-lang/rust/issues/65490 | ||||
| 2019-12-23 | Introduce `#![feature(bindings_after_at)]`. | Mazdak Farrokhzad | -0/+1 | |
| Under the gate, `x @ Some(y)` is allowed. This is subject to various restrictions for soundness. | ||||
| 2019-12-23 | fix rebase fallout | Mazdak Farrokhzad | -1/+1 | |
| 2019-12-23 | refactor assoc op parsing | Mazdak Farrokhzad | -20/+31 | |
| 2019-12-23 | simplify parse_prefix_range_expr | Mazdak Farrokhzad | -18/+13 | |
| 2019-12-23 | extract parse_not_expr | Mazdak Farrokhzad | -95/+73 | |
| 2019-12-23 | extract parse_prefix_expr | Mazdak Farrokhzad | -16/+17 | |
| 2019-12-23 | extract parse_neg_expr | Mazdak Farrokhzad | -6/+9 | |
| 2019-12-23 | extract parse_deref_expr | Mazdak Farrokhzad | -10/+13 | |
| 2019-12-23 | extract is_mistaken_not_ident_negation | Mazdak Farrokhzad | -23/+24 | |
| 2019-12-23 | extract recover_not_expr | Mazdak Farrokhzad | -26/+27 | |
| 2019-12-23 | simplify parse_assoc_op_cast | Mazdak Farrokhzad | -8/+1 | |
| 2019-12-23 | refactor parse_address_of -> parse_borrow_expr | Mazdak Farrokhzad | -7/+14 | |
| 2019-12-23 | simplify parse_dot_call_or_expr | Mazdak Farrokhzad | -9/+5 | |
| 2019-12-23 | extract parse_dot_base_expr | Mazdak Farrokhzad | -13/+10 | |
| 2019-12-23 | extract parse_dot_suffix_expr | Mazdak Farrokhzad | -18/+27 | |
| 2019-12-23 | extract error_unexpected_after_dot and de-fatalize | Mazdak Farrokhzad | -5/+7 | |
| 2019-12-23 | extract recover_field_access_by_float_lit | Mazdak Farrokhzad | -26/+37 | |
