Skip to content

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.

4 participants