Skip to content

Conversation

@paldepind
Copy link
Contributor

Small PR that extends the type equality predicate to propagate equal types for a few more expression types.

@github-actions github-actions bot added the Rust Pull requests that update Rust code label Mar 14, 2025
@paldepind paldepind marked this pull request as ready for review March 14, 2025 10:57
Copilot AI review requested due to automatic review settings March 14, 2025 10:57
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR extends the type equality predicate to propagate equal types for additional expression types.

  • Removed outdated comments in MyEnum match arms in mod m6.
  • Added test cases for if expression, match expression, and loop expression in mod m9.
Files not reviewed (5)
  • rust/ql/lib/codeql/rust/controlflow/internal/Completion.qll: Language not supported
  • rust/ql/lib/codeql/rust/controlflow/internal/ControlFlowGraphImpl.qll: Language not supported
  • rust/ql/lib/codeql/rust/controlflow/internal/Splitting.qll: Language not supported
  • rust/ql/lib/codeql/rust/elements/internal/IfExprImpl.qll: Language not supported
  • rust/ql/lib/codeql/rust/internal/TypeInference.qll: Language not supported

Tip: Copilot only keeps its highest confidence comments to reduce noise and keep you focused. Learn more

@paldepind paldepind requested a review from hvitved March 14, 2025 12:02
Copy link
Contributor

@hvitved hvitved left a comment

Choose a reason for hiding this comment

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

Nice!

@paldepind paldepind merged commit 60f96ee into github:main Mar 14, 2025
16 checks passed
@paldepind
Copy link
Contributor Author

DCA is looking fine I think (phew 😅). Missing call targets is down, 4 extra path resolution inconsistencies on Rust, and things look slightly slower but I guess that's because more types are inferred.

@paldepind paldepind deleted the rust-expr-type-eq branch March 14, 2025 14:37
@hvitved
Copy link
Contributor

hvitved commented Mar 14, 2025

things look slightly slower but I guess that's because more types are inferred

Actually, there appears to be no slowdown at all, when you look at the Analysis time, per source summary.

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

Labels

Rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants