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

Upgrade proc-macro-crate to v1 #77

Merged
merged 2 commits into from
Mar 12, 2021
Merged

Conversation

dvdplm
Copy link
Contributor

@dvdplm dvdplm commented Mar 11, 2021

No description provided.

.map(|crate_name| {
use proc_macro_crate::FoundCrate::*;
match crate_name {
Itself => Ident::new("self", Span::call_site()),
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Itself => Ident::new("self", Span::call_site()),
Itself => Ident::new("crate", Span::call_site()),

Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't crate the right keyword then? Actually I wonder if crate as Ident is allowed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, it's not, which is why I switched to a token stream in the other PR.

My plan was to merge this change here and then merge it into the other and sort out the Itself-case there.

Copy link
Contributor

@Robbepop Robbepop left a comment

Choose a reason for hiding this comment

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

With #77 (comment) said it is an approval from me.

@ascjones ascjones merged commit 0e1bf5d into master Mar 12, 2021
@ascjones ascjones deleted the dp-update-proc-macro-crate branch March 12, 2021 13:12
@ascjones ascjones mentioned this pull request Mar 12, 2021
@ascjones ascjones mentioned this pull request Jun 25, 2021
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.

3 participants