| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2024-09-22 | Reformat using the new identifier sorting from rustfmt | Michael Goulet | -1/+1 | |
| 2024-09-13 | Remove `sess` from `CheckLoopVisitor`. | Nicholas Nethercote | -17/+11 | |
| 2024-09-13 | Remove unnecessary lifetime from `CheckLoopVisitor`. | Nicholas Nethercote | -6/+6 | |
| 2024-08-06 | Don't Suggest Labeling `const` and `unsafe` Blocks | Veera | -14/+26 | |
| 2024-07-29 | Reformat `use` declarations. | Nicholas Nethercote | -1/+1 | |
| The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options. | ||||
| 2024-06-07 | Revert "Create const block DefIds in typeck instead of ast lowering" | Oli Scherer | -3/+4 | |
| This reverts commit ddc5f9b6c1f21da5d4596bf7980185a00984ac42. | ||||
| 2024-05-28 | Create const block DefIds in typeck instead of ast lowering | Oli Scherer | -4/+3 | |
| 2024-05-22 | For OutsideLoop we should not suggest add 'block label in if block, or we ↵ | surechen | -24/+148 | |
| wiil get another err: block label not supported here. fixes #123261 | ||||
| 2024-05-08 | Fix Error Messages for `break` Inside Coroutines | Veera | -9/+23 | |
| Previously, `break` inside `gen` blocks and functions were incorrectly identified to be enclosed by a closure. This PR fixes it by displaying an appropriate error message for async blocks, async closures, async functions, gen blocks, gen closures, gen functions, async gen blocks, async gen closures and async gen functions. Note: gen closure and async gen closure are not supported by the compiler yet but I have added an error message here assuming that they might be implemented in the future. Also, fixes grammar in a few places by replacing `inside of a $coroutine` with `inside a $coroutine`. | ||||
| 2024-04-29 | Remove `extern crate rustc_middle` from numerous crates. | Nicholas Nethercote | -0/+1 | |
| 2024-02-07 | hir: Remove `fn opt_hir_id` and `fn opt_span` | Vadim Petrochenkov | -2/+2 | |
| 2023-12-26 | Auto merge of #119258 - compiler-errors:closure-kind, r=eholk | bors | -10/+9 | |
| Make closures carry their own ClosureKind Right now, we use the "`movability`" field of `hir::Closure` to distinguish a closure and a coroutine. This is paired together with the `CoroutineKind`, which is located not in the `hir::Closure`, but the `hir::Body`. This is strange and redundant. This PR introduces `ClosureKind` with two variants -- `Closure` and `Coroutine`, which is put into `hir::Closure`. The `CoroutineKind` is thus removed from `hir::Body`, and `Option<Movability>` no longer needs to be a stand-in for "is this a closure or a coroutine". r? eholk | ||||
| 2023-12-25 | Only regular coroutines have movability | Michael Goulet | -7/+4 | |
| 2023-12-25 | Make closures carry their own ClosureKind, rather than deducing what it is ↵ | Michael Goulet | -10/+12 | |
| from movability | ||||
| 2023-12-24 | Remove `Session` methods that duplicate `DiagCtxt` methods. | Nicholas Nethercote | -9/+9 | |
| Also add some `dcx` methods to types that wrap `TyCtxt`, for easier access. | ||||
| 2023-12-12 | Move some methods from `tcx.hir()` to `tcx` | zetanumbers | -8/+7 | |
| Renamings: - find -> opt_hir_node - get -> hir_node - find_by_def_id -> opt_hir_node_by_def_id - get_by_def_id -> hir_node_by_def_id Fix rebase changes using removed methods Use `tcx.hir_node_by_def_id()` whenever possible in compiler Fix clippy errors Fix compiler Apply suggestions from code review Co-authored-by: Vadim Petrochenkov <vadim.petrochenkov@gmail.com> Add FIXME for `tcx.hir()` returned type about its removal Simplify with with `tcx.hir_node_by_def_id` | ||||
| 2023-11-21 | Fix `clippy::needless_borrow` in the compiler | Nilstrieb | -6/+6 | |
| `x clippy compiler -Aclippy::all -Wclippy::needless_borrow --fix`. Then I had to remove a few unnecessary parens and muts that were exposed now. | ||||
| 2023-10-16 | tweak pass description and fix lint fail post-rebase | Arthur Lafrance | -1/+1 | |
| 2023-10-09 | Account for macros | Esteban Küber | -1/+1 | |
| 2023-10-09 | Suggest labeling block if `break` is in bare block | Esteban Küber | -8/+47 | |
| Fix #103982. | ||||
| 2023-08-14 | Use `{Local}ModDefId` in many queries | Nilstrieb | -2/+2 | |
| 2023-06-02 | Separate AnonConst from ConstBlock in HIR. | Camille GILLOT | -3/+7 | |
| 2023-05-15 | Move expansion of query macros in rustc_middle to rustc_middle::query | John Kåre Alsaker | -1/+1 | |
| 2022-11-05 | Specify that `break` cannot be used outside of loop *or* labeled block | clubby789 | -1/+1 | |
| 2022-10-07 | migrate loops.rs to translateable diagnostics | Nathan Stocks | -116/+45 | |
| 2022-07-12 | Add an indirection for closures in `hir::ExprKind` | Maybe Waffle | -1/+7 | |
| This helps bring `hir::Expr` size down, `Closure` was the biggest variant, especially after `for<>` additions. | ||||
| 2022-07-07 | Reword comments and rename HIR visiting methods. | Camille GILLOT | -1/+1 | |
| 2022-06-15 | Rollup merge of #98110 - cjgillot:closure-brace, r=Aaron1011 | Yuki Okushi | -5/+5 | |
| Make `ExprKind::Closure` a struct variant. Simple refactor since we both need it to introduce additional fields in `ExprKind::Closure`. r? ``@Aaron1011`` | ||||
| 2022-06-13 | remove unnecessary `to_string` and `String::new` | Takayuki Maeda | -1/+1 | |
| 2022-06-12 | Make `ExprKind::Closure` a struct variant. | Camille GILLOT | -5/+5 | |
| 2022-05-13 | rename visit item-like methods | Miguel Guarniz | -1/+1 | |
| Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com> | ||||
| 2022-05-13 | remove ItemLikeVisitor and DeepVisitor | Miguel Guarniz | -1/+1 | |
| Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com> | ||||
| 2022-01-16 | Replace NestedVisitorMap with NestedFilter | Cameron Steffen | -4/+5 | |
| 2021-01-21 | Do not suggest using a break label when one is already present | Esteban Küber | -6/+11 | |
| 2021-01-21 | Tweak error for invalid `break expr` | Esteban Küber | -20/+56 | |
| Point at loop head on invalid `break expr`. Suggest removing `expr` or using label if available. | ||||
| 2021-01-21 | Add loop head span to hir | Esteban Küber | -3/+2 | |
| 2020-08-30 | mv compiler to compiler/ | mark | -0/+240 | |
