Skip to content
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

fix incorrect spans on ret and py local varianbles in emitted code #4382

Merged
merged 2 commits into from
Jul 27, 2024

Conversation

Icxolu
Copy link
Contributor

@Icxolu Icxolu commented Jul 27, 2024

This fixes the new output_span (#4220) of the return type of functions and methods (ret) is not carried to every usage, and the span of py in map_result_into_ptr has incorrectly changed.

Closes #4381

Copy link
Member

@davidhewitt davidhewitt left a comment

Choose a reason for hiding this comment

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

Nicely figured out, thanks!

@davidhewitt davidhewitt added this pull request to the merge queue Jul 27, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 27, 2024
@davidhewitt davidhewitt added this pull request to the merge queue Jul 27, 2024
Merged via the queue into PyO3:main with commit 9e2a945 Jul 27, 2024
41 of 42 checks passed
@Icxolu Icxolu deleted the fix/4381 branch July 27, 2024 20:41
davidhewitt pushed a commit that referenced this pull request Sep 3, 2024
#4382)

* fix incorrect spans on `ret` and `py` local varianbles in emitted code

* add newsfragment
davidhewitt pushed a commit that referenced this pull request Sep 15, 2024
#4382)

* fix incorrect spans on `ret` and `py` local varianbles in emitted code

* add newsfragment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deriving pyclass/pymethods seems to break when inside of a macro-by-example.
2 participants