-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[Merged by Bors] - Use fully-qualified type names in proc macro. #3544
Conversation
Modifies the code emitted by `derive_label` to use fully-qualified type names (e.g. `std::boxed::Box` instead of `Box`).
Thanks for the review! bors r+ (It appears I misunderstood who is supposed to trigger Bors -- will wait for someone to get around to it) |
🔒 Permission denied Existing reviewers: click here to make mnett82 a reviewer |
Yep, this is currently scoped to @cart (full rights), @mockersf (trivial code quality improvements) and myself (docs!). In this case, this PR is in the second group, so @mockersf will likely be the one to merge this in. |
bors r+ |
Modifies the code emitted by `derive_label` to use fully-qualified type names (e.g. `std::boxed::Box` instead of `Box`). # Objective - Using unqualified types here causes errors when the proc macro is used in contexts that locally define types with conflicting names (e.g. a local definition of `Box`). ## Solution - Fully qualify standard types emitted by the proc macro code.
Modifies the code emitted by
derive_label
to use fully-qualified typenames (e.g.
std::boxed::Box
instead ofBox
).Objective
Box
).Solution