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

Expose proc_macro's before() and after() methods on Span #348

Merged
merged 1 commit into from Sep 24, 2022

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Sep 24, 2022

Tracking issue: rust-lang/rust#87552

@dtolnay dtolnay merged commit c0592e3 into master Sep 24, 2022
16 checks passed
@dtolnay dtolnay deleted the beforeafter branch Sep 24, 2022
@huybuidac
Copy link

huybuidac commented Sep 25, 2022

hey @dtolnay , it causes "unknown feature proc_macro_span_shrink", what should I do?

@BestRamsay
Copy link

BestRamsay commented Sep 26, 2022

@dtolnay, How i can resolve error[E0635]: unknown feature proc_macro_span_shrink ??

@taiki-e
Copy link

taiki-e commented Sep 26, 2022

@huybuidac @BestRamsay: I think you need to upgrade the nightly toolchain to nightly-2021-10-11 or later, downgrade proc-macro2 to 1.0.43, or use a non-nightly toolchain.

@adamhfox
Copy link

adamhfox commented Sep 26, 2022

@taiki-e any other potential solutions seems to cause more errors for me

@taiki-e
Copy link

taiki-e commented Sep 26, 2022

@adamhfox: Since none of you provided specific information about the project where the error occurred, I talked about the basic case.
That said, I would be surprised if downgrading proc-macro2 (cargo update -p proc-macro2 --precise 1.0.43) does not work.

@adamhfox
Copy link

adamhfox commented Sep 26, 2022

cargo update -p proc-macro2 --precise 1.0.43

Thank you, that solved it

The problem arised for me when creating a new anchor project

Repository owner locked and limited conversation to collaborators Oct 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants