Skip to content

Commit c6ff21c

Browse files
author
Paolo Tranquilli
committed
Rust: some update to the QL libraries
1 parent a15f192 commit c6ff21c

File tree

121 files changed

+699
-1632
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+699
-1632
lines changed

rust/extractor/src/generated/.generated.list

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/extractor/src/generated/mod.rs

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

rust/extractor/src/translate/base.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ impl<'a> Translator<'a> {
508508
})
509509
}
510510

511-
fn emit_crate_root(&mut self, item: Crate) -> Option<Label<generated::CrateRoot>> {
511+
fn emit_crate_root(&mut self, item: Crate) -> Option<Label<generated::CrateRef>> {
512512
cache_get_or_assign!(self.canonical_path_cache, item, {
513513
let db = self.semantics.unwrap().db;
514514
let (repo, name) = match item.origin(db) {
@@ -519,7 +519,7 @@ impl<'a> Translator<'a> {
519519
let name = it.to_string();
520520
return Some(
521521
self.trap
522-
.emit(generated::LangCrateRoot {
522+
.emit(generated::LangCrateRef {
523523
id: trap_key!(name),
524524
name,
525525
})
@@ -536,7 +536,7 @@ impl<'a> Translator<'a> {
536536
let source = self.trap.emit_file(&PathBuf::from(file.as_os_str()));
537537
Some(
538538
self.trap
539-
.emit(generated::RepoCrateRoot {
539+
.emit(generated::RepoCrateRef {
540540
id: trap_key!(source, name, repo),
541541
name,
542542
repo,

rust/extractor/src/translate/label_cache.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ impl StorableAsModuleItemCanonicalPath for Struct {
8888
}
8989

9090
impl StorableAsCanonicalPath for Crate {
91-
type TrapClass = generated::CrateRoot;
91+
type TrapClass = generated::CrateRef;
9292

9393
fn to_key(&self) -> Key {
9494
Key::Crate(*self)

0 commit comments

Comments
 (0)