mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
Convert tests to text-size
This commit is contained in:
parent
b1d5817dd1
commit
8843588fca
376 changed files with 26489 additions and 26521 deletions
|
@ -316,7 +316,7 @@ mod tests {
|
|||
fn do_check(before: &str, afters: &[&str]) {
|
||||
let (cursor, before) = extract_offset(before);
|
||||
let (analysis, file_id) = single_file(&before);
|
||||
let range = TextRange::offset_len(cursor, 0.into());
|
||||
let range = TextRange::empty(cursor);
|
||||
let mut frange = FileRange { file_id, range };
|
||||
|
||||
for &after in afters {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue