mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-09 13:33:43 +00:00
Fixed rust-analyser: no implementation for position()
This commit is contained in:
parent
15b867b5db
commit
e66d0208bc
@ -20,7 +20,7 @@ use token_stream::TokenStreamBuilder;
|
|||||||
mod symbol;
|
mod symbol;
|
||||||
pub use symbol::*;
|
pub use symbol::*;
|
||||||
|
|
||||||
use std::ops::Bound;
|
use std::ops::{Bound, Range};
|
||||||
|
|
||||||
use crate::tt;
|
use crate::tt;
|
||||||
|
|
||||||
@ -298,6 +298,10 @@ impl server::Span for RustAnalyzer {
|
|||||||
// FIXME handle span
|
// FIXME handle span
|
||||||
span
|
span
|
||||||
}
|
}
|
||||||
|
fn position(&mut self, _span: Self::Span) -> Range<u32> {
|
||||||
|
// FIXME handle span
|
||||||
|
Range { start: 0, end: 0 }
|
||||||
|
}
|
||||||
fn start(&mut self, _span: Self::Span) -> LineColumn {
|
fn start(&mut self, _span: Self::Span) -> LineColumn {
|
||||||
// FIXME handle span
|
// FIXME handle span
|
||||||
LineColumn { line: 0, column: 0 }
|
LineColumn { line: 0, column: 0 }
|
||||||
|
Loading…
Reference in New Issue
Block a user