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(
5353 let module = ast:: Module :: cast ( list. syntax ( ) . parent ( ) ?) ?;
5454 ( format ! ( "mod {}" , module. name( ) ?) , module. name ( ) . map ( name) )
5555 } 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
5758 node = node. parent ( ) ?;
5859 let block = label. syntax ( ) . parent ( ) . and_then ( ast:: BlockExpr :: cast) ?;
5960 closing_token = block. stmt_list ( ) ?. r_curly_token ( ) ?;
You can’t perform that action at this time.
0 commit comments