| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2020-02-02 | Rollup merge of #68764 - Centril:self-semantic, r=petrochenkov | Mazdak Farrokhzad | -18/+7 | |
| parser: syntactically allow `self` in all `fn` contexts Part of https://github.com/rust-lang/rust/pull/68728. `self` parameters are now *syntactically* allowed as the first parameter irrespective of item context (and in function pointers). Instead, semantic validation (`ast_validation`) is used. r? @petrochenkov | ||||
| 2020-02-02 | parser: address review comments re. `self`. | Mazdak Farrokhzad | -18/+7 | |
| 2020-02-02 | parser: move restrictions re. `self` to `ast_validation`. | Mazdak Farrokhzad | -6/+6 | |
| 2020-02-01 | syntax::print -> new crate rustc_ast_pretty | Mazdak Farrokhzad | -1/+1 | |
| 2020-01-18 | remove rustc_error_codes deps except in rustc_driver | Mazdak Farrokhzad | -1/+0 | |
| 2020-01-12 | Rollup merge of #68108 - varkor:chained-comparison-suggestions, r=Centril | Mazdak Farrokhzad | -13/+70 | |
| Add suggestions when encountering chained comparisons Ideally, we'd also prevent the type error, which is just extra noise, but that will require moving the error from the parser, and I think the suggestion makes things clear enough for now. Fixes https://github.com/rust-lang/rust/issues/65659. | ||||
| 2020-01-11 | Rollup merge of #68084 - estebank:ice-68000, r=varkor | Mazdak Farrokhzad | -7/+4 | |
| 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 | -13/+70 | |
| 2020-01-10 | Change `next_point` when `shrink_to_hi` is more appropriate | Esteban Küber | -7/+4 | |
| 2020-01-10 | Introduce `#![feature(half_open_range_patterns)]`. | Mazdak Farrokhzad | -6/+0 | |
| This feature adds `X..`, `..X`, and `..=X` patterns. | ||||
| 2020-01-08 | - remove syntax::{span_warn!, span_err!, span_fatal!. struct_err!} | Mazdak Farrokhzad | -2/+2 | |
| - 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 | Rollup merge of #67807 - lzutao:toilet-closure, r=Centril | Yuki Okushi | -2/+2 | |
| Use drop instead of the toilet closure `|_| ()` | ||||
| 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 | -2/+2 | |
| 2019-12-31 | parser: bug -> span_bug | Mazdak Farrokhzad | -4/+0 | |
| 2019-12-31 | parser::diagnostics: remove fn fatal | Mazdak Farrokhzad | -6/+3 | |
| 2019-12-31 | parser: span_fatal -> struct_span_err | Mazdak Farrokhzad | -5/+1 | |
| 2019-12-31 | de-fatalize some errors | Mazdak Farrokhzad | -4/+0 | |
| 2019-12-31 | parser: call .struct_span_err directly | Mazdak Farrokhzad | -14/+12 | |
| 2019-12-23 | extract parse_not_expr | Mazdak Farrokhzad | -7/+7 | |
| 2019-12-22 | Format the world | Mark Rousskov | -194/+165 | |
| 2019-12-21 | Rollup merge of #67355 - Centril:merge-mut, r=oli-obk | Mazdak Farrokhzad | -1/+1 | |
| Merge `ast::Mutability` and `mir::Mutability` r? @oli-obk | ||||
| 2019-12-20 | introduce 'type AttrVec' | Mazdak Farrokhzad | -8/+7 | |
| 2019-12-20 | refactor parse_incorrect_await_syntax | Mazdak Farrokhzad | -13/+23 | |
| 2019-12-20 | implement recovery in check_assoc_op | Mazdak Farrokhzad | -17/+1 | |
| 2019-12-20 | 1. ast::Mutability::{Mutable -> Mut, Immutable -> Not}. | Mazdak Farrokhzad | -1/+1 | |
| 2. mir::Mutability -> ast::Mutability. | ||||
| 2019-12-05 | rustc_parser: cleanup imports | Mazdak Farrokhzad | -14/+11 | |
| 2019-11-26 | Fix spelling typos | Brian Wignall | -2/+2 | |
| 2019-11-25 | Auto merge of #66671 - matthewjasper:ast-address-of, r=Centril | bors | -1/+1 | |
| Ast address-of This is the parts of #64588 that don't affect MIR. If an address-of expression makes it to MIR lowering we error and lower to the best currently expressible approximation to limit further errors. r? @Centril | ||||
| 2019-11-24 | Add raw address of expressions to the AST and HIR | Matthew Jasper | -1/+1 | |
| 2019-11-24 | Auto merge of #66592 - estebank:raw-raw-ah-ah-ah, r=cramertj | bors | -1/+14 | |
| Rework raw ident suggestions Use heuristics to determine whethersuggesting raw identifiers is appropriate. Account for raw identifiers when printing a path in a `use` suggestion. Fix #66126. | ||||
| 2019-11-23 | Rework raw ident suggestions | Esteban Küber | -1/+14 | |
| Use heuristics to determine whethersuggesting raw identifiers is appropriate. Account for raw identifiers when printing a path in a `use` suggestion. | ||||
| 2019-11-22 | Rollup merge of #66183 - Centril:empty-vis-trait-decl, r=petrochenkov | Mazdak Farrokhzad | -20/+0 | |
| *Syntactically* permit visibilities on trait items & enum variants Fixes #65041 Suppose we have `$vis trait_item` or `$vis enum_variant` and `$vis` is a `:vis` macro fragment. Before this PR, this would fail to parse. This is now instead allowed as per language team consensus in https://github.com/rust-lang/rust/issues/65041#issuecomment-538105286. (See added tests for elaboration.) Moreover, we now also permit visibility modifiers on trait items & enum variants *syntactically* but reject them with semantic checks (in `ast_validation`): ```rust #[cfg(FALSE)] trait Foo { pub fn bar(); } // OK #[cfg(FALSE)] enum E { pub U } // OK ``` | ||||
| 2019-11-14 | Clean some error codes diagnostics | Guillaume Gomez | -14/+14 | |
| 2019-11-14 | Update to use new librustc_error_codes library | Guillaume Gomez | -0/+2 | |
| 2019-11-11 | syntactically allow visibility on trait item & enum variant | Mazdak Farrokhzad | -20/+0 | |
| 2019-11-10 | move syntax::parse -> librustc_parse | Mazdak Farrokhzad | -0/+1549 | |
| also move MACRO_ARGUMENTS -> librustc_parse | ||||
