Skip to content

Commit c85177e

Browse files
committed
update rust-analyzer to new interned struct
1 parent 1965cf0 commit c85177e

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/base-db/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use vfs::{AbsPathBuf, FileId};
2727
#[macro_export]
2828
macro_rules! impl_intern_key {
2929
($id:ident, $loc:ident) => {
30-
#[salsa::interned_sans_lifetime(no_debug)]
30+
#[salsa::interned(no_debug, no_lifetime)]
3131
pub struct $id {
3232
pub loc: $loc,
3333
}
@@ -167,7 +167,7 @@ impl Files {
167167
}
168168
}
169169

170-
#[salsa::interned_sans_lifetime]
170+
#[salsa::interned(no_lifetime)]
171171
pub struct EditionedFileId {
172172
pub file_id: FileText,
173173
pub editioned_file_id: span::EditionedFileId,

crates/hir-expand/src/db.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ pub trait ExpandDatabase: RootQueryDb {
152152
fn syntax_context(&self, file: HirFileId, edition: Edition) -> SyntaxContextId;
153153
}
154154

155-
#[salsa::interned_sans_lifetime(id = span::MacroCallId)]
155+
#[salsa::interned(no_lifetime, id = span::MacroCallId)]
156156
pub struct MacroCallWrapper {
157157
pub loc: MacroCallLoc,
158158
}
@@ -168,7 +168,7 @@ fn lookup_intern_macro_call(db: &dyn ExpandDatabase, macro_call: MacroCallId) ->
168168
.clone()
169169
}
170170

171-
#[salsa::interned_sans_lifetime(id = span::SyntaxContextId)]
171+
#[salsa::interned(no_lifetime, id = span::SyntaxContextId)]
172172
pub struct SyntaxContextWrapper {
173173
pub data: SyntaxContextId,
174174
}

0 commit comments

Comments
 (0)