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

Tc: rework attribute-tagged implicits to require defer_to #3415

Merged
merged 3 commits into from
Aug 27, 2024

Conversation

mtzguido
Copy link
Member

Instead of picking any attribute to trigger the introduction of a
Ctx_uvar_meta_attr, make this so only when defer_to is used. This
allows us to introduce binder attributes for other things without
changing the way they are instantiated.

This will require a patch to Steel: FStarLang/steel#177

@R1kM: wondering if this seems alright to you. I suppose you may have more code that requires a patch?

This was motivated by noticing that #3406 introduces regressions even without implementing the unrefining logic.

Instead of picking any attribute to trigger the introduction of a
Ctx_uvar_meta_attr, make this so only when `defer_to` is used. This
allows us to introduce binder attributes for other things without
changing the way they are instantiated.
@mtzguido
Copy link
Member Author

I'll merge this.. I think it's probably fine, but please do let me know if this is incovenient or help is needed migrating. It should just amount to changing [@@@attr] to [@@@defer_to attr] when attr is meant to tag implicits for resolve_implicits (like framing_implicit in Steel).

@mtzguido mtzguido merged commit ca60642 into FStarLang:master Aug 27, 2024
2 checks passed
@mtzguido mtzguido deleted the defer_to branch August 27, 2024 16:47
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.

1 participant