Skip to content

Commit

Permalink
Rust: qltest: add edition=2021 to Cargo file
Browse files Browse the repository at this point in the history
  • Loading branch information
aibaars committed Sep 10, 2024
1 parent 00bc407 commit 47ee2fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/tools/qltest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[package]\nname = \"test\"\nversion=\"0.0.1\"\n[lib]\npath=\"$src\"\n" > Cargo.toml
echo -e "[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))
Expand Down

0 comments on commit 47ee2fe

Please sign in to comment.