Skip to content

Commit e66d020

Browse files
Fixed rust-analyser: no implementation for position()
1 parent 15b867b commit e66d020

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

crates/proc-macro-srv/src/abis/abi_sysroot/ra_server.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use token_stream::TokenStreamBuilder;
2020
mod symbol;
2121
pub use symbol::*;
2222

23-
use std::ops::Bound;
23+
use std::ops::{Bound, Range};
2424

2525
use crate::tt;
2626

@@ -298,6 +298,10 @@ impl server::Span for RustAnalyzer {
298298
// FIXME handle span
299299
span
300300
}
301+
fn position(&mut self, _span: Self::Span) -> Range<u32> {
302+
// FIXME handle span
303+
Range { start: 0, end: 0 }
304+
}
301305
fn start(&mut self, _span: Self::Span) -> LineColumn {
302306
// FIXME handle span
303307
LineColumn { line: 0, column: 0 }

0 commit comments

Comments
 (0)