Skip to content

Commit 2bba385

Browse files
Adjust for new Salsa not implementing Debug by default
1 parent 1d52d5d commit 2bba385

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

crates/base-db/src/input.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ impl BuiltDependency {
392392

393393
pub type CratesIdMap = FxHashMap<CrateBuilderId, Crate>;
394394

395-
#[salsa::input(no_debug)]
395+
#[salsa::input]
396396
#[derive(Debug)]
397397
pub struct Crate {
398398
#[return_ref]

crates/base-db/src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pub use vfs::{AnchoredPath, AnchoredPathBuf, FileId, VfsPath, file_set::FileSet}
2828
#[macro_export]
2929
macro_rules! impl_intern_key {
3030
($id:ident, $loc:ident) => {
31-
#[salsa::interned(no_debug, no_lifetime)]
31+
#[salsa::interned(no_lifetime)]
3232
pub struct $id {
3333
pub loc: $loc,
3434
}
@@ -152,7 +152,7 @@ impl Files {
152152
}
153153
}
154154

155-
#[salsa::interned(no_lifetime, constructor=from_span)]
155+
#[salsa::interned(no_lifetime, debug, constructor=from_span)]
156156
pub struct EditionedFileId {
157157
pub editioned_file_id: span::EditionedFileId,
158158
}
@@ -187,18 +187,18 @@ impl EditionedFileId {
187187
}
188188
}
189189

190-
#[salsa::input]
190+
#[salsa::input(debug)]
191191
pub struct FileText {
192192
pub text: Arc<str>,
193193
pub file_id: vfs::FileId,
194194
}
195195

196-
#[salsa::input]
196+
#[salsa::input(debug)]
197197
pub struct FileSourceRootInput {
198198
pub source_root_id: SourceRootId,
199199
}
200200

201-
#[salsa::input]
201+
#[salsa::input(debug)]
202202
pub struct SourceRootInput {
203203
pub source_root: Arc<SourceRoot>,
204204
}

0 commit comments

Comments
 (0)