rust-lang-nursery / lazy-static.rs

A small macro for defining lazy evaluated static variables in Rust.
Apache License 2.0
1.91k stars 111 forks source link

Fails to compile on nightly 2018-04-27 with nightly feature enabled #96

Closed razorheadfx closed 6 years ago

razorheadfx commented 6 years ago

Trying to compile with current nightly toolchain (2018-04-27) with nightly feature enabled fails with:

error[E0425]: cannot find function `unreachable` in module `std::mem`
  --> /home/foo/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.0.0/src/nightly_lazy.rs:30:35
   |
30 |                 None => std::mem::unreachable(),
   |                                   ^^^^^^^^^^^ not found in `std::mem`
help: possible candidate is found in another module, you can import it into scope
   |
10 | use lazy::std::intrinsics::unreachable;
   |

Looks like a regression on nightly as it compiles fine with nightly-2018-04-10.

edit: fix nightly version date

razorheadfx commented 6 years ago

Cheers!

whmountains commented 6 years ago

Is it fixed?

razorheadfx commented 6 years ago

PR #97 not merged yet...