Skip to content

Commit 589fa19

Browse files
Paolo Tranquilligeoffw0
authored andcommitted
Rust: ignore target in qltest
The target file created by `cargo check` was causing problems in language tests. We might want to also ignore `target` by default in the production indexing, but I'll leave that for further discussion.
1 parent 204260e commit 589fa19

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rust/extractor/src/qltest.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ path = "main.rs"
5454
fn set_sources(config: &mut Config) -> anyhow::Result<()> {
5555
let path_iterator = glob("**/*.rs").context("globbing test sources")?;
5656
config.inputs = path_iterator
57+
.filter(|f| f.is_err() || !f.as_ref().unwrap().starts_with("target"))
5758
.collect::<Result<Vec<_>, _>>()
5859
.context("fetching test sources")?;
5960
Ok(())

0 commit comments

Comments
 (0)