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:
Aleksey Kladov 2019-02-01 10:52:36 +03:00
parent 9d3f4624e1
commit de85f1e947
5 changed files with 16 additions and 73 deletions

View file

@ -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()));
}
}