We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a95ff26 commit f12aca9Copy full SHA for f12aca9
src/tools/rust-analyzer/crates/ide/src/inlay_hints/closing_brace.rs
@@ -65,15 +65,9 @@ pub(super) fn hints(
65
ast::BlockExpr(block_expr) => {
66
block = block_expr.stmt_list()?;
67
},
68
- ast::LoopExpr(loop_expr) => {
+ ast::AnyHasLoopBody(loop_expr) => {
69
block = loop_expr.loop_body()?.stmt_list()?;
70
71
- ast::WhileExpr(while_expr) => {
72
- block = while_expr.loop_body()?.stmt_list()?;
73
- },
74
- ast::ForExpr(for_expr) => {
75
- block = for_expr.loop_body()?.stmt_list()?;
76
77
_ => return None,
78
}
79
0 commit comments