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

Improve fp module annotations to automatically derive module path #158

Open
sagacity opened this issue Dec 13, 2022 · 0 comments
Open

Improve fp module annotations to automatically derive module path #158

sagacity opened this issue Dec 13, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@sagacity
Copy link
Contributor

Right now fp annotations that end with *_module (e.g. fp(rust_plugin_module = "my_crate::types")) add quite some verbosity since the module path of the original types needs to be explicity specified. We should consider if we can generate this information automatically.

There is currently a nightly-only feature that allows us to retrieve the source_file of a Span, but this is not available in stable Rust yet. Once this is available, we can clean up the annotation.

@sagacity sagacity added the enhancement New feature or request label Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant