Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to build from source on toolchain recommendation #9

Open
mooreniemi opened this issue Oct 2, 2020 · 4 comments
Open

unable to build from source on toolchain recommendation #9

mooreniemi opened this issue Oct 2, 2020 · 4 comments

Comments

@mooreniemi
Copy link

Failing to build on latest nightly, but also when using rustup run nightly-2019-10-28 cargo build:

error[E0658]: `cfg(doctest)` is experimental and subject to change
  --> /Users/amooren/.cargo/registry/src/github.com-1ecc6299db9ec823/memoffset-0.5.6/src/lib.rs:74:7
   |
74 | #[cfg(doctest)]
   |       ^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/62210
   = help: add `#![feature(cfg_doctest)]` to the crate attributes to enable

error[E0658]: `cfg(doctest)` is experimental and subject to change
  --> /Users/amooren/.cargo/registry/src/github.com-1ecc6299db9ec823/memoffset-0.5.6/src/lib.rs:77:7
   |
77 | #[cfg(doctest)]
   |       ^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/62210
   = help: add `#![feature(cfg_doctest)]` to the crate attributes to enable

error: aborting due to 2 previous errors

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

Looks correct to me?

rustc --version
rustc 1.40.0-nightly (95f437b3c 2019-10-27)
@mooreniemi
Copy link
Author

Based on #1 looking to see if I can use memoffset 0.2.1 and that fixes it.

@mooreniemi
Copy link
Author

I don't see a branch for https://github.com/Gilnaa/memoffset that would allow me to take 0.2.1 easily. I tried taking crossbeam = "0.4" and was able to avoid memoffset but of course this is too old and breaks other things.

@mooreniemi
Copy link
Author

I ended up editing the locale file in memoffset to add #![feature(cfg_doctest)] and build succeeded. Maybe I should close this and reopen in memoffset repo?

@jtong11
Copy link
Collaborator

jtong11 commented Oct 13, 2020

I ended up editing the locale file in memoffset to add #![feature(cfg_doctest)] and build succeeded. Maybe I should close this and reopen in memoffset repo?

hi, we have synced the toolchain using in prod.
rustc --version
rustc 1.43.0-nightly (c20d7eecb 2020-03-11)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants