这是indexloc提供的服务,不要输入任何密码
Skip to content

Breaks with newer rust #25

@palfrey

Description

@palfrey

As part of toltec-dev/toltec#951, I tried upgrading this to use the rust:v3.1 build image and got the following

[   DEBUG] toltec.builder: build(): error[E0422]: cannot find struct, variant or union type `LineColumn` in crate `proc_macro`
[   DEBUG] toltec.builder: build(): --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.51/src/wrapper.rs:475:33
[   DEBUG] toltec.builder: build(): |
[   DEBUG] toltec.builder: build(): 475 |                 let proc_macro::LineColumn { line, column } = s.start();
[   DEBUG] toltec.builder: build(): |                                 ^^^^^^^^^^ not found in `proc_macro`
[   DEBUG] toltec.builder: build(): |
[   DEBUG] toltec.builder: build(): help: consider importing this struct through its public re-export
[   DEBUG] toltec.builder: build(): |
[   DEBUG] toltec.builder: build(): 1   + use crate::LineColumn;
[   DEBUG] toltec.builder: build(): |
[   DEBUG] toltec.builder: build(): help: if you import `LineColumn`, refer to it directly
[   DEBUG] toltec.builder: build(): |
[   DEBUG] toltec.builder: build(): 475 -                 let proc_macro::LineColumn { line, column } = s.start();
[   DEBUG] toltec.builder: build(): 475 +                 let LineColumn { line, column } = s.start();
[   DEBUG] toltec.builder: build(): |
[   DEBUG] toltec.builder: build():
[   DEBUG] toltec.builder: build(): error[E0422]: cannot find struct, variant or union type `LineColumn` in crate `proc_macro`
[   DEBUG] toltec.builder: build(): --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.51/src/wrapper.rs:489:33
[   DEBUG] toltec.builder: build(): |
[   DEBUG] toltec.builder: build(): 489 |                 let proc_macro::LineColumn { line, column } = s.end();
[   DEBUG] toltec.builder: build(): |                                 ^^^^^^^^^^ not found in `proc_macro`
[   DEBUG] toltec.builder: build(): |
[   DEBUG] toltec.builder: build(): help: consider importing this struct through its public re-export
[   DEBUG] toltec.builder: build(): |
[   DEBUG] toltec.builder: build(): 1   + use crate::LineColumn;
[   DEBUG] toltec.builder: build(): |
[   DEBUG] toltec.builder: build(): help: if you import `LineColumn`, refer to it directly
[   DEBUG] toltec.builder: build(): |
[   DEBUG] toltec.builder: build(): 489 -                 let proc_macro::LineColumn { line, column } = s.end();
[   DEBUG] toltec.builder: build(): 489 +                 let LineColumn { line, column } = s.end();
[   DEBUG] toltec.builder: build(): |
[   DEBUG] toltec.builder: build():
[   DEBUG] toltec.builder: build(): error[E0635]: unknown feature `proc_macro_span_shrink`
[   DEBUG] toltec.builder: build(): --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.51/src/lib.rs:92:30
[   DEBUG] toltec.builder: build(): |
[   DEBUG] toltec.builder: build(): 92 |     feature(proc_macro_span, proc_macro_span_shrink)
[   DEBUG] toltec.builder: build(): |                              ^^^^^^^^^^^^^^^^^^^^^^
[   DEBUG] toltec.builder: build():
[   DEBUG] toltec.builder: build(): Some errors have detailed explanations: E0422, E0635.
[   DEBUG] toltec.builder: build(): For more information about an error, try `rustc --explain E0422`.
[   DEBUG] toltec.builder: build(): error: could not compile `proc-macro2` (lib) due to 3 previous errors

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