PistonDevelopers / gfx_text

Draw text for gfx using freetype
http://docs.piston.rs/gfx_text/gfx_text/
MIT License
22 stars 12 forks source link

gfx_text couldn't compile - gfx_pipeline_base isn't in the root #53

Closed adjivas closed 7 years ago

adjivas commented 7 years ago

Hello,

There is a futur hard error with the macro gfx_pipeline_base used at the module shader_structs.

> rustc --version
rustc 1.15.0-nightly (0bd2ce62b 2016-11-19)
> cargo build
    Updating registry `https://github.com/rust-lang/crates.io-index`
 Downloading gfx v0.12.1
 Downloading freetype-rs v0.11.0
 Downloading draw_state v0.6.0
 Downloading gfx_core v0.4.0
 Downloading bitflags v0.6.0
 Downloading freetype-sys v0.4.0
   Compiling pkg-config v0.3.8
   Compiling bitflags v0.7.0
   Compiling libc v0.2.17
   Compiling gcc v0.3.38
   Compiling bitflags v0.6.0
   Compiling log v0.3.6
   Compiling draw_state v0.6.0
   Compiling gfx_core v0.4.0
   Compiling freetype-sys v0.4.0
   Compiling libz-sys v1.0.7
   Compiling freetype-rs v0.11.0
   Compiling gfx v0.12.1
   Compiling gfx_text v0.13.1 (file:///home/adjivas/Test/gfx_text)
warning: `$crate` may not be imported
   --> src/lib.rs:567:5
    |
567 |     gfx_pipeline_base!( pipe {
    |     ^
    |
    = note: `use $crate;` was erroneously allowed and will become a hard error in a future release
    = note: this error originates in a macro outside of the current crate

error[E0432]: unresolved import ``
   --> src/lib.rs:567:5
    |
567 |     gfx_pipeline_base!( pipe {
    |     ^ no `` in the root
    |
    = note: this error originates in a macro outside of the current crate

error: aborting due to previous error

error: Could not compile `gfx_text`.

To learn more, run the command again with --verbose.
adjivas commented 7 years ago

This error append only with the nightly version of Rust (Tested with this travis trace).

adjivas commented 7 years ago

bvssvni@gfx_text has already fixed this failure on his fork