Skip to content

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

Closed
@razorheadfx

Description

@razorheadfx

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.tiyicn.workers.dev-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

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