Skip to content

Conversation

@hvitved
Copy link
Contributor

@hvitved hvitved commented Nov 23, 2025

Adding these declarations now mean we will already have DBs with those entities available once we implement support for distinguishing mut/const types.

@github-actions github-actions bot added the Rust Pull requests that update Rust code label Nov 23, 2025
@hvitved hvitved force-pushed the rust/builtin-mut-placeholders branch from 790185b to 17e1e17 Compare November 23, 2025 19:56
@hvitved hvitved added the no-change-note-required This PR does not need a change note label Nov 24, 2025
@hvitved hvitved marked this pull request as ready for review November 24, 2025 07:34
@hvitved hvitved requested a review from a team as a code owner November 24, 2025 07:34
Copilot AI review requested due to automatic review settings November 24, 2025 07:34
Copilot finished reviewing on behalf of hvitved November 24, 2025 07:36
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 adds placeholder struct declarations for RefMut and PtrMut to represent mutable reference (&mut) and mutable pointer (*mut) types in the Rust builtin types system. These additions prepare the codebase for future support of distinguishing between mutable and const types.

  • Removed TODO comments for mut variants
  • Added RefMut<TRefMut> and PtrMut<TPtrMut> struct declarations
  • Updated test expectations to include the new types

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
rust/tools/builtins/types.rs Added RefMut and PtrMut placeholder structs for mutable reference and pointer types, removing previous TODO comments
rust/ql/test/library-tests/elements/builtintypes/BuiltinTypes.expected Updated generated test expectations to include the new PtrMut and RefMut types in alphabetical order

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@hvitved hvitved requested a review from paldepind November 24, 2025 08:04
Copy link
Contributor

@paldepind paldepind left a comment

Choose a reason for hiding this comment

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

👍

@hvitved hvitved merged commit c7a0411 into github:main Nov 24, 2025
22 checks passed
@hvitved hvitved deleted the rust/builtin-mut-placeholders branch November 24, 2025 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-change-note-required This PR does not need a change note Rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants