Skip to content

Build script fails to resolve syntex::Registry #202

@jimmycuadra

Description

@jimmycuadra

This started happening in a crate that uses Serde with code generation.

  • Stable Rust 1.5
  • serde_codegen 0.6.7
  • syntex 0.24.0 (0.25.0 exhibits the same behavior)

Output from cargo build

   Compiling serde_codegen v0.6.7
/Users/user/.cargo/registry/src/github.1485827954.workers.dev-88ac128001ac3a9a/serde_codegen-0.6.7/build.rs:12:33: 12:46 error: mismatched types:
 expected `&mut syntex::Registry`,
    found `&mut inner::syntex::Registry`
(expected struct `syntex::Registry`,
    found struct `inner::syntex::Registry`) [E0308]
/Users/user/.cargo/registry/src/github.1485827954.workers.dev-88ac128001ac3a9a/serde_codegen-0.6.7/build.rs:12         quasi_codegen::register(&mut registry);
                                                                                                                             ^~~~~~~~~~~~~
/Users/user/.cargo/registry/src/github.1485827954.workers.dev-88ac128001ac3a9a/serde_codegen-0.6.7/build.rs:12:33: 12:46 help: run `rustc --explain E0308` to see a detailed explanation
error: aborting due to previous error
Could not compile `serde_codegen`.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions