Skip to content

Commit

Permalink
explicitly declare lazy_static dependency
Browse files Browse the repository at this point in the history
`benches/bench.rs` uses lazy_static but Cargo.toml does not declare a
dependency on it. This causes rustc to use its own internal private
copy instead. Sometimes this causes unintuitive errors like this Debian
bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=942243

The underlying issue is https://github.com/rust-lang/rust#27812 but it
can be avoided by explicitly declaring the dependency, which you are
supposed to do anyways.

Closes #1435
  • Loading branch information
infinity0 authored and BurntSushi committed Feb 17, 2020
1 parent 040ca45 commit f8418c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions globset/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ regex = "1.1.5"

[dev-dependencies]
glob = "0.3.0"
lazy_static = "1"

[features]
simd-accel = []

0 comments on commit f8418c6

Please sign in to comment.