mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
Prefer plain trait definitions over macros for salsa
This commit is contained in:
parent
e059feadef
commit
3874681cb6
7 changed files with 37 additions and 33 deletions
|
@ -31,7 +31,7 @@ use triomphe::Arc;
|
|||
|
||||
use std::{fmt, hash::Hash};
|
||||
|
||||
use base_db::{salsa::impl_intern_value_trivial, CrateId, FileId};
|
||||
use base_db::{salsa::InternValueTrivial, CrateId, FileId};
|
||||
use either::Either;
|
||||
use span::{
|
||||
Edition, ErasedFileAstId, FileAstId, FileRange, HirFileIdRepr, Span, SpanAnchor,
|
||||
|
@ -173,7 +173,7 @@ pub struct MacroCallLoc {
|
|||
pub kind: MacroCallKind,
|
||||
pub ctxt: SyntaxContextId,
|
||||
}
|
||||
impl_intern_value_trivial!(MacroCallLoc);
|
||||
impl InternValueTrivial for MacroCallLoc {}
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct MacroDefId {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue