about summary refs log tree commit diff
path: root/compiler/rustc_passes/src/loops.rs
AgeCommit message (Collapse)AuthorLines
2022-11-05Specify that `break` cannot be used outside of loop *or* labeled blockclubby789-1/+1
2022-10-07migrate loops.rs to translateable diagnosticsNathan Stocks-116/+45
2022-07-12Add 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-07Reword comments and rename HIR visiting methods.Camille GILLOT-1/+1
2022-06-15Rollup merge of #98110 - cjgillot:closure-brace, r=Aaron1011Yuki 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-13remove unnecessary `to_string` and `String::new`Takayuki Maeda-1/+1
2022-06-12Make `ExprKind::Closure` a struct variant.Camille GILLOT-5/+5
2022-05-13rename visit item-like methodsMiguel Guarniz-1/+1
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-05-13remove ItemLikeVisitor and DeepVisitorMiguel Guarniz-1/+1
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-01-16Replace NestedVisitorMap with NestedFilterCameron Steffen-4/+5
2021-01-21Do not suggest using a break label when one is already presentEsteban Küber-6/+11
2021-01-21Tweak 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-21Add loop head span to hirEsteban Küber-3/+2
2020-08-30mv compiler to compiler/mark-0/+240