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: Add more thorough check for whether a type is valid when passing it from constrained code to unconstrained code #5009

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jfecher
Copy link
Contributor

@jfecher jfecher commented May 9, 2024

Description

Problem*

Resolves #5008

Summary*

Thank you to @nventuro for the minimal example and @TomAFrench for looking into this. As a result it was a quick fix.

Additional Context

All type system fixes must currently be duplicated in the elaborator so I've included this there as well.

Documentation*

Check one:

  • No documentation needed.
  • Documentation included in this PR.
  • [For Experimental Features] Documentation to be submitted in a separate PR.

PR Checklist*

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt on default settings.

@jfecher jfecher requested a review from TomAFrench May 9, 2024 21:11
Copy link
Member

@TomAFrench TomAFrench left a comment

Choose a reason for hiding this comment

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

LGTM!

@jfecher jfecher enabled auto-merge May 9, 2024 21:21
@jfecher
Copy link
Contributor Author

jfecher commented May 20, 2024

I'm not familiar enough with the debugger to know why it seems to be passing mutable references from constrained -> unconstrained or if it needs to do so or not. So I'm putting this PR on hold for now.

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.

ICE: unreacheable code
2 participants