mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
extend selection expands macros and can totally panic
This commit is contained in:
parent
171f6e6d00
commit
73836cdbbc
3 changed files with 11 additions and 7 deletions
|
@ -51,7 +51,7 @@ mod tests {
|
|||
}
|
||||
",
|
||||
);
|
||||
let r = analysis.extend_selection(frange);
|
||||
let r = analysis.extend_selection(frange).unwrap();
|
||||
assert_eq!(r, TextRange::from_to(51.into(), 56.into()));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue