From 7af259cf922e3c5b0c86104ba43543d049900336 Mon Sep 17 00:00:00 2001 From: Arthur Baars Date: Tue, 10 Sep 2024 21:48:06 +0200 Subject: [PATCH] Rust: qltest: add edition=2021 to Cargo file --- rust/tools/qltest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/tools/qltest.sh b/rust/tools/qltest.sh index 61ca0ea5bbc6..a176a6a5b11a 100755 --- a/rust/tools/qltest.sh +++ b/rust/tools/qltest.sh @@ -8,7 +8,7 @@ QLTEST_LOG="$CODEQL_EXTRACTOR_RUST_LOG_DIR"/qltest.log EXTRACTOR="$CODEQL_EXTRACTOR_RUST_ROOT/tools/$CODEQL_PLATFORM/extractor" for src in *.rs; do - echo -e "[workspace]\n\n[package]\nname = \"test\"\nversion=\"0.0.1\"\n[lib]\npath=\"$src\"\n" > Cargo.toml + echo -e "[workspace]\n\n[package]\nname = \"test\"\nversion=\"0.0.1\"\nedition = \"2021\"\n[lib]\npath=\"$src\"\n" > Cargo.toml env=() opts=("$src") opts+=($(sed -n '1 s=//codeql-extractor-options:==p' $src))