mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
Rust: remove module data from Crate elements
This commit is contained in:
committed by
Tom Hvitved
parent
dd5c487628
commit
f05bed685d
4
rust/extractor/src/generated/top.rs
generated
4
rust/extractor/src/generated/top.rs
generated
@@ -154,7 +154,6 @@ pub struct Crate {
|
||||
pub id: trap::TrapId<Crate>,
|
||||
pub name: Option<String>,
|
||||
pub version: Option<String>,
|
||||
pub module: Option<trap::Label<Module>>,
|
||||
pub cfg_options: Vec<String>,
|
||||
pub named_dependencies: Vec<trap::Label<NamedCrate>>,
|
||||
}
|
||||
@@ -172,9 +171,6 @@ impl trap::TrapEntry for Crate {
|
||||
if let Some(v) = self.version {
|
||||
out.add_tuple("crate_versions", vec![id.into(), v.into()]);
|
||||
}
|
||||
if let Some(v) = self.module {
|
||||
out.add_tuple("crate_modules", vec![id.into(), v.into()]);
|
||||
}
|
||||
for (i, v) in self.cfg_options.into_iter().enumerate() {
|
||||
out.add_tuple("crate_cfg_options", vec![id.into(), i.into(), v.into()]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user