Skip to content

Unknown feature proc_macro_span_shrink #356

@rohit123sinha456

Description

@rohit123sinha456

proc-macro2 is a dependent library of the anchor framework. Whenever I am doing a anchor build, the build fails showing the following error :-

If somebody can please help with this..

error[E0635]: unknown feature proc_macro_span_shrink
--> /Users/rohitsinha/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-1.0.46/src/lib.rs:92:30
|
92 | feature(proc_macro_span, proc_macro_span_shrink)
| ^^^^^^^^^^^^^^^^^^^^^^

For more information about this error, try rustc --explain E0635.
error: could not compile proc-macro2 due to previous error
warning: build failed, waiting for other jobs to finish...
error: build failed

P.S Thanks in advance for any help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions