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

Explore type level integration without bonding to compiler #6

Open
3 tasks
matprec opened this issue Jul 4, 2017 · 0 comments
Open
3 tasks

Explore type level integration without bonding to compiler #6

matprec opened this issue Jul 4, 2017 · 0 comments

Comments

@matprec
Copy link
Owner

matprec commented Jul 4, 2017

Binding ourself to the compiler will remove make us cumbersome. Instead, provide a TypeQuery trait, wich the caller will implement. This makes it possible, to e.g. leverage the RLS capabilities without fixing ourself to the compiler, as the would update the query trait on its own.

Specific design is open. Some thoughts:

is_type_from_std(&ast::TyKind) / query_type_id(&ast::TyKind). The caller would need to be able to provide more information, especially in generic contexts, where the type of a function is defined by inference.

Goals

  • coercions (deref, but not only) – where they happen, why they happen
  • desugaring of operators
  • Annotate fat pointers (trait objects)
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

No branches or pull requests

1 participant