mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
fix: sort references in tests
This commit is contained in:
parent
55cd8ab904
commit
1b59cf2d52
3 changed files with 97 additions and 22 deletions
|
@ -386,7 +386,7 @@ fn nav_for_break_points(
|
|||
ast::Expr::LoopExpr(loop_) => loop_.loop_token()?.text_range(),
|
||||
ast::Expr::WhileExpr(while_) => while_.while_token()?.text_range(),
|
||||
ast::Expr::ForExpr(for_) => for_.for_token()?.text_range(),
|
||||
// We garentee that the label exists
|
||||
// We guarantee that the label exists
|
||||
ast::Expr::BlockExpr(blk) => blk.label().unwrap().syntax().text_range(),
|
||||
_ => return None,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue