Skip to content

Commit

Permalink
Fix cargo +nightly test
Browse files Browse the repository at this point in the history
  • Loading branch information
est31 committed Mar 28, 2024
1 parent 1ce28e8 commit 92feac9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/defs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use serde::Deserialize;
pub struct CrateDisambiguator(pub u64, pub u64);

#[derive(Deserialize, Debug)]
#[allow(dead_code)]
pub struct CrateId {
pub name :String,
pub disambiguator :CrateDisambiguator,
Expand Down Expand Up @@ -33,6 +34,7 @@ pub struct ExternalCrate {
}

#[derive(Deserialize, Debug)]
#[allow(dead_code)]
pub struct Prelude {
pub crate_id :CrateId,
pub external_crates :Vec<ExternalCrate>,
Expand Down Expand Up @@ -62,18 +64,21 @@ impl<Id :Eq> PartialOrd for Def<Id> {
}

#[derive(Deserialize, Debug)]
#[allow(dead_code)]
pub struct Ref<KrateId> {
pub kind :String,
pub ref_id :ItemId<KrateId>,
pub span :Span,
}

#[derive(Deserialize, Debug)]
#[allow(dead_code)]
pub struct Compilation {
pub directory :String,
}

#[derive(Deserialize, Debug)]
#[allow(dead_code)]
pub struct CrateSaveAnalysis {
pub compilation :Compilation,
pub prelude :Prelude,
Expand All @@ -82,6 +87,7 @@ pub struct CrateSaveAnalysis {
}

#[derive(Deserialize, Debug)]
#[allow(dead_code)]
pub struct CrateSaveAnalysisMetadata {
pub compilation :Compilation,
pub prelude :Prelude,
Expand Down

0 comments on commit 92feac9

Please sign in to comment.