Skip to content

Conversation

@geoffw0
Copy link
Contributor

@geoffw0 geoffw0 commented Jul 25, 2025

Replace the QL model for Clone with a models-as-data model. Smaller, cleaner, easier to maintain.

@geoffw0 geoffw0 added the no-change-note-required This PR does not need a change note label Jul 25, 2025
Copilot AI review requested due to automatic review settings July 25, 2025 08:45
@geoffw0 geoffw0 added the Rust Pull requests that update Rust code label Jul 25, 2025
@geoffw0 geoffw0 requested a review from a team as a code owner July 25, 2025 08:46
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 replaces the QL-based model for the Clone trait with a models-as-data (MaD) approach, making the codebase smaller, cleaner, and easier to maintain. The refactoring migrates from imperative QL code to a declarative YAML configuration.

Key changes:

  • Adds a generic MaD model for <_ as core::clone::Clone>::clone in the YAML model file
  • Removes the dedicated QL implementation file Clone.qll
  • Updates imports to remove references to the deleted QL module

Reviewed Changes

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

File Description
lang-core.model.yml Adds MaD model entry for the Clone trait
Clone.qll Removes the entire QL-based implementation
Frameworks.qll Removes import of the deleted Clone module
inline-flow.expected Updates test expectations to reflect the new MaD model numbering

paldepind
paldepind previously approved these changes Jul 25, 2025
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.

CI has some diffs, but LGTM 👍

@geoffw0 geoffw0 merged commit 2951ae9 into github:main Jul 25, 2025
18 checks passed
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