Skip to content

Cargo check on nightly seems to have problems with re-exported types #3464

Closed
@MaikKlein

Description

@MaikKlein

https://github.com/MaikKlein/ash/tree/b49b2b1deb84aea24a9e1701f22cc8d2d30f02e2

cd examples && cargo check

The following errors should appear

error[E0308]: mismatched types
   --> src/bin/texture.rs:845:45
    |
845 |             base.device.destroy_framebuffer(framebuffer, None);
    |                                             ^^^^^^^^^^^ expected struct `ash::vk::types::Framebuffer`, found struct `ash::vk::Framebuffer`
    |
    = note: expected type `ash::vk::types::Framebuffer`
    = note:    found type `ash::vk::Framebuffer`

Here ash::vk::Framebuffer and ash::vk::types::Framebuffer are actually the same thing.

Here is the re-export https://github.com/MaikKlein/ash/blob/b49b2b1deb84aea24a9e1701f22cc8d2d30f02e2/src/vk.rs#L2

And here is the type definition
https://github.com/MaikKlein/ash/blob/b49b2b1deb84aea24a9e1701f22cc8d2d30f02e2/src/vk.rs#L3254

➜  ~ rustc --version
rustc 1.15.0-nightly (71c06a56a 2016-12-18)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions