| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 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 | |
