From 6d518432bb68c7eb8802204fd972a6e5f07bf371 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 1 Dec 2026 10:29:48 +0000 Subject: [PATCH 1/4] Rust: Restrict rust-analyzer dependency updates Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: f0074629-fa4a-4cbc-96a8-13d5b8ed120b --- rust/scripts/update_rust_analyzer.py | 16 ++++++++++++---- rust/updating-rust-analyzer.md | 22 ++++++++++++---------- 2 files changed, 24 insertions(+), 14 deletions(-) diff --git a/rust/scripts/update_rust_analyzer.py b/rust/scripts/update_rust_analyzer.py index 5147bd1554d0..88148f7f2a25 100755 --- a/rust/scripts/update_rust_analyzer.py +++ b/rust/scripts/update_rust_analyzer.py @@ -232,10 +232,18 @@ def main() -> None: if status: raise RuntimeError("the working tree must be clean") - print_step(1, "Update dependencies") + print_step(1, "Update rust-analyzer dependencies") manifest = RUST_EXTRACTOR_MANIFEST.read_text() old_rust_analyzer_version = get_min_rust_analyzer_version(manifest) - run("cargo", "upgrade", "--incompatible", "--pinned") + dependencies = tomllib.loads(manifest)["dependencies"] + # cargo upgrade selects dependencies across the entire workspace. + packages = [ + argument + for name in dependencies + if name.startswith("ra_ap_") + for argument in ("--package", name) + ] + run("cargo", "upgrade", "--incompatible", "--pinned", *packages) # Re-read the (potentially) changed manifest manifest = RUST_EXTRACTOR_MANIFEST.read_text() new_rust_analyzer_version = get_min_rust_analyzer_version(manifest) @@ -252,8 +260,8 @@ def main() -> None: aligned_manifest, manifest_changed = align_rust_analyzer_versions(manifest) if manifest_changed: RUST_EXTRACTOR_MANIFEST.write_text(aligned_manifest) - run("cargo", "update") - commit_all("Cargo: Upgrade dependencies") + run("cargo", "update", "--package", "codeql-rust") + commit_all("Rust: Upgrade rust-analyzer dependencies") print_step(2, "Update the rust-analyzer sources used by the AST generator") update_rust_analyzer_sources( diff --git a/rust/updating-rust-analyzer.md b/rust/updating-rust-analyzer.md index 873f9f877791..530bdd1f312c 100644 --- a/rust/updating-rust-analyzer.md +++ b/rust/updating-rust-analyzer.md @@ -1,7 +1,7 @@ # Updating rust-analyzer -Here's a rundown of the typical actions to perform to do a rust-analyzer (and -other dependencies) update. A one-time setup consists in installing +Here's a rundown of the typical actions to perform a rust-analyzer +dependency update. A one-time setup consists in installing [`cargo-edit`](https://crates.io/crates/cargo-edit) with `cargo install cargo-edit`. On Ubuntu that also requires `sudo apt install libssl-dev pkg-config`. @@ -11,21 +11,23 @@ pkg-config`. > any errors) carried out by the script `rust/scripts/update_rust_analyzer.py`. > Prefer using the script. -1. Update dependencies. - 1. From the root of the `codeql` repo checkout, run a Cargo upgrade: - ``` - cargo upgrade --incompatible --pinned - ``` - 2. Look at a diff of the `Cargo.toml` files: if all `ra_ap_` prefixed +1. Update rust-analyzer dependencies. + 1. From the root of the `codeql` repo checkout, run + `cargo upgrade --incompatible --pinned`, passing `--package ` for + each `ra_ap_` dependency in `rust/extractor/Cargo.toml`. Without these + package filters, Cargo upgrades unrelated dependencies throughout the + workspace, even if `--manifest-path` points at the extractor. + 2. Look at the diff of `rust/extractor/Cargo.toml`: if all `ra_ap_` prefixed dependencies have been updated to the same number, go on to the next step. Otherwise, it means the latest `rust-analyzer` update has not been fully rolled out to all its crates in `crates.io`. _All `ra_ap_` versions must agree!_ - Downgrade by hand to the minimum one you see, and run a `cargo update` + Downgrade by hand to the minimum one you see, and run + `cargo update --package codeql-rust` after that to fix the `Cargo.lock` file. 3. Commit the changes, skipping `pre-commit` hooks if you have them enabled: ``` - git commit -am 'Cargo: upgrade dependencies' --no-verify + git commit -am 'Rust: Upgrade rust-analyzer dependencies' --no-verify ``` 2. Update the rust-analyzer sources used by the AST generator. From 4d1b679e1fe2113edbec7a06efd7e0c0819717cb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 1 Dec 2026 10:29:53 +0000 Subject: [PATCH 2/4] Rust: Upgrade rust-analyzer dependencies --- Cargo.lock | 306 ++++++++++++++++++++++++-------------- rust/extractor/Cargo.toml | 34 ++--- 2 files changed, 208 insertions(+), 132 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a4037e283442..d313802fc7f3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -97,7 +97,7 @@ version = "1.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc" dependencies = [ - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -108,7 +108,7 @@ checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d" dependencies = [ "anstyle", "once_cell_polyfill", - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -133,7 +133,7 @@ dependencies = [ "mustache", "proc-macro2", "quote", - "ra_ap_stdx", + "ra_ap_stdx 0.0.358", "serde", "ungrammar", ] @@ -762,9 +762,9 @@ dependencies = [ "cfg-if", "crossbeam-utils", "hashbrown 0.14.5", - "lock_api", + "lock_api 0.4.14", "once_cell", - "parking_lot_core", + "parking_lot_core 0.9.12", ] [[package]] @@ -925,7 +925,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" dependencies = [ "libc", - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -1323,9 +1323,9 @@ checksum = "32f454fd6831a29c0e827ed075bca2a15be201bd57f4168f0fd1041124eab17e" [[package]] name = "libc" -version = "0.2.189" +version = "0.2.191" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2" +checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a" [[package]] name = "line-index" @@ -1352,6 +1352,15 @@ dependencies = [ "scopeguard", ] +[[package]] +name = "lock_api" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65d91b22da179613dcf4d6ec8349563f52a363f6849e03b00dd0a185ec4a59af" +dependencies = [ + "scopeguard", +] + [[package]] name = "log" version = "0.3.9" @@ -1428,7 +1437,7 @@ version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "536bfad37a309d62069485248eeaba1e8d9853aaf951caaeaed0585a95346f08" dependencies = [ - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -1492,7 +1501,7 @@ version = "0.50.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5" dependencies = [ - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -1558,12 +1567,12 @@ dependencies = [ [[package]] name = "parking_lot" -version = "0.12.5" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a" +checksum = "a9cf937ca4e1d0b7578784559063422fc39ae7c5a00f02471f2614d5486fd226" dependencies = [ - "lock_api", - "parking_lot_core", + "lock_api 0.5.0", + "parking_lot_core 0.10.0", ] [[package]] @@ -1574,7 +1583,19 @@ checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" dependencies = [ "cfg-if", "libc", - "redox_syscall", + "redox_syscall 0.5.18", + "smallvec", + "windows-link", +] + +[[package]] +name = "parking_lot_core" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9cfff060068cc18aa7815010fcaf80c68c7fb9e85fc7f5c0f9bf142c21d19826" +dependencies = [ + "libc", + "redox_syscall 0.9.5", "smallvec", "windows-link", ] @@ -1770,9 +1791,9 @@ dependencies = [ [[package]] name = "ra-ap-rustc_lexer" -version = "0.166.0" +version = "0.180.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "527c12b3731b7d0692498012810b85b2b8dfdb8b514321ed6afc434bd1c70191" +checksum = "b905d81feeb517b3e36cdfe7100ce92e77419b14ef687d044c811a1cd9d5bcb3" dependencies = [ "memchr", "unicode-ident", @@ -1794,9 +1815,9 @@ dependencies = [ [[package]] name = "ra-ap-rustc_parse_format" -version = "0.166.0" +version = "0.180.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c038b7a8b0f784d4e441ad8ab991fbbdaa5e0be482e59c639a846a1c8126951" +checksum = "f8f21397e1ecc0000f64676db19adc5d78c465d48ccea82175e587d77ad988c3" dependencies = [ "ra-ap-rustc_lexer", "rustc-literal-escaper", @@ -1850,9 +1871,9 @@ dependencies = [ [[package]] name = "ra_ap_base_db" -version = "0.0.358" +version = "0.0.369" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a5bf74ba5606b902ada6b8964ac4f22080ac6d73c297f8d4981885843b25fa4" +checksum = "b56ed3058f20925cea8ba767ed8aa6d6f69d575c84a19d91c2a4e87bac0ba2fe" dependencies = [ "dashmap", "indexmap", @@ -1871,9 +1892,9 @@ dependencies = [ [[package]] name = "ra_ap_cfg" -version = "0.0.358" +version = "0.0.369" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1dc63ce4a2acd1591cac5d5ad1d4f0549bd9069f4aad59acbf600a4d4881a8c9" +checksum = "80343e1aca09b9b398acc2d95bdaa4a58d04e1daa50cf991a173784552df60d8" dependencies = [ "ra_ap_intern", "ra_ap_syntax", @@ -1884,15 +1905,15 @@ dependencies = [ [[package]] name = "ra_ap_edition" -version = "0.0.358" +version = "0.0.369" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e95437d4702879e3851c80580524f36025589b3eeaec3f7798cdf88671c130b" +checksum = "024e5c70d30ccc1b1ac0dda84813d3b1828e1ae97629d7b680bf8461fe3e4281" [[package]] name = "ra_ap_hir" -version = "0.0.358" +version = "0.0.369" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9464cf1121d47a72dffa58c31603b5f06139747b3d848c3b87f63a6da283abb5" +checksum = "500695fc43d12dbf3168d984280a88e156b20b5f613a137f0962f2ac44c2e195" dependencies = [ "arrayvec", "either", @@ -1901,12 +1922,12 @@ dependencies = [ "ra-ap-rustc_type_ir", "ra_ap_base_db", "ra_ap_cfg", + "ra_ap_hir-ide", "ra_ap_hir_def", "ra_ap_hir_expand", - "ra_ap_hir_ty", "ra_ap_intern", "ra_ap_span", - "ra_ap_stdx", + "ra_ap_stdx 0.0.369", "ra_ap_syntax", "ra_ap_tt", "rustc-hash 2.1.3", @@ -1917,11 +1938,43 @@ dependencies = [ "triomphe", ] +[[package]] +name = "ra_ap_hir-ide" +version = "0.0.369" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f337e4a49738a071a2a83c2d0b5e3f4dbe47fff3ee8f65bad41e217e0c19a08" +dependencies = [ + "cov-mark", + "either", + "itertools 0.15.0", + "la-arena", + "ra-ap-rustc_abi", + "ra-ap-rustc_ast_ir", + "ra-ap-rustc_pattern_analysis", + "ra-ap-rustc_type_ir", + "ra_ap_base_db", + "ra_ap_hir_def", + "ra_ap_hir_expand", + "ra_ap_hir_ty", + "ra_ap_intern", + "ra_ap_macros", + "ra_ap_span", + "ra_ap_stdx 0.0.369", + "ra_ap_syntax", + "rustc-hash 2.1.3", + "rustc_apfloat", + "salsa", + "smallvec", + "tracing", + "triomphe", + "typed-arena", +] + [[package]] name = "ra_ap_hir_def" -version = "0.0.358" +version = "0.0.369" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ef811f35ed1c394d27a7e0d79869aa4891108496736597b87bbc632a4eee1ec" +checksum = "d8729e6a3bbdaaff19780820a9879f0b7367da72988f3afc73c477cba90af13d" dependencies = [ "arrayvec", "bitflags", @@ -1934,12 +1987,13 @@ dependencies = [ "la-arena", "ra-ap-rustc_abi", "ra-ap-rustc_parse_format", + "ra-ap-rustc_type_ir", "ra_ap_base_db", "ra_ap_cfg", "ra_ap_hir_expand", "ra_ap_intern", "ra_ap_span", - "ra_ap_stdx", + "ra_ap_stdx 0.0.369", "ra_ap_syntax", "ra_ap_syntax-bridge", "ra_ap_tt", @@ -1950,14 +2004,13 @@ dependencies = [ "thin-vec", "tracing", "triomphe", - "unicode-ident", ] [[package]] name = "ra_ap_hir_expand" -version = "0.0.358" +version = "0.0.369" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8ffb0602b9cc8b4647b902db5c4fca4a8a37ba7a20f28424aed64c7dd2866d6" +checksum = "0b93409f6dd94f1520faa8399cdcea9cf0f5767a1c87de9ad5110d262697adb6" dependencies = [ "cov-mark", "either", @@ -1968,7 +2021,7 @@ dependencies = [ "ra_ap_mbe", "ra_ap_parser", "ra_ap_span", - "ra_ap_stdx", + "ra_ap_stdx 0.0.369", "ra_ap_syntax", "ra_ap_syntax-bridge", "ra_ap_tt", @@ -1982,9 +2035,9 @@ dependencies = [ [[package]] name = "ra_ap_hir_ty" -version = "0.0.358" +version = "0.0.369" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "725f913d562b8d794035bc3bcc3e62adf09b843e11b443750bf8a7027ec1d3bf" +checksum = "2450cd3ef47daa55f8ae66fd738ad71de59dd235ee6a4f20e44b434b648dd96c" dependencies = [ "arrayvec", "bitflags", @@ -2000,7 +2053,6 @@ dependencies = [ "ra-ap-rustc_ast_ir", "ra-ap-rustc_index", "ra-ap-rustc_next_trait_solver", - "ra-ap-rustc_pattern_analysis", "ra-ap-rustc_type_ir", "ra_ap_base_db", "ra_ap_hir_def", @@ -2008,7 +2060,7 @@ dependencies = [ "ra_ap_intern", "ra_ap_macros", "ra_ap_span", - "ra_ap_stdx", + "ra_ap_stdx 0.0.369", "ra_ap_syntax", "rustc-hash 2.1.3", "rustc_apfloat", @@ -2021,14 +2073,13 @@ dependencies = [ "tracing-subscriber", "tracing-tree", "triomphe", - "typed-arena", ] [[package]] name = "ra_ap_ide_db" -version = "0.0.358" +version = "0.0.369" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f08b0f04a8fecbe4a1b04cd0b03d5b0c8495a2a5de50638c6d66b5c3aba133ac" +checksum = "7356b395a36eabac00ca4f5c77a32c6eecaf3f2927192b9693248d1985bb3a10" dependencies = [ "arrayvec", "bitflags", @@ -2046,7 +2097,7 @@ dependencies = [ "ra_ap_parser", "ra_ap_profile", "ra_ap_span", - "ra_ap_stdx", + "ra_ap_stdx 0.0.369", "ra_ap_syntax", "ra_ap_test_fixture", "ra_ap_test_utils", @@ -2061,9 +2112,9 @@ dependencies = [ [[package]] name = "ra_ap_intern" -version = "0.0.358" +version = "0.0.369" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51fddd20c482af576865ab697077cbf1b61b7d30214ab250ce3aa83f0af41eb2" +checksum = "6e34f629817fc22cd98e6e98aa97904c694b5e63c634fe4a6bdc1b293ee56e3e" dependencies = [ "arrayvec", "dashmap", @@ -2075,9 +2126,9 @@ dependencies = [ [[package]] name = "ra_ap_load-cargo" -version = "0.0.358" +version = "0.0.369" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee8bbf755a6d81544cd576150986601069918ab46fa5677275ce3b9cc875bc73" +checksum = "b08c3fbd11bac2099af2cb2c6824627543caee7c2d8225ed671ecac1dfd0187e" dependencies = [ "anyhow", "crossbeam-channel", @@ -2096,9 +2147,9 @@ dependencies = [ [[package]] name = "ra_ap_macros" -version = "0.0.358" +version = "0.0.369" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea5d97f56b9082903327327d70a45f6df69f8fb02880c0040f0e21f1b4983093" +checksum = "0569bd24f40e6404661e96c6302e6d6538fd306a488bb7d4e65ac2fc5b26a9ca" dependencies = [ "proc-macro2", "quote", @@ -2108,9 +2159,9 @@ dependencies = [ [[package]] name = "ra_ap_mbe" -version = "0.0.358" +version = "0.0.369" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2b58d33d66aa5ae520204e9920063dcd78a60a610726be70a2c2a9cb1cbe563" +checksum = "8371ff94697a519d98b9d3c4f12f31b8d76c8e5d2ee25c68550b580b40b6f4d0" dependencies = [ "arrayvec", "bitflags", @@ -2119,7 +2170,7 @@ dependencies = [ "ra_ap_intern", "ra_ap_parser", "ra_ap_span", - "ra_ap_stdx", + "ra_ap_stdx 0.0.369", "ra_ap_syntax-bridge", "ra_ap_tt", "rustc-hash 2.1.3", @@ -2129,13 +2180,14 @@ dependencies = [ [[package]] name = "ra_ap_parser" -version = "0.0.358" +version = "0.0.369" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64b1543d3639a969f5cb4d55a94154ef672f5e1c873b6161407f5705e3164bbc" +checksum = "271dabf3ea42f3c25fc472f365788b1f227fd718b32ca5c98056048a6b272a18" dependencies = [ "drop_bomb", "ra-ap-rustc_lexer", "ra_ap_edition", + "ra_ap_stdx 0.0.369", "rustc-literal-escaper", "tracing", "winnow 0.7.13", @@ -2143,25 +2195,26 @@ dependencies = [ [[package]] name = "ra_ap_paths" -version = "0.0.358" +version = "0.0.369" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "781f81610b0333e60fabdcf4f9ea8a76a7eeff2cda2be6d8f8ad7b9b53985488" +checksum = "b94d2c022333923d1e9e2ccc0f4ccf980ace8c94ae33ce1723ce3400098d4b5d" dependencies = [ "camino", ] [[package]] name = "ra_ap_proc_macro_api" -version = "0.0.358" +version = "0.0.369" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d312f10722d4fa59b93cdbfa534d36a0d2d4a3b18dfad6825d5146afccb41223" +checksum = "42cfabae3fe8d50ff948c7a95796b938d70a662c1d840043a6fc91650eece070" dependencies = [ "indexmap", "postcard", + "ra-ap-rustc_lexer", "ra_ap_intern", "ra_ap_paths", "ra_ap_span", - "ra_ap_stdx", + "ra_ap_stdx 0.0.369", "ra_ap_tt", "rayon", "rustc-hash 2.1.3", @@ -2174,9 +2227,9 @@ dependencies = [ [[package]] name = "ra_ap_profile" -version = "0.0.358" +version = "0.0.369" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72f43ed3bd40c9f338192cbcaf7169d68d1bb69c66667e127e0ac368bb1bdb68" +checksum = "3d50185d43b2dccf875c1ff87ad157743c843474b85c49c47be85d1a8e663f09" dependencies = [ "libc", "perf-event", @@ -2185,9 +2238,9 @@ dependencies = [ [[package]] name = "ra_ap_project_model" -version = "0.0.358" +version = "0.0.369" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f41727333563bc6cd3299ae5e389d6c1d7f11821b01aa1026aead8c161487de8" +checksum = "e19a22708e58809023f51e799794528c82575b39f388382518343d7dfd519c2c" dependencies = [ "anyhow", "cargo_metadata", @@ -2198,7 +2251,7 @@ dependencies = [ "ra_ap_intern", "ra_ap_paths", "ra_ap_span", - "ra_ap_stdx", + "ra_ap_stdx 0.0.369", "ra_ap_toolchain", "rustc-hash 2.1.3", "semver", @@ -2212,13 +2265,13 @@ dependencies = [ [[package]] name = "ra_ap_span" -version = "0.0.358" +version = "0.0.369" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98543730b25d99687b95ca1bd4a0f326366eb7a55caf6e847b70ee3c2ac89206" +checksum = "b71127d77865002a27d0411bbb784a0c73cd41fdb5cd149edcb4b26dbd1c4364" dependencies = [ "hashbrown 0.17.1", "la-arena", - "ra_ap_stdx", + "ra_ap_stdx 0.0.369", "ra_ap_syntax", "ra_ap_vfs", "rustc-hash 2.1.3", @@ -2242,17 +2295,35 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "ra_ap_stdx" +version = "0.0.369" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a20bb3a8f65d9a577cfe4a9bdba4a239f51b4b2db84c52e975ce96315ff6182" +dependencies = [ + "crossbeam-channel", + "crossbeam-utils", + "itertools 0.15.0", + "jod-thread", + "libc", + "miow", + "salsa", + "thin-vec", + "tracing", + "windows-sys 0.61.2", +] + [[package]] name = "ra_ap_syntax" -version = "0.0.358" +version = "0.0.369" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3b6f7b5310d58d302b6e654b7b7013676a94c462e9e21ae2152d49e5d067ae1" +checksum = "29489a84d720b5208753d718740f7781f5aa3eda42b56b8d38d27432f2d3498b" dependencies = [ "either", "itertools 0.15.0", "ra-ap-rustc_lexer", "ra_ap_parser", - "ra_ap_stdx", + "ra_ap_stdx 0.0.369", "rowan", "rustc-hash 2.1.3", "rustc-literal-escaper", @@ -2260,18 +2331,20 @@ dependencies = [ "smol_str", "tracing", "triomphe", + "unicode-ident", + "unicode-properties", ] [[package]] name = "ra_ap_syntax-bridge" -version = "0.0.358" +version = "0.0.369" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1ab9a9f42057119efdc9b17530bcd12a5ca7feda2a3cca07cc2ab7e58fd9840" +checksum = "de04b6dc41a2f3f7ac40f8af8cdbff6316f9893e527dd808b099602ae8a952ff" dependencies = [ "ra_ap_intern", "ra_ap_parser", "ra_ap_span", - "ra_ap_stdx", + "ra_ap_stdx 0.0.369", "ra_ap_syntax", "ra_ap_tt", "rustc-hash 2.1.3", @@ -2279,9 +2352,9 @@ dependencies = [ [[package]] name = "ra_ap_test_fixture" -version = "0.0.358" +version = "0.0.369" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd1102bb800326b4d872487d1cbff8c8dfda9951c2c18185a49b927a2fd21bf7" +checksum = "0485df911124146d0a85c1a809a7c71072e6993c222255f766d9073ca0c02133" dependencies = [ "ra_ap_base_db", "ra_ap_cfg", @@ -2289,7 +2362,7 @@ dependencies = [ "ra_ap_intern", "ra_ap_paths", "ra_ap_span", - "ra_ap_stdx", + "ra_ap_stdx 0.0.369", "ra_ap_test_utils", "ra_ap_tt", "triomphe", @@ -2297,23 +2370,23 @@ dependencies = [ [[package]] name = "ra_ap_test_utils" -version = "0.0.358" +version = "0.0.369" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e950ae6ab036ed2d85694222c9ac6c167fd470588af47c354f08c8381787f90" +checksum = "d904ff0189d5ce7ecccbf835191c96c8687ca21482108af6933af34ecdf46bfc" dependencies = [ "dissimilar", "ra_ap_paths", "ra_ap_profile", - "ra_ap_stdx", + "ra_ap_stdx 0.0.369", "rustc-hash 2.1.3", "text-size", ] [[package]] name = "ra_ap_toolchain" -version = "0.0.358" +version = "0.0.369" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa57909e3770cfb80af82bc502aaf1f8041219244923828fb3dccb93e39fd9e3" +checksum = "d5a56d401e1a345fdbca1cca047dfc8abe9d8ab6423bd18e224598c2a0359833" dependencies = [ "camino", "semver", @@ -2321,45 +2394,46 @@ dependencies = [ [[package]] name = "ra_ap_tt" -version = "0.0.358" +version = "0.0.369" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6767bfe5e71541eef3b764098e0a9ec77864978f610900f8bedfa85151dd58b1" +checksum = "cac88ec8acbe7ffa0d8f9fc26255c3b6a18238d803e678213614ec6865383ad3" dependencies = [ "arrayvec", "ra-ap-rustc_lexer", "ra_ap_intern", "ra_ap_span", - "ra_ap_stdx", + "ra_ap_stdx 0.0.369", "rustc-hash 2.1.3", "text-size", ] [[package]] name = "ra_ap_vfs" -version = "0.0.358" +version = "0.0.369" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "613e9b9ce9dfb085c980497b712624eca7ec7312c41bc2855ef8cdc245c33dab" +checksum = "7bfb540a0d3b043b302954cc32035843cb7d10f6e4ff31fa5f2a298ddb1b547d" dependencies = [ "crossbeam-channel", "fst", "indexmap", + "memchr", "nohash-hasher", "ra_ap_paths", - "ra_ap_stdx", + "ra_ap_stdx 0.0.369", "rustc-hash 2.1.3", "tracing", ] [[package]] name = "ra_ap_vfs-notify" -version = "0.0.358" +version = "0.0.369" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd876ebc2872e591cb525395877fc2f3b826fc5a71907dc5e449ab0614b184f3" +checksum = "21c377fe1662b5d7c253592c39a6f8a23899a9a07687e1f9b5a23a2d5c3d868f" dependencies = [ "crossbeam-channel", "notify", "ra_ap_paths", - "ra_ap_stdx", + "ra_ap_stdx 0.0.369", "ra_ap_vfs", "rayon", "rustc-hash 2.1.3", @@ -2413,6 +2487,15 @@ dependencies = [ "bitflags", ] +[[package]] +name = "redox_syscall" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "580c875845b41ecb1564ad1ae4703044cef774145e3d7a94dc2b3fa7c97868fd" +dependencies = [ + "bitflags", +] + [[package]] name = "regex" version = "1.13.1" @@ -2444,9 +2527,9 @@ checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" [[package]] name = "rowan" -version = "0.17.0" +version = "0.18.0-alpha.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14b574c58582fa59fa43a2feb6608b8744184659f08a2e0117e4b8224d95ed61" +checksum = "aaea44c3d95fde0fcd2f4207a3de502924cc484eecdf76af64895afd4207dec5" dependencies = [ "countme", "hashbrown 0.14.5", @@ -2469,9 +2552,9 @@ checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d" [[package]] name = "rustc-literal-escaper" -version = "0.0.7" +version = "0.0.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8be87abb9e40db7466e0681dc8ecd9dcfd40360cb10b4c8fe24a7c4c3669b198" +checksum = "bfe6f213fb658c8fb95baabd5420393438cf5a98d707f5dd701d9197c705f71e" [[package]] name = "rustc-stable-hash" @@ -2499,7 +2582,7 @@ dependencies = [ "errno", "libc", "linux-raw-sys", - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -2516,9 +2599,9 @@ checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f" [[package]] name = "salsa" -version = "0.28.5" +version = "0.28.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "27d2e6e19e39591cd99c01ac4141544b4d012cfd0831348629b8187fa9fe6d34" +checksum = "bd5148601955971930fd37496e45eb2edc0be3e2281b9d8d63eead691ce8914b" dependencies = [ "boxcar", "crossbeam-queue", @@ -2538,20 +2621,19 @@ dependencies = [ "thin-vec", "tracing", "triomphe", - "typeid", ] [[package]] name = "salsa-macro-rules" -version = "0.28.5" +version = "0.28.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "baf90a551c38f25ed8489111d3d5827aa18e1b85963f5e6a298505b1d1e2cb7e" +checksum = "3cb73471a56622d81575f106a5da1c807d5d01b0e48ac31196dd1becfe8ec976" [[package]] name = "salsa-macros" -version = "0.28.5" +version = "0.28.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69dd77f86ec10e72e314f4ddf7c44c8d349e73cdff1aad524ba9668603fb0549" +checksum = "4eee1f33b33ff39441c4d5487e442fd7347b0505030ee69b1bb7c79c2a6a1d79" dependencies = [ "proc-macro2", "quote", @@ -2819,7 +2901,7 @@ dependencies = [ "getrandom", "once_cell", "rustix", - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -3168,12 +3250,6 @@ version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8e28f89b80c87b8fb0cf04ab448d5dd0dd0ade2f8891bae878de66a75a28600e" -[[package]] -name = "typeid" -version = "1.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc7d623258602320d5c55d1bc22793b57daff0ec7efc270ea7d55ce1d5f5471c" - [[package]] name = "typenum" version = "1.20.1" @@ -3197,15 +3273,15 @@ checksum = "a3e5df347f0bf3ec1d670aad6ca5c6a1859cd9ea61d2113125794654ccced68f" [[package]] name = "unicode-ident" -version = "1.0.24" +version = "1.0.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" +checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563" [[package]] name = "unicode-properties" -version = "0.1.4" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7df058c713841ad818f1dc5d3fd88063241cc61f49f5fbea4b951e8cf5a8d71d" +checksum = "993ad287eb20e8ba755312801cfe1413e0f25d604075863acaddca10b04c1833" [[package]] name = "unsafe-libyaml" @@ -3317,7 +3393,7 @@ version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" dependencies = [ - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] diff --git a/rust/extractor/Cargo.toml b/rust/extractor/Cargo.toml index f013fb07ea76..54d6ec20cdd4 100644 --- a/rust/extractor/Cargo.toml +++ b/rust/extractor/Cargo.toml @@ -13,23 +13,23 @@ anyhow = "1.0.104" clap = { version = "4.6.7", features = ["derive"] } figment = { version = "0.10.19", features = ["env", "yaml"] } num-traits = "0.2.19" -ra_ap_base_db = "0.0.358" -ra_ap_hir = "0.0.358" -ra_ap_hir_def = "0.0.358" -ra_ap_ide_db = "0.0.358" -ra_ap_hir_ty = "0.0.358" -ra_ap_hir_expand = "0.0.358" -ra_ap_load-cargo = "0.0.358" -ra_ap_paths = "0.0.358" -ra_ap_project_model = "0.0.358" -ra_ap_syntax = "0.0.358" -ra_ap_syntax-bridge = "0.0.358" -ra_ap_toolchain = "0.0.358" -ra_ap_vfs = "0.0.358" -ra_ap_parser = "0.0.358" -ra_ap_span = "0.0.358" -ra_ap_cfg = "0.0.358" -ra_ap_intern = "0.0.358" +ra_ap_base_db = "0.0.369" +ra_ap_hir = "0.0.369" +ra_ap_hir_def = "0.0.369" +ra_ap_ide_db = "0.0.369" +ra_ap_hir_ty = "0.0.369" +ra_ap_hir_expand = "0.0.369" +ra_ap_load-cargo = "0.0.369" +ra_ap_paths = "0.0.369" +ra_ap_project_model = "0.0.369" +ra_ap_syntax = "0.0.369" +ra_ap_syntax-bridge = "0.0.369" +ra_ap_toolchain = "0.0.369" +ra_ap_vfs = "0.0.369" +ra_ap_parser = "0.0.369" +ra_ap_span = "0.0.369" +ra_ap_cfg = "0.0.369" +ra_ap_intern = "0.0.369" serde = "1.0.229" triomphe = "0.1.17" codeql-extractor = { path = "../../shared/tree-sitter-extractor" } From 88f082d4d3b8a6d746d11723eca36dad95468cc2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 1 Dec 2026 10:29:56 +0000 Subject: [PATCH 3/4] Rust: Update rust-analyzer sources --- MODULE.bazel | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MODULE.bazel b/MODULE.bazel index 4bbe7bb52cba..b20f677a9998 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -203,9 +203,9 @@ http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "ht # rust-analyzer sources needed by the rust ast-generator (see `rust/ast-generator/README.md`). # These should be updated through the `rust/scripts/update_rust_analyzer.py` script. -RUST_ANALYZER_SRC_TAG = "2026-10-12" +RUST_ANALYZER_SRC_TAG = "2026-11-30" -RUST_ANALYZER_SRC_INTEGRITY = "sha256-S9tGdGw7wrZjiMVx+/tZ0RE39Uw/wvO6GKDkGNvAZCA=" +RUST_ANALYZER_SRC_INTEGRITY = "sha256-iG0uIV2eo+cuHT9OvzEtyXm76mKrHF4ZtwEZTipQSEI=" http_archive( name = "rust-analyzer-src", From b6a3f5461b5aa619bb6137bc22d0a6a859d805f5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 1 Dec 2026 10:29:59 +0000 Subject: [PATCH 4/4] Rust: Update fixed toolchain --- rust/extractor/src/toolchain.rs | 2 +- rust/ql/integration-tests/conftest.py | 2 +- rust/ql/test/setup.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rust/extractor/src/toolchain.rs b/rust/extractor/src/toolchain.rs index e9074977ea50..248f37a4d421 100644 --- a/rust/extractor/src/toolchain.rs +++ b/rust/extractor/src/toolchain.rs @@ -24,7 +24,7 @@ use tracing::{info, warn}; /// toolchain release that precedes our version of rust-analyzer. /// /// When rust-analyzer is updated this version should be updated accordingly. -const FIXED_RUST_TOOLCHAIN: &str = "1.99.0"; +const FIXED_RUST_TOOLCHAIN: &str = "1.100.1"; /// The date of the oldest nightly toolchain known to work with our version of /// rust-analyzer. diff --git a/rust/ql/integration-tests/conftest.py b/rust/ql/integration-tests/conftest.py index d7d6738100ab..9f5de80b07ab 100644 --- a/rust/ql/integration-tests/conftest.py +++ b/rust/ql/integration-tests/conftest.py @@ -11,7 +11,7 @@ def pytest_configure(config): # match `FIXED_RUST_TOOLCHAIN`. if not hasattr(config, "workerinput"): commands.run( - "rustup toolchain install 1.99.0 --profile minimal --component rust-src" + "rustup toolchain install 1.100.1 --profile minimal --component rust-src" ) diff --git a/rust/ql/test/setup.sh b/rust/ql/test/setup.sh index d69b1b77143c..fbda670aa11b 100755 --- a/rust/ql/test/setup.sh +++ b/rust/ql/test/setup.sh @@ -10,7 +10,7 @@ set -euo pipefail cd "$(dirname "$0")" # Install the fixed toolchain used by the extractor. The version here should # match `FIXED_RUST_TOOLCHAIN`. -rustup toolchain install 1.99.0 --profile minimal --component rust-src +rustup toolchain install 1.100.1 --profile minimal --component rust-src pushd ../../extractor/src/nightly-toolchain rustup install popd