Skip to content

Rust: Replace QL model for Clone with MaD #20124

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 25, 2025
Merged

Rust: Replace QL model for Clone with MaD #20124

merged 3 commits into from
Jul 25, 2025

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 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 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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy