Skip to content

cannot find value NoneError in module std::option #85614

New issue

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

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

Already on GitHub? # to your account

Closed
DzenanJupic opened this issue May 23, 2021 · 3 comments
Closed

cannot find value NoneError in module std::option #85614

DzenanJupic opened this issue May 23, 2021 · 3 comments
Labels
regression-untriaged Untriaged performance or correctness regression.

Comments

@DzenanJupic
Copy link

related issues: #42327 #84277

Code

I tried this code:

docker run --rm -it debian:buster-slim /bin/bash
# in container
apt install -y ca-certificates curl
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly --profile [minimal|default] # could not test complete since it doesn't install for me
source "$HOME"/.cargo/env
cargo new temp
// temp/src/main.rs

#![feature(try_trait)] // #42327 | neither works try_trait_v2 from #84277 
use std::option::NoneError;
fn main() {}

I expected to see this happen: It compiles

Instead, this happened:

error[E0432]: unresolved import `std::option::NoneError`
 --> src/main.rs:2:5
  |
2 | use std::option::NoneError;
  |     ^^^^^^^^^^^^^^^^^^^^^^ no `NoneError` in `option`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0432`.
error: could not compile `temp`
verbose output
     Running `rustc --crate-name temp --edition=2018 src/main.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C metadata=d892e47b8f4f249b -C extra-filename=-d892e47b8f4f249b --out-dir /temp/target/debug/deps -C incremental=/temp/target/debug/incremental -L dependency=/temp/target/debug/deps`
error[E0432]: unresolved import `std::option::NoneError`
 --> src/main.rs:2:5
  |
2 | use std::option::NoneError;
  |     ^^^^^^^^^^^^^^^^^^^^^^ no `NoneError` in `option`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0432`.
error: could not compile `temp`

Caused by:
  process didn't exit successfully: `rustc --crate-name temp --edition=2018 src/main.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C metadata=d892e47b8f4f249b -C extra-filename=-d892e47b8f4f249b --out-dir /temp/target/debug/deps -C incremental=/temp/target/debug/incremental -L dependency=/temp/target/debug/deps` (exit status: 1)

Version it worked on

It works on: nightly-2021-05-10

Version with regression

rustc --version --verbose:

rustc 1.54.0-nightly (e4ca1662f 2021-05-22)
binary: rustc
commit-hash: e4ca1662f255db774dcd16ed9c3776bf25ac8361
commit-date: 2021-05-22
host: x86_64-unknown-linux-gnu
release: 1.54.0-nightly
LLVM version: 12.0.1

rustup --version

rustup 1.24.2 (755e2b07e 2021-05-12)

cargo --version --verbose

cargo 1.54.0-nightly (070e459c2 2021-05-11)
release: 1.54.0
commit-hash: 070e459c2d8b79c5b2ac5218064e7603329c92ae
commit-date: 2021-05-11
@DzenanJupic DzenanJupic added C-bug Category: This is a bug. regression-untriaged Untriaged performance or correctness regression. labels May 23, 2021
@rustbot rustbot added the I-prioritize Issue: Indicates that prioritization has been requested for this issue. label May 23, 2021
@jonas-schievink
Copy link
Contributor

Intentionally removed in #85482

@DzenanJupic
Copy link
Author

My bad

@jyn514 jyn514 removed C-bug Category: This is a bug. I-prioritize Issue: Indicates that prioritization has been requested for this issue. labels May 24, 2021
@Hezuikn
Copy link

Hezuikn commented Oct 7, 2022

rip

rex-remind101 added a commit to proptest-rs/proptest that referenced this issue Dec 19, 2022
…orrect it

* dependencies.x86 was bumped to latest current version. x86 crate
  does not advertise an MSRV, but this was just broken on even our
  MSRV because the old x86 version was using a macro removed from
  rust, so bumping to latest seems fair.
* the calculation for the arbitrary impl of Layout was using a
  max_size that was too large and overflowing Layout. this has
  been fixed.
* test for arbitrary AllocError was referering to AllocErr which
  does not exist, this was fixed.
* NoneError has been removed from rust so it was subsequently
  removed from proptest. It was blocking compilation.
  evidence:
  rust-lang/rust#85614
* try_reserve is stable so removed from unstable features
* try_trait has been changed to try_trait_v2 so that was fixed
  in Cargo.toml.
rex-remind101 added a commit to proptest-rs/proptest that referenced this issue Dec 19, 2022
…orrect it

* dependencies.x86 was bumped to latest current version. x86 crate
  does not advertise an MSRV, but this was just broken on even our
  MSRV because the old x86 version was using a macro removed from
  rust, so bumping to latest seems fair.
* the calculation for the arbitrary impl of Layout was using a
  max_size that was too large and overflowing Layout. this has
  been fixed.
* test for arbitrary AllocError was referring to AllocErr which
  does not exist, this was fixed.
* NoneError has been removed from rust so it was subsequently
  removed from proptest. It was blocking compilation.
  evidence:
  rust-lang/rust#85614
* try_reserve is stable so removed from unstable features
* try_trait has been changed to try_trait_v2 so that was fixed
  in Cargo.toml.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
regression-untriaged Untriaged performance or correctness regression.
Projects
None yet
Development

No branches or pull requests

5 participants