File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/tools/rust-analyzer/crates/ide/src/inlay_hints Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,8 @@ pub(super) fn hints(
53
53
let module = ast:: Module :: cast ( list. syntax ( ) . parent ( ) ?) ?;
54
54
( format ! ( "mod {}" , module. name( ) ?) , module. name ( ) . map ( name) )
55
55
} else if let Some ( label) = ast:: Label :: cast ( node. clone ( ) ) {
56
- // in this case, `ast::Label` could be seen as a part of `ast::BlockExpr`, to respect the `min_lines` config
56
+ // in this case, `ast::Label` could be seen as a part of `ast::BlockExpr`
57
+ // the actual number of lines in this case should be the line count of the parent BlockExpr, which the `min_lines` config care about
57
58
node = node. parent ( ) ?;
58
59
let block = label. syntax ( ) . parent ( ) . and_then ( ast:: BlockExpr :: cast) ?;
59
60
closing_token = block. stmt_list ( ) ?. r_curly_token ( ) ?;
You can’t perform that action at this time.
0 commit comments