mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-20 23:32:15 +00:00
Adjust for new Salsa not implementing Debug
by default
This commit is contained in:
parent
1d52d5d422
commit
2bba385dda
2 changed files with 6 additions and 6 deletions
|
@ -392,7 +392,7 @@ impl BuiltDependency {
|
|||
|
||||
pub type CratesIdMap = FxHashMap<CrateBuilderId, Crate>;
|
||||
|
||||
#[salsa::input(no_debug)]
|
||||
#[salsa::input]
|
||||
#[derive(Debug)]
|
||||
pub struct Crate {
|
||||
#[return_ref]
|
||||
|
|
|
@ -28,7 +28,7 @@ pub use vfs::{AnchoredPath, AnchoredPathBuf, FileId, VfsPath, file_set::FileSet}
|
|||
#[macro_export]
|
||||
macro_rules! impl_intern_key {
|
||||
($id:ident, $loc:ident) => {
|
||||
#[salsa::interned(no_debug, no_lifetime)]
|
||||
#[salsa::interned(no_lifetime)]
|
||||
pub struct $id {
|
||||
pub loc: $loc,
|
||||
}
|
||||
|
@ -152,7 +152,7 @@ impl Files {
|
|||
}
|
||||
}
|
||||
|
||||
#[salsa::interned(no_lifetime, constructor=from_span)]
|
||||
#[salsa::interned(no_lifetime, debug, constructor=from_span)]
|
||||
pub struct EditionedFileId {
|
||||
pub editioned_file_id: span::EditionedFileId,
|
||||
}
|
||||
|
@ -187,18 +187,18 @@ impl EditionedFileId {
|
|||
}
|
||||
}
|
||||
|
||||
#[salsa::input]
|
||||
#[salsa::input(debug)]
|
||||
pub struct FileText {
|
||||
pub text: Arc<str>,
|
||||
pub file_id: vfs::FileId,
|
||||
}
|
||||
|
||||
#[salsa::input]
|
||||
#[salsa::input(debug)]
|
||||
pub struct FileSourceRootInput {
|
||||
pub source_root_id: SourceRootId,
|
||||
}
|
||||
|
||||
#[salsa::input]
|
||||
#[salsa::input(debug)]
|
||||
pub struct SourceRootInput {
|
||||
pub source_root: Arc<SourceRoot>,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue