Skip to content

Rust: extract hasImplementation on functions and consts #19649

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

Draft
wants to merge 4 commits into
base: redsun82/rust-extract-libs
Choose a base branch
from

Conversation

redsun82
Copy link
Contributor

@redsun82 redsun82 commented Jun 3, 2025

When skipping bodies in library code, we were losing the information whether a body was originally present. This can be important, for example when determining whether a trait method has a default implementation. For Const we just now extract the body as well in library code.

With this change that information can now be recovered via the hasImplementation predicate.

Finally, the above uncovered a bug in the rustgen templates, where a detached predicate property would not be handled correctly. That is fixed now.

Paolo Tranquilli added 4 commits June 3, 2025 10:41
When skipping bodies in library code, we lose the information whether a
body was originally present. This can be important, for example when
determining whether a trait method has a default implementation.

With this change that information can be recovered via the
`hasImplementation` predicate.
@github-actions github-actions bot added the Rust Pull requests that update Rust code label Jun 3, 2025
@redsun82 redsun82 force-pushed the redsun82/rust-has-implementation branch from f88949a to 1110fea Compare June 3, 2025 10:12
@redsun82 redsun82 changed the title Rust: extract hasImplementation on functions Rust: extract hasImplementation on functions and consts Jun 3, 2025
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.

1 participant