Skip to content

route-recognizer compile error: use of unstable library feature 'test'  #302

Closed
@dvic

Description

@dvic

Bug Report

Tide does not compile.

Code/Gist

cargo run --example hello on dd0bcfe

Environment

  • Rust toolchain version(s): rustc 1.38.0-nightly (2d1a551e1 2019-08-08)
  • OS: OSX 10.14.5

Possible Solution

Fix upstream?

Additional context/Screenshots

Error:

cargo run --example hello
   Compiling route-recognizer v0.1.12
   Compiling arc-swap v0.3.11
   Compiling humansize v1.1.0
   Compiling uuid v0.7.4
   Compiling termcolor v1.0.5
   Compiling glob v0.2.11
   Compiling antidote v1.0.0
   Compiling proc-macro2 v0.4.30
   Compiling syn v0.15.43
   Compiling rand_chacha v0.1.1
error[E0658]: use of unstable library feature 'test': `bench` is a part of custom test frameworks which are unstable
   --> /Users/dvic/.cargo/registry/src/github.colasdn.workers.dev-1ecc6299db9ec823/route-recognizer-0.1.12/src/nfa.rs:568:3
    |
568 | #[bench]
    |   ^^^^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/50297
    = help: add `#![feature(test)]` to the crate attributes to enable

error[E0658]: use of unstable library feature 'test': `bench` is a part of custom test frameworks which are unstable
   --> /Users/dvic/.cargo/registry/src/github.colasdn.workers.dev-1ecc6299db9ec823/route-recognizer-0.1.12/src/nfa.rs:582:3
    |
582 | #[bench]
    |   ^^^^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/50297
    = help: add `#![feature(test)]` to the crate attributes to enable

error[E0658]: use of unstable library feature 'test': `bench` is a part of custom test frameworks which are unstable
   --> /Users/dvic/.cargo/registry/src/github.colasdn.workers.dev-1ecc6299db9ec823/route-recognizer-0.1.12/src/nfa.rs:596:3
    |
596 | #[bench]
    |   ^^^^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/50297
    = help: add `#![feature(test)]` to the crate attributes to enable

error[E0658]: use of unstable library feature 'test': `bench` is a part of custom test frameworks which are unstable
   --> /Users/dvic/.cargo/registry/src/github.colasdn.workers.dev-1ecc6299db9ec823/route-recognizer-0.1.12/src/lib.rs:332:3
    |
332 | #[bench]
    |   ^^^^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/50297
    = help: add `#![feature(test)]` to the crate attributes to enable

   Compiling unicase v1.4.2
error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0658`.
error: Could not compile `route-recognizer`.
warning: build failed, waiting for other jobs to finish...
error: build failed```

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