| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2020-04-30 | Rollup merge of #71433 - antoyo:error/missing-right-operand, r=Dylan-DPC | Dylan DPC | -0/+5 | |
| Add help message for missing right operand in condition closes #30035 | ||||
| 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-04-22 | Rollup merge of #71256 - cuviper:must_use_replace, r=estebank | Dylan DPC | -9/+8 | |
| Lint must_use on mem::replace This adds a hint on `mem::replace`, "if you don't need the old value, you can just assign the new value directly". This is in similar spirit to the `must_use` on `ManuallyDrop::take`. | ||||
| 2020-04-22 | Add help message for missing right operand in condition | Antoni Boucher | -0/+5 | |
| 2020-04-22 | Add error code to inner doc comment attribute error | Guillaume Gomez | -3/+9 | |
| 2020-04-19 | Dogfood more or_patterns in the compiler | Josh Stone | -9/+7 | |
| 2020-04-18 | remove build warnings | Tshepang Lekhonkhobe | -3/+5 | |
| Code blocks that are not annotated are assumed to be Rust | ||||
| 2020-04-17 | Fix unused results from mem::replace | Josh Stone | -9/+8 | |
| 2020-04-17 | Improved try_macro_suggestion function | Duddino | -4/+2 | |
| 2020-04-17 | Improved try_macro_suggestion | Duddino | -4/+5 | |
| 2020-04-17 | Moved is_try check into try_macro_suggestion | Duddino | -4/+3 | |
| 2020-04-17 | Account for use of `try!()` in 2018 edition and guide users in the right ↵ | Duddino | -0/+35 | |
| direction | ||||
| 2020-04-14 | allow try as scrutinee, e.g. `match try ...` | Bastian Kauschke | -5/+3 | |
| 2020-04-03 | .unwrap() less on .span_to_snippet() | Mazdak Farrokhzad | -3/+3 | |
| 2020-04-02 | Rollup merge of #70421 - Centril:recover-const-async-fn-ptr, r=estebank | Mazdak Farrokhzad | -18/+30 | |
| parse: recover on `const fn()` / `async fn()` Recover on `const fn()` and `async fn()` function pointers, suggesting to remove the qualifier. For example: ``` error: an `fn` pointer type cannot be `async` --> $DIR/recover-const-async-fn-ptr.rs:6:11 | LL | type T3 = async fn(); | -----^^^^^ | | | `async` because of this | help: remove the `async` qualifier ``` r? @estebank | ||||
| 2020-04-01 | Rollup merge of #70522 - rcoh:60762-raw-string-errors, r=petrochenkov | Mazdak Farrokhzad | -3/+30 | |
| Improve error messages for raw strings (#60762) This diff improves error messages around raw strings in a few ways: - Catch extra trailing `#` in the parser. This can't be handled in the lexer because we could be in a macro that actually expects another # (see test) - Refactor & unify error handling in the lexer between ByteStrings and RawByteStrings - Detect potentially intended terminators (longest sequence of "#*" is suggested) Fixes #60762 cc @estebank who reviewed the original (abandoned) PR for the same ticket. r? @Centril | ||||
| 2020-03-30 | Clean up redudant conditions and match exprs | Russell Cohen | -11/+10 | |
| 2020-03-30 | parse_and_disallow_postfix_after_cast: account for `ExprKind::Err`. | Mazdak Farrokhzad | -0/+1 | |
| 2020-03-29 | Cleanup match expression | Russell Cohen | -11/+7 | |
| 2020-03-29 | Cleanup error messages, improve docstrings | Russell Cohen | -4/+7 | |
| 2020-03-29 | Improve error messages for raw strings (#60762) | Russell Cohen | -1/+30 | |
| This diff improves error messages around raw strings in a few ways: - Catch extra trailing `#` in the parser. This can't be handled in the lexer because we could be in a macro that actually expects another # (see test) - Refactor & unify error handling in the lexer between ByteStrings and RawByteStrings - Detect potentially intended terminators (longest sequence of "#*" is suggested) | ||||
| 2020-03-27 | address some review comments | Mazdak Farrokhzad | -6/+8 | |
| 2020-03-27 | parse: improve recovery for assoc eq constraints. | Mazdak Farrokhzad | -1/+43 | |
| 2020-03-27 | extract parse_generic_arg | Mazdak Farrokhzad | -8/+14 | |
| 2020-03-27 | parse_angle_arg: parse constraints first | Mazdak Farrokhzad | -4/+4 | |
| 2020-03-27 | split parse_angle_args into loop / single step | Mazdak Farrokhzad | -63/+67 | |
| 2020-03-27 | parse: move constraint/arg restriction to ast_validation. | Mazdak Farrokhzad | -53/+23 | |
| 2020-03-26 | Rollup merge of #70428 - Centril:move-to-mod, r=petrochenkov | Dylan DPC | -2/+4 | |
| `error_bad_item_kind`: add help text For example, this adds: ``` = help: consider moving the `use` import out to a nearby module scope ``` r? @petrochenkov @estebank Fixes https://github.com/rust-lang/rust/issues/37205. | ||||
| 2020-03-26 | error_bad_item_kind: add help text | Mazdak Farrokhzad | -2/+4 | |
| 2020-03-26 | parse: recover on `const fn()` / `async fn()`. | Mazdak Farrokhzad | -18/+30 | |
| 2020-03-26 | Throw error when encountering `...` instead of `..` while destructing a pattern | Rakshith Ravi | -0/+21 | |
| Added tests and stderr output | ||||
| 2020-03-26 | Rollup merge of #69878 - estebank:chained-ops, r=Centril | Mazdak Farrokhzad | -52/+103 | |
| Tweak chained operators diagnostic Use more selective spans Improve suggestion output Be more selective when displaying suggestions Silence some knock-down type errors r? @Centril | ||||
| 2020-03-25 | review comments | Esteban Küber | -26/+25 | |
| 2020-03-25 | Tweak chained operators diagnostic | Esteban Küber | -46/+98 | |
| Use more selective spans Improve suggestion output Be more selective when displaying suggestions Silence some knock-down type errors | ||||
| 2020-03-25 | Rename `def_span` to `guess_head_span` | Esteban Küber | -1/+1 | |
| 2020-03-23 | Rollup merge of #70248 - Centril:unroot, r=petrochenkov | Mazdak Farrokhzad | -5/+0 | |
| parser: simplify & remove unused field r? @petrochenkov | ||||
| 2020-03-22 | Rollup merge of #70254 - matthiaskrgr:cl4ppy, r=Centril | Dylan DPC | -7/+1 | |
| couple more clippy fixes (let_and_return, if_same_then_else) * summarize if-else-code with identical blocks (clippy::if_same_then_else) * don't create variable bindings just to return the bound value immediately (clippy::let_and_return) | ||||
| 2020-03-22 | Rollup merge of #70209 - Centril:recover-quant-closure, r=petrochenkov | Dylan DPC | -14/+40 | |
| parser: recover on `for<'a> |...| body` closures When encountering `for` and `<` is 1 token ahead, interpret this as an explicitly quantified generic closure and recover, rather than attempting to parse a `for` loop. This provides both improved diagnostics as well as an insurance policy for the ability to use this as the syntax for generic closures in the future. As requested by r? @eddyb | ||||
| 2020-03-22 | summarize if-else-code with identical blocks (clippy::if_same_then_else) | Matthias Krüger | -7/+1 | |
| 2020-03-21 | parse: nix unused `root_module_name`. | Mazdak Farrokhzad | -5/+0 | |
| 2020-03-21 | recover on `for<'a> |...| body` closures. | Mazdak Farrokhzad | -14/+40 | |
| 2020-03-21 | Rollup merge of #70187 - matthiaskrgr:cl2ppy, r=Mark-Simulacrum | Mazdak Farrokhzad | -8/+8 | |
| more clippy fixes * remove redundant returns (clippy::needless_return) * remove redundant import (clippy::single_component_path_imports) * remove redundant format!() call (clippy::useless_format) * don't use ok() before calling expect() (clippy::ok_expect) | ||||
| 2020-03-20 | remove redundant returns (clippy::needless_return) | Matthias Krüger | -8/+8 | |
| 2020-03-20 | can_begin_literal_maybe_minus: `true` on `"-"? lit` NTs. | Mazdak Farrokhzad | -2/+3 | |
| 2020-03-18 | fix rebase fallout | Mazdak Farrokhzad | -7/+4 | |
| 2020-03-18 | tweak outline module parsing spans | Mazdak Farrokhzad | -1/+1 | |
| 2020-03-18 | {rustc_parse::parser -> rustc_expand}::module | Mazdak Farrokhzad | -307/+0 | |
| 2020-03-18 | move Directory -> parser::module | Mazdak Farrokhzad | -3/+18 | |
| 2020-03-18 | parse: module parsing -> item.rs | Mazdak Farrokhzad | -65/+66 | |
| 2020-03-18 | outline modules: parse -> expand. | Mazdak Farrokhzad | -98/+50 | |
