Conversation
| import codeql.files.FileSystem | ||
| import codeql.rust.elements.Abi | ||
| import codeql.rust.elements.Addressable | ||
| import codeql.rust.elements.AnyAttr |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
paldepind
force-pushed
the
rust/update-rust-analyzer-sep-23
branch
from
September 25, 2026 07:49
e417c3b to
3a7f851
Compare
Contributor
There was a problem hiding this comment.
CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
paldepind
force-pushed
the
rust/update-rust-analyzer-sep-23
branch
3 times, most recently
from
September 25, 2026 12:05
7ab640b to
7321f99
Compare
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 612c2b22-3121-4c83-9656-bb0f4abb2a8a
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: a04d83d9-ceea-4109-8ce1-f420585125d4
ra-ap-rustc_lexer requires unicode-ident and unicode-properties to use matching Unicode tables. ra_ap_parser 0.0.352 also requires winnow 0.7.13 to avoid a panic on Unicode following incomplete frontmatter. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 612c2b22-3121-4c83-9656-bb0f4abb2a8a
paldepind
force-pushed
the
rust/update-rust-analyzer-sep-23
branch
from
September 25, 2026 12:12
7321f99 to
c329d70
Compare
The new rust-analyzer version fixed a bug related to unicode parsing. As at test for this, one of the `ra_ap_parser` crate contain a test fixture with this invalid unicode. The _current_ Rust extractor naturally inherits the parsing bug present in the older rust-analyzer dependency that it uses. When CI does Code Scanning on the _new_ Rust extractor with the _old_ Rust extractor the parsing bug is hit since the beforementioned test fixture is extracted when extracting the Rust extractor through the `ra_ap_parser` dependency. As a temporaty workaroyund, we remove the test fixture from Cargo's downloaded dependency source before extracting. This avoid the old extractor failing in CI. Once the updated extractor is running on CI we should be able to remove this again.
Regenerate line-count expectations now that documentation comments are extracted as grammar nodes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 612c2b22-3121-4c83-9656-bb0f4abb2a8a
paldepind
force-pushed
the
rust/update-rust-analyzer-sep-23
branch
from
September 25, 2026 12:33
c329d70 to
ffc6ca4
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR updates rust-analyzer for the Rust extractor to version 0.0.352.
The biggest change that affects is is a recent change to
rust.ungramthat introduces a new AST nodeas well as
DocComment. Pretty much everywhere whereAttrwhere previously used the grammar now specifiesAnyAttr. This change is reflected in the dbscheme, QL classes, etc.