mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
remove hard-coded support for ctry macro
It was used mainly to prevent HirFileId infra from bitroting, but the `vec![]` macro can serve that just as well!
This commit is contained in:
parent
9d3f4624e1
commit
de85f1e947
5 changed files with 16 additions and 73 deletions
|
@ -47,11 +47,11 @@ mod tests {
|
|||
let (analysis, frange) = single_file_with_range(
|
||||
"
|
||||
fn main() {
|
||||
ctry!(foo(|x| <|>x<|>));
|
||||
vec![foo(|x| <|>x<|>)];
|
||||
}
|
||||
",
|
||||
);
|
||||
let r = analysis.extend_selection(frange).unwrap();
|
||||
assert_eq!(r, TextRange::from_to(51.into(), 56.into()));
|
||||
assert_eq!(r, TextRange::from_to(50.into(), 55.into()));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue