Skip to content

Rust: Exclude 'unused variable' results for functions containing todo!() or unimplemented!() - #22398

Open
hvitved wants to merge 2 commits into
github:mainfrom
hvitved:rust/unused-variable-todo
Open

Rust: Exclude 'unused variable' results for functions containing todo!() or unimplemented!()#22398
hvitved wants to merge 2 commits into
github:mainfrom
hvitved:rust/unused-variable-todo

Conversation

@hvitved

@hvitved hvitved commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions github-actions Bot added the Rust Pull requests that update Rust code label Aug 20, 2026
@hvitved
hvitved marked this pull request as ready for review August 20, 2026 15:19
@hvitved
hvitved requested a review from a team as a code owner August 20, 2026 15:19
Copilot AI balanced review requested due to automatic review settings August 20, 2026 15:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Excludes unused-variable findings from Rust callables containing standard incomplete-code macros.

Changes:

  • Recognizes resolved todo!() and unimplemented!() macros.
  • Adds regression tests and a change note.
Show a summary per file
File Description
UnusedVariable.qll Extends incomplete-callable detection.
main.rs Tests both standard macros.
Change note Documents the analysis improvement.

Review details

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 3/3 changed files
  • Comments generated: 0
  • Review effort level: Balanced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants