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 codegen of 'missing lifetimes' when functions have &mut return but no &mut params #1254

Merged
merged 2 commits into from
Feb 21, 2023

Conversation

adetaylor
Copy link
Collaborator

@adetaylor adetaylor commented Feb 21, 2023

Fixes #1238.

Fixes #1238.

This also takes the opportunity to:
* improve diagnostics for some of the existing cases of functions
  rejected for reference shenanigans;
* be more consistent about how we determine 'reference-ness'
  of return values and parameters.
@adetaylor adetaylor changed the title Add failing test case for issue 1238. Fix codegen of 'missing lifetimes' when functions have &mut return but no &mut params Feb 21, 2023
@adetaylor adetaylor merged commit 143b294 into main Feb 21, 2023
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.

Missing lifetime specifier in generated code
1 participant