mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-28 10:39:45 +00:00
Bump salsa
This commit is contained in:
parent
a1f548bce2
commit
8029c731ed
20 changed files with 155 additions and 93 deletions
|
|
@ -34,7 +34,7 @@ pub type FxIndexSet<T> = indexmap::IndexSet<T, rustc_hash::FxBuildHasher>;
|
|||
#[macro_export]
|
||||
macro_rules! impl_intern_key {
|
||||
($id:ident, $loc:ident) => {
|
||||
#[salsa_macros::interned(no_lifetime)]
|
||||
#[salsa_macros::interned(no_lifetime, revisions = usize::MAX)]
|
||||
#[derive(PartialOrd, Ord)]
|
||||
pub struct $id {
|
||||
pub loc: $loc,
|
||||
|
|
@ -44,7 +44,7 @@ macro_rules! impl_intern_key {
|
|||
impl ::std::fmt::Debug for $id {
|
||||
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
||||
f.debug_tuple(stringify!($id))
|
||||
.field(&format_args!("{:04x}", self.0.as_u32()))
|
||||
.field(&format_args!("{:04x}", self.0.index()))
|
||||
.finish()
|
||||
}
|
||||
}
|
||||
|
|
@ -168,7 +168,7 @@ impl Files {
|
|||
}
|
||||
}
|
||||
|
||||
#[salsa_macros::interned(no_lifetime, debug, constructor=from_span)]
|
||||
#[salsa_macros::interned(no_lifetime, debug, constructor=from_span, revisions = usize::MAX)]
|
||||
#[derive(PartialOrd, Ord)]
|
||||
pub struct EditionedFileId {
|
||||
pub editioned_file_id: span::EditionedFileId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue