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

Building on x86 with rust nightly, proc-macro2 v1.0.38 fail #142

Open
adamvm opened this issue Sep 12, 2023 · 0 comments
Open

Building on x86 with rust nightly, proc-macro2 v1.0.38 fail #142

adamvm opened this issue Sep 12, 2023 · 0 comments

Comments

@adamvm
Copy link

adamvm commented Sep 12, 2023

automata$ cargo build
Compiling proc-macro2 v1.0.38
error[E0422]: cannot find struct, variant or union type LineColumn in crate proc_macro
--> /home/am/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.38/src/wrapper.rs:485:33
|
485 | let proc_macro::LineColumn { line, column } = s.start();
| ^^^^^^^^^^ not found in proc_macro
|
help: consider importing one of these items
|
1 + use crate::LineColumn;
|
1 + use crate::fallback::LineColumn;
|
help: if you import LineColumn, refer to it directly
|
485 - let proc_macro::LineColumn { line, column } = s.start();
485 + let LineColumn { line, column } = s.start();
|

error[E0422]: cannot find struct, variant or union type LineColumn in crate proc_macro
--> /home/am/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.38/src/wrapper.rs:502:33
|
502 | let proc_macro::LineColumn { line, column } = s.end();
| ^^^^^^^^^^ not found in proc_macro
|
help: consider importing one of these items
|
1 + use crate::LineColumn;
|
1 + use crate::fallback::LineColumn;
|
help: if you import LineColumn, refer to it directly
|
502 - let proc_macro::LineColumn { line, column } = s.end();
502 + let LineColumn { line, column } = s.end();
|

For more information about this error, try rustc --explain E0422.
error: could not compile proc-macro2 (lib) due to 2 previous errors

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

No branches or pull requests

1 participant