mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Turn macro_expand from query to normal function
This commit is contained in:
parent
b98597f06d
commit
7a8c4c001b
12 changed files with 15 additions and 36 deletions
|
@ -43,7 +43,7 @@ use serde::{Deserialize, Serialize};
|
|||
|
||||
use crate::msg::ENCODE_CLOSE_SPAN_VERSION;
|
||||
|
||||
pub type SpanDataIndexMap = IndexSet<SpanData>;
|
||||
type SpanDataIndexMap = IndexSet<SpanData>;
|
||||
|
||||
#[derive(Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct TokenId(pub u32);
|
||||
|
@ -54,12 +54,6 @@ impl std::fmt::Debug for TokenId {
|
|||
}
|
||||
}
|
||||
|
||||
impl TokenId {
|
||||
pub const DEF_SITE: Self = TokenId(0);
|
||||
pub const CALL_SITE: Self = TokenId(0);
|
||||
pub const MIXED_SITE: Self = TokenId(0);
|
||||
}
|
||||
|
||||
impl tt::Span for TokenId {
|
||||
const DUMMY: Self = TokenId(!0);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue