Skip to content

docs.rs build is failing #875

Closed
Closed
@rnbguy

Description

@rnbguy

Bug Summary

Failed docs.rs build: https://docs.rs/crate/ibc/0.45.0/builds/917198

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

Details

Rust removed proc_macro::LineColumn which is being used in safe-proc-macro2 (dependency to safe-regex) under span-locations feature.

Probably docsrs is building the dependencies with --all-features which breaks the build in recent nightlies.

The fix requires an update from safe-proc-macro2 > safe-regex.

Version

0.42.0-0.45.0

Metadata

Metadata

Assignees

Labels

A: bugAdmin: something isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions