servo / unicode-bidi

Implementation of the Unicode Bidirection Algorithm in Rust
Other
74 stars 34 forks source link

cargo install fails #47

Closed ghost closed 7 years ago

ghost commented 7 years ago

cargo is failing to compile this package (I'm new to rust BTW...)

   Compiling bitflags v0.9.1
   Compiling unicode-bidi v0.3.4
error: struct field shorthands are unstable (see issue #37340)
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/unicode-bidi-0.3.4/src/explicit.rs:180:32
    |
180 |         self.vec.push(Status { level, status });
    |                                ^^^^^

error: struct field shorthands are unstable (see issue #37340)
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/unicode-bidi-0.3.4/src/explicit.rs:180:39
    |
180 |         self.vec.push(Status { level, status });
    |                                       ^^^^^^

error: struct field shorthands are unstable (see issue #37340)
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/unicode-bidi-0.3.4/src/lib.rs:226:13
    |
226 |             text,
    |             ^^^^

error: struct field shorthands are unstable (see issue #37340)
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/unicode-bidi-0.3.4/src/lib.rs:227:13
    |
227 |             original_classes,
    |             ^^^^^^^^^^^^^^^^

error: struct field shorthands are unstable (see issue #37340)
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/unicode-bidi-0.3.4/src/lib.rs:228:13
    |
228 |             paragraphs,
    |             ^^^^^^^^^^

error: struct field shorthands are unstable (see issue #37340)
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/unicode-bidi-0.3.4/src/lib.rs:303:13
    |
303 |             text,
    |             ^^^^

error: struct field shorthands are unstable (see issue #37340)
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/unicode-bidi-0.3.4/src/lib.rs:304:13
    |
304 |             original_classes,
    |             ^^^^^^^^^^^^^^^^

error: struct field shorthands are unstable (see issue #37340)
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/unicode-bidi-0.3.4/src/lib.rs:305:13
    |
305 |             paragraphs,
    |             ^^^^^^^^^^

error: struct field shorthands are unstable (see issue #37340)
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/unicode-bidi-0.3.4/src/lib.rs:306:13
    |
306 |             levels,
    |             ^^^^^^

error: aborting due to 9 previous errors

Is this something I am doing wrong or a problem on your side? Here is the bug in rust's github https://github.com/rust-lang/rust/issues/37340

ghost commented 7 years ago

BTW I am running cargo-0.17.0:0 rust-1.16.0

Manishearth commented 7 years ago

Update to latest Rust, it should get fixed.