Prefer plain trait definitions over macros for salsa

This commit is contained in:
Wilfred Hughes 2024-06-13 15:38:02 -07:00
parent e059feadef
commit 3874681cb6
7 changed files with 37 additions and 33 deletions

View file

@ -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 {