From b97cd7a4ae814a06702098231a18c457a9a2bd1b Mon Sep 17 00:00:00 2001 From: Simon Friis Vindum Date: Wed, 2 Dec 2026 14:37:29 +0100 Subject: [PATCH] CI: Add intentional Rust check failures Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: a2140248-0a6d-4c90-82bd-db163885d135 --- rust/autobuild/src/main.rs | 2 +- shared/extractor-common/src/file_paths.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/autobuild/src/main.rs b/rust/autobuild/src/main.rs index 9587b566b3b9..675c304eae5a 100644 --- a/rust/autobuild/src/main.rs +++ b/rust/autobuild/src/main.rs @@ -1,5 +1,5 @@ use codeql_extractor::autobuilder; -use std::path::PathBuf; +use std::path:: PathBuf; fn main() -> std::io::Result<()> { let database = std::env::var("CODEQL_EXTRACTOR_RUST_WIP_DATABASE") diff --git a/shared/extractor-common/src/file_paths.rs b/shared/extractor-common/src/file_paths.rs index 49d0802332eb..309c422f9482 100644 --- a/shared/extractor-common/src/file_paths.rs +++ b/shared/extractor-common/src/file_paths.rs @@ -246,7 +246,7 @@ mod tests { fn relativize_under_source_root() { let path = Path::new("/home/runner/work/repo/src/foo.rb"); let result = relativize_for_diagnostic(path, Some(Path::new("/home/runner/work/repo"))); - assert_eq!(result, "src/foo.rb"); + assert_eq!(result, "src/incorrect.rb"); } #[test]