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

Fix standard library not compiling with dependency cc v1.0.80+ #115032

Closed
wants to merge 1 commit into from

Conversation

kadiwa4
Copy link
Contributor

@kadiwa4 kadiwa4 commented Aug 20, 2023

Noticed in #112865.

cc (which is needed as a dev-dependency for compiling std) introduced a dependency to libc in 1.0.80 and has default features enabled for it. The Rust workspace where the standard lib resides currently uses the resolver v1, which faces this issue: rust-lang/cargo#10719 (it combines the features enabled for dev-dependencies with those for dependencies), so updating the resolver version is necessary.

I also updated cc to make sure this fixes the problem.

@rustbot
Copy link
Collaborator

rustbot commented Aug 20, 2023

r? @Mark-Simulacrum

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Aug 20, 2023
@rustbot
Copy link
Collaborator

rustbot commented Aug 20, 2023

These commits modify the Cargo.lock file. Unintentional changes to Cargo.lock can be introduced when switching branches and rebasing PRs.

If this was unintentional then you should revert the changes before this PR is merged.
Otherwise, you can ignore this comment.

@rust-log-analyzer
Copy link
Collaborator

The job mingw-check failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
GITHUB_ACTION=__run_7
GITHUB_ACTIONS=true
GITHUB_ACTION_REF=
GITHUB_ACTION_REPOSITORY=
GITHUB_ACTOR=kadiwa4
GITHUB_API_URL=https://api.github.com
GITHUB_BASE_REF=master
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_e72dea25-f9df-4aed-8297-970768e7c39d
GITHUB_EVENT_NAME=pull_request
---
GITHUB_SERVER_URL=https://github.com
GITHUB_SHA=bf83503bba19d171ad1c8f16a4e5dea51df217dc
GITHUB_STATE=/home/runner/work/_temp/_runner_file_commands/save_state_e72dea25-f9df-4aed-8297-970768e7c39d
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_e72dea25-f9df-4aed-8297-970768e7c39d
GITHUB_TRIGGERING_ACTOR=kadiwa4
GITHUB_WORKFLOW_REF=rust-lang/rust/.github/workflows/ci.yml@refs/pull/115032/merge
GITHUB_WORKFLOW_SHA=bf83503bba19d171ad1c8f16a4e5dea51df217dc
GITHUB_WORKSPACE=/home/runner/work/rust/rust
GOROOT_1_18_X64=/opt/hostedtoolcache/go/1.18.10/x64
---
   Compiling syn v1.0.109
   Compiling unicode-xid v0.2.4
   Compiling version_check v0.9.4
    Checking once_cell v1.18.0
error[E0464]: multiple candidates for `rmeta` dependency `std` found
  |
  = note: candidate #1: /checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/i686-pc-windows-gnu/lib/libstd-71efdd7dc0fbf828.rmeta
  = note: candidate #2: /checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/i686-pc-windows-gnu/lib/libstd-c737f7823f3ec36e.rmeta

error[E0464]: multiple candidates for `rmeta` dependency `std` found
 --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/imp_std.rs:6:5
6 | use std::{
  |     ^^^
  |
  |
  = note: candidate #1: /checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/i686-pc-windows-gnu/lib/libstd-71efdd7dc0fbf828.rmeta
  = note: candidate #2: /checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/i686-pc-windows-gnu/lib/libstd-c737f7823f3ec36e.rmeta
error: cannot find macro `panic` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:755:47
    |
    |
755 |                 init.take().unwrap_or_else(|| panic!("Lazy instance has previously been poisoned"))
    |
help: consider importing this macro
    |
386 +     use core::panic;
386 +     use core::panic;
    |

error: cannot find macro `panic` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:778:25
    |
778 |                 None => panic!("Lazy instance has previously been poisoned"),
    |
help: consider importing this macro
    |
386 +     use core::panic;
386 +     use core::panic;
    |

error: cannot find macro `panic` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:800:29
    |
800 |                     None => panic!("Lazy instance has previously been poisoned"),
    |
help: consider importing this macro
    |
386 +     use core::panic;
386 +     use core::panic;
    |

error: cannot find macro `unreachable` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:804:51
    |
804 |             this.cell.get_mut().unwrap_or_else(|| unreachable!())
    |
help: consider importing this macro
    |
386 +     use core::unreachable;
386 +     use core::unreachable;
    |

error: cannot find macro `panic` in this scope
    --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:1291:47
     |
1291 |                 init.take().unwrap_or_else(|| panic!("Lazy instance has previously been poisoned"))
     |
help: consider importing this macro
     |
866  +     use core::panic;
866  +     use core::panic;
     |

error: cannot find macro `panic` in this scope
    --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:1313:25
     |
1313 |                 None => panic!("Lazy instance has previously been poisoned"),
     |
help: consider importing this macro
     |
866  +     use core::panic;
866  +     use core::panic;
     |

error: cannot find macro `panic` in this scope
    --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:1333:29
     |
1333 |                     None => panic!("Lazy instance has previously been poisoned"),
     |
help: consider importing this macro
     |
866  +     use core::panic;
866  +     use core::panic;
     |

error: cannot find macro `unreachable` in this scope
    --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:1337:51
     |
1337 |             this.cell.get_mut().unwrap_or_else(|| unreachable!())
     |
help: consider importing this macro
     |
866  +     use core::unreachable;
---
   |   ^^^^^^
   |
help: consider importing this attribute macro
   |
6  + use core::prelude::rust_2024::derive;

error: cannot find macro `debug_assert` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/imp_std.rs:100:9
    |
---

error: cannot find macro `debug_assert` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/imp_std.rs:205:18
    |
205 |             _ => debug_assert!(false),
    |
help: consider importing this macro
    |
6   + use core::debug_assert;
6   + use core::debug_assert;
    |

error: cannot find macro `assert` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:636:13
    |
636 |             assert!(self.set(val).is_ok(), "reentrant init");
    |
help: consider importing this macro
    |
386 +     use core::assert;
---
    |   ^^^^^^
    |
help: consider importing this attribute macro
    |
25  + use core::prelude::rust_2024::derive;

error: cannot find macro `write` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:189:9
    |
    |
189 |         write!(f, "OnceRef({:?})", self.inner)
    |
help: consider importing this macro
    |
25  + use core::write;
25  + use core::write;
    |

error: cannot find macro `write` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:308:13
    |
308 |             write!(f, "OnceBox({:?})", self.inner.load(Ordering::Relaxed))
    |
help: consider importing this macro
    |
295 +     use core::write;
295 +     use core::write;
    |

   Compiling autocfg v1.1.0
error[E0408]: variable `None` is not bound in all patterns
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/imp_std.rs:201:34
    |
201 |             (INCOMPLETE, None) | (RUNNING, _) => {
    |                          ----    ^^^^^^^^^^^^ pattern doesn't bind `None`
    |                          variable not in all patterns
    |
help: if you meant to match on unit variant `core::option::Option::None`, use the full path in the pattern
    |
    |
201 |             (INCOMPLETE, core::option::Option::None) | (RUNNING, _) => {

    Checking smallvec v1.11.0
error[E0412]: cannot find type `Option` in this scope
  --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/imp_std.rs:24:23
---

error[E0405]: cannot find trait `Sync` in this scope
  --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/imp_std.rs:32:29
   |
32 | unsafe impl<T: Sync + Send> Sync for OnceCell<T> {}
   |
help: consider importing this trait
   |
6  + use core::marker::Sync;
6  + use core::marker::Sync;
   |

error[E0405]: cannot find trait `Sync` in this scope
  --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/imp_std.rs:32:16
   |
32 | unsafe impl<T: Sync + Send> Sync for OnceCell<T> {}
   |
help: consider importing this trait
   |
6  + use core::marker::Sync;
6  + use core::marker::Sync;
   |

error[E0405]: cannot find trait `Send` in this scope
  --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/imp_std.rs:32:23
   |
32 | unsafe impl<T: Sync + Send> Sync for OnceCell<T> {}
   |
help: consider importing this trait
   |
6  + use core::marker::Send;
6  + use core::marker::Send;
   |

error[E0405]: cannot find trait `Send` in this scope
  --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/imp_std.rs:33:22
   |
33 | unsafe impl<T: Send> Send for OnceCell<T> {}
   |
help: consider importing this trait
   |
6  + use core::marker::Send;
6  + use core::marker::Send;
   |

error[E0405]: cannot find trait `Send` in this scope
  --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/imp_std.rs:33:16
   |
33 | unsafe impl<T: Send> Send for OnceCell<T> {}
   |
help: consider importing this trait
   |
6  + use core::marker::Send;
6  + use core::marker::Send;
   |

error[E0425]: cannot find value `None` in this scope
  --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/imp_std.rs:40:82
   |
40 |         OnceCell { queue: AtomicPtr::new(INCOMPLETE_PTR), value: UnsafeCell::new(None) }
   |
help: consider importing this unit variant
   |
6  + use core::option::Option::None;
6  + use core::option::Option::None;
   |

error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
  --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/imp_std.rs:44:80
   |
44 |         OnceCell { queue: AtomicPtr::new(COMPLETE_PTR), value: UnsafeCell::new(Some(value)) }
   |
help: consider importing this tuple variant
   |
6  + use core::option::Option::Some;
---

error[E0412]: cannot find type `Result` in this scope
  --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/imp_std.rs:61:52
   |
61 |     pub(crate) fn initialize<F, E>(&self, f: F) -> Result<(), E>
   |
help: consider importing one of these items
   |
6  + use alloc::fmt::Result;
---

error[E0412]: cannot find type `Result` in this scope
  --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/imp_std.rs:66:22
   |
66 |         let mut res: Result<(), E> = Ok(());
   |
help: consider importing one of these items
   |
6  + use alloc::fmt::Result;
6  + use alloc::fmt::Result;
   |
6  + use core::fmt::Result;
   |
6  + use core::result::Result;
   |

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
  --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/imp_std.rs:66:38
   |
66 |         let mut res: Result<(), E> = Ok(());
   |
help: consider importing this tuple variant
   |
6  + use core::result::Result::Ok;
6  + use core::result::Result::Ok;
   |

error[E0412]: cannot find type `Option` in this scope
  --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/imp_std.rs:67:24
   |
67 |         let slot: *mut Option<T> = self.value.get();
   |
help: consider importing this enum
   |
6  + use core::option::Option;
---
   |
6  + use core::option::Option::Some;
   |

error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
  --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/imp_std.rs:73:21
73 |                     Ok(value) => {
   |                     ^^ not found in this scope
   |
help: consider importing this tuple variant
help: consider importing this tuple variant
   |
6  + use core::result::Result::Ok;
   |

error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
  --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/imp_std.rs:74:42
   |
74 |                         unsafe { *slot = Some(value) };
   |
help: consider importing this tuple variant
   |
6  + use core::option::Option::Some;
---

error[E0425]: cannot find value `None` in this scope
  --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/imp_std.rs:89:41
   |
89 |         initialize_or_wait(&self.queue, None);
   |
help: consider importing this unit variant
   |
6  + use core::option::Option::None;
---

error[E0412]: cannot find type `Option` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/imp_std.rs:139:18
    |
139 |     thread: Cell<Option<Thread>>,
    |
help: consider importing this enum
    |
6   + use core::option::Option;
6   + use core::option::Option;
    |

error[E0405]: cannot find trait `Drop` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/imp_std.rs:150:6
    |
150 | impl Drop for Guard<'_> {
    |
help: consider importing this trait
    |
6   + use core::ops::Drop;
6   + use core::ops::Drop;
    |

error[E0412]: cannot find type `Option` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/imp_std.rs:177:60
    |
177 | fn initialize_or_wait(queue: &AtomicPtr<Waiter>, mut init: Option<&mut dyn FnMut() -> bool>) {
    |
help: consider importing this enum
    |
6   + use core::option::Option;
6   + use core::option::Option;
    |

error[E0405]: cannot find trait `FnMut` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/imp_std.rs:177:76
    |
177 | fn initialize_or_wait(queue: &AtomicPtr<Waiter>, mut init: Option<&mut dyn FnMut() -> bool>) {
    |
help: consider importing this trait
    |
6   + use core::ops::FnMut;
6   + use core::ops::FnMut;
    |

error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/imp_std.rs:184:26
    |
184 |             (INCOMPLETE, Some(init)) => {
    |
help: consider importing this tuple variant
    |
6   + use core::option::Option::Some;
6   + use core::option::Option::Some;
    |

error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/imp_std.rs:191:24
    |
191 |                 if let Err(new_queue) = exchange {
    |
help: consider importing this tuple variant
    |
6   + use core::result::Result::Err;
6   + use core::result::Result::Err;
    |

error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/imp_std.rs:214:31
    |
214 |             thread: Cell::new(Some(thread::current())),
    |
help: consider importing this tuple variant
    |
6   + use core::option::Option::Some;
6   + use core::option::Option::Some;
    |

error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/imp_std.rs:226:16
    |
226 |         if let Err(new_queue) = exchange {
    |
help: consider importing this tuple variant
    |
6   + use core::result::Result::Err;
---

error[E0405]: cannot find trait `FnOnce` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/imp_std.rs:281:52
    |
281 |     pub(crate) fn map_addr<T>(ptr: *mut T, f: impl FnOnce(usize) -> usize) -> *mut T
    |
help: consider importing this trait
    |
246 +     use core::ops::FnOnce;
---

error[E0405]: cannot find trait `Default` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:425:13
    |
425 |     impl<T> Default for OnceCell<T> {
    |
help: consider importing this trait
    |
386 +     use core::default::Default;
386 +     use core::default::Default;
    |

error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:434:17
    |
434 |                 Some(v) => f.debug_tuple("OnceCell").field(v).finish(),
    |
help: consider importing this tuple variant
    |
386 +     use core::option::Option::Some;
---

error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:450:18
    |
450 |                 (Some(this), Some(source)) => this.clone_from(source),
    |
help: consider importing this tuple variant
    |
386 +     use core::option::Option::Some;
386 +     use core::option::Option::Some;
    |

error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:450:30
    |
450 |                 (Some(this), Some(source)) => this.clone_from(source),
    |
help: consider importing this tuple variant
    |
386 +     use core::option::Option::Some;
386 +     use core::option::Option::Some;
    |

error[E0405]: cannot find trait `PartialEq` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:456:24
    |
456 |     impl<T: PartialEq> PartialEq for OnceCell<T> {
    |
help: consider importing this trait
    |
386 +     use core::cmp::PartialEq;
386 +     use core::cmp::PartialEq;
    |

error[E0405]: cannot find trait `PartialEq` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:456:13
    |
456 |     impl<T: PartialEq> PartialEq for OnceCell<T> {
    |
help: consider importing this trait
    |
386 +     use core::cmp::PartialEq;
386 +     use core::cmp::PartialEq;
    |

error[E0405]: cannot find trait `Eq` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:462:17
    |
462 |     impl<T: Eq> Eq for OnceCell<T> {}
    |
help: consider importing this trait
    |
386 +     use core::cmp::Eq;
386 +     use core::cmp::Eq;
    |

error[E0405]: cannot find trait `Eq` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:462:13
    |
462 |     impl<T: Eq> Eq for OnceCell<T> {}
    |
help: consider importing this trait
    |
386 +     use core::cmp::Eq;
386 +     use core::cmp::Eq;
    |

error[E0405]: cannot find trait `From` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:464:13
    |
464 |     impl<T> From<T> for OnceCell<T> {
    |
help: consider importing this trait
    |
386 +     use core::convert::From;
386 +     use core::convert::From;
    |

error[E0425]: cannot find value `None` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:473:47
    |
473 |             OnceCell { inner: UnsafeCell::new(None) }
    |
help: consider importing this unit variant
    |
386 +     use core::option::Option::None;
386 +     use core::option::Option::None;
    |

error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:478:47
    |
478 |             OnceCell { inner: UnsafeCell::new(Some(value)) }
    |
help: consider importing this tuple variant
    |
386 +     use core::option::Option::Some;
386 +     use core::option::Option::Some;
    |

error[E0412]: cannot find type `Option` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:485:30
    |
485 |         pub fn get(&self) -> Option<&T> {
    |
help: consider importing this enum
    |
386 +     use core::option::Option;
---
    |
386 +     use crate::unsync::fmt::Result;
    |

error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:534:17
534 |                 Ok(_) => Ok(()),
    |                 ^^ not found in this scope
    |
help: consider importing this tuple variant
help: consider importing this tuple variant
    |
386 +     use core::result::Result::Ok;
    |

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:534:26
534 |                 Ok(_) => Ok(()),
    |                          ^^ not found in this scope
    |
help: consider importing this tuple variant
help: consider importing this tuple variant
    |
386 +     use core::result::Result::Ok;
    |

error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:535:17
    |
535 |                 Err((_, value)) => Err(value),
    |
help: consider importing this tuple variant
    |
386 +     use core::result::Result::Err;
386 +     use core::result::Result::Err;
    |

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:535:36
    |
535 |                 Err((_, value)) => Err(value),
    |
help: consider importing this tuple variant
    |
386 +     use core::result::Result::Err;
386 +     use core::result::Result::Err;
    |

error[E0412]: cannot find type `Result` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:553:47
    |
553 |         pub fn try_insert(&self, value: T) -> Result<&T, (&T, T)> {
    |
help: consider importing one of these items
    |
386 +     use alloc::fmt::Result;
---

error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:563:21
    |
563 |             *slot = Some(value);
    |
help: consider importing this tuple variant
    |
386 +     use core::option::Option::Some;
386 +     use core::option::Option::Some;
    |

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:564:13
    |
564 |             Ok(unsafe { slot.as_ref().unwrap_unchecked() })
    |
help: consider importing this tuple variant
    |
386 +     use core::result::Result::Ok;
---
    |
386 +     use core::ops::FnOnce;
    |

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:593:43
    |
593 |             match self.get_or_try_init(|| Ok::<T, Void>(f())) {
    |
help: consider importing this tuple variant
    |
386 +     use core::result::Result::Ok;
386 +     use core::result::Result::Ok;
    |

error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:594:17
594 |                 Ok(val) => val,
    |                 ^^ not found in this scope
    |
help: consider importing this tuple variant
help: consider importing this tuple variant
    |
386 +     use core::result::Result::Ok;
    |

error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:595:17
    |
595 |                 Err(void) => match void {},
    |
help: consider importing this tuple variant
    |
386 +     use core::result::Result::Err;
---

error[E0412]: cannot find type `Result` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:624:54
    |
624 |         pub fn get_or_try_init<F, E>(&self, f: F) -> Result<&T, E>
    |
help: consider importing one of these items
    |
386 +     use alloc::fmt::Result;
---
    |
386 +     use core::option::Option::Some;
    |

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:629:24
629 |                 return Ok(val);
    |                        ^^ not found in this scope
    |
help: consider importing this tuple variant
help: consider importing this tuple variant
    |
386 +     use core::result::Result::Ok;
    |

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:637:13
    |
637 |             Ok(unsafe { self.get().unwrap_unchecked() })
    |
help: consider importing this tuple variant
    |
386 +     use core::result::Result::Ok;
---

error[E0412]: cannot find type `Option` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:718:20
    |
718 |         init: Cell<Option<F>>,
    |
help: consider importing this enum
    |
386 +     use core::option::Option;
386 +     use core::option::Option;
    |

error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:745:59
    |
745 |             Lazy { cell: OnceCell::new(), init: Cell::new(Some(init)) }
    |
help: consider importing this tuple variant
    |
386 +     use core::option::Option::Some;
386 +     use core::option::Option::Some;
    |

error[E0412]: cannot find type `Result` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:751:48
    |
751 |         pub fn into_value(this: Lazy<T, F>) -> Result<T, F> {
    |
help: consider importing one of these items
    |
386 +     use alloc::fmt::Result;
---

error[E0405]: cannot find trait `FnOnce` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:760:16
    |
760 |     impl<T, F: FnOnce() -> T> Lazy<T, F> {
    |
help: consider importing this trait
    |
386 +     use core::ops::FnOnce;
386 +     use core::ops::FnOnce;
    |

error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:777:17
    |
777 |                 Some(f) => f(),
    |
help: consider importing this tuple variant
    |
386 +     use core::option::Option::Some;
386 +     use core::option::Option::Some;
    |

error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:799:21
    |
799 |                     Some(f) => f(),
    |
help: consider importing this tuple variant
    |
386 +     use core::option::Option::Some;
386 +     use core::option::Option::Some;
    |

error[E0412]: cannot find type `Option` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:820:42
    |
820 |         pub fn get(this: &Lazy<T, F>) -> Option<&T> {
    |
help: consider importing this enum
    |
386 +     use core::option::Option;
386 +     use core::option::Option;
    |

error[E0412]: cannot find type `Option` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:837:50
    |
837 |         pub fn get_mut(this: &mut Lazy<T, F>) -> Option<&mut T> {
    |
help: consider importing this enum
    |
386 +     use core::option::Option;
386 +     use core::option::Option;
    |

error[E0405]: cannot find trait `FnOnce` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:842:16
    |
842 |     impl<T, F: FnOnce() -> T> Deref for Lazy<T, F> {
    |
help: consider importing this trait
    |
386 +     use core::ops::FnOnce;
386 +     use core::ops::FnOnce;
    |

error[E0405]: cannot find trait `FnOnce` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:849:16
    |
849 |     impl<T, F: FnOnce() -> T> DerefMut for Lazy<T, F> {
    |
help: consider importing this trait
    |
386 +     use core::ops::FnOnce;
386 +     use core::ops::FnOnce;
    |

error[E0405]: cannot find trait `Default` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:855:22
    |
855 |     impl<T: Default> Default for Lazy<T> {
    |
help: consider importing this trait
    |
386 +     use core::default::Default;
386 +     use core::default::Default;
    |

error[E0405]: cannot find trait `Default` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:855:13
    |
855 |     impl<T: Default> Default for Lazy<T> {
    |
help: consider importing this trait
    |
386 +     use core::default::Default;
386 +     use core::default::Default;
    |

error[E0405]: cannot find trait `Default` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:905:13
    |
905 |     impl<T> Default for OnceCell<T> {
    |
help: consider importing this trait
    |
866 +     use core::default::Default;
866 +     use core::default::Default;
    |

error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:914:17
    |
914 |                 Some(v) => f.debug_tuple("OnceCell").field(v).finish(),
    |
help: consider importing this tuple variant
    |
866 +     use core::option::Option::Some;
---

error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:930:18
    |
930 |                 (Some(this), Some(source)) => this.clone_from(source),
    |
help: consider importing this tuple variant
    |
866 +     use core::option::Option::Some;
866 +     use core::option::Option::Some;
    |

error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:930:30
    |
930 |                 (Some(this), Some(source)) => this.clone_from(source),
    |
help: consider importing this tuple variant
    |
866 +     use core::option::Option::Some;
866 +     use core::option::Option::Some;
    |

error[E0405]: cannot find trait `From` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:936:13
    |
936 |     impl<T> From<T> for OnceCell<T> {
    |
help: consider importing this trait
    |
866 +     use core::convert::From;
866 +     use core::convert::From;
    |

error[E0405]: cannot find trait `PartialEq` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:942:24
    |
942 |     impl<T: PartialEq> PartialEq for OnceCell<T> {
    |
help: consider importing this trait
    |
866 +     use core::cmp::PartialEq;
866 +     use core::cmp::PartialEq;
    |

error[E0405]: cannot find trait `PartialEq` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:942:13
    |
942 |     impl<T: PartialEq> PartialEq for OnceCell<T> {
    |
help: consider importing this trait
    |
866 +     use core::cmp::PartialEq;
866 +     use core::cmp::PartialEq;
    |

error[E0405]: cannot find trait `Eq` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:948:17
    |
948 |     impl<T: Eq> Eq for OnceCell<T> {}
    |
help: consider importing this trait
    |
866 +     use core::cmp::Eq;
866 +     use core::cmp::Eq;
    |

error[E0405]: cannot find trait `Eq` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:948:13
    |
948 |     impl<T: Eq> Eq for OnceCell<T> {}
    |
help: consider importing this trait
    |
866 +     use core::cmp::Eq;
866 +     use core::cmp::Eq;
    |

error[E0412]: cannot find type `Option` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:965:30
    |
965 |         pub fn get(&self) -> Option<&T> {
    |
help: consider importing this enum
    |
866 +     use core::option::Option;
---
     |
866  +     use crate::sync::fmt::Result;
     |

error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
    --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:1062:17
1062 |                 Ok(_) => Ok(()),
     |                 ^^ not found in this scope
     |
help: consider importing this tuple variant
help: consider importing this tuple variant
     |
866  +     use core::result::Result::Ok;
     |

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
    --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:1062:26
1062 |                 Ok(_) => Ok(()),
     |                          ^^ not found in this scope
     |
help: consider importing this tuple variant
help: consider importing this tuple variant
     |
866  +     use core::result::Result::Ok;
     |

error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
    --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:1063:17
     |
1063 |                 Err((_, value)) => Err(value),
     |
help: consider importing this tuple variant
     |
866  +     use core::result::Result::Err;
866  +     use core::result::Result::Err;
     |

error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope
    --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:1063:36
     |
1063 |                 Err((_, value)) => Err(value),
     |
help: consider importing this tuple variant
     |
866  +     use core::result::Result::Err;
866  +     use core::result::Result::Err;
     |

error[E0412]: cannot find type `Result` in this scope
    --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:1082:47
     |
1082 |         pub fn try_insert(&self, value: T) -> Result<&T, (&T, T)> {
     |
help: consider importing one of these items
     |
866  +     use alloc::fmt::Result;
---
     |
866  +     use core::option::Option::Some;
     |

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
    --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:1086:25
1086 |                 None => Ok(res),
     |                         ^^ not found in this scope
     |
help: consider importing this tuple variant
---
     |
866  +     use core::ops::FnOnce;
     |

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
    --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:1122:43
     |
1122 |             match self.get_or_try_init(|| Ok::<T, Void>(f())) {
     |
help: consider importing this tuple variant
     |
866  +     use core::result::Result::Ok;
866  +     use core::result::Result::Ok;
     |

error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
    --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:1123:17
1123 |                 Ok(val) => val,
     |                 ^^ not found in this scope
     |
help: consider importing this tuple variant
help: consider importing this tuple variant
     |
866  +     use core::result::Result::Ok;
     |

error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
    --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:1124:17
     |
1124 |                 Err(void) => match void {},
     |
help: consider importing this tuple variant
     |
866  +     use core::result::Result::Err;
---

error[E0412]: cannot find type `Result` in this scope
    --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:1154:54
     |
1154 |         pub fn get_or_try_init<F, E>(&self, f: F) -> Result<&T, E>
     |
help: consider importing one of these items
     |
866  +     use alloc::fmt::Result;
---
     |
866  +     use core::option::Option::Some;
     |

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
    --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:1160:24
1160 |                 return Ok(value);
     |                        ^^ not found in this scope
     |
help: consider importing this tuple variant
help: consider importing this tuple variant
     |
866  +     use core::result::Result::Ok;
     |

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
    --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:1167:13
1167 |             Ok(unsafe { self.get_unchecked() })
     |             ^^ not found in this scope
     |
help: consider importing this tuple variant
---

error[E0412]: cannot find type `Option` in this scope
    --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:1259:20
     |
1259 |         init: Cell<Option<F>>,
     |
help: consider importing this enum
     |
866  +     use core::option::Option;
866  +     use core::option::Option;
     |

error[E0405]: cannot find trait `Sync` in this scope
    --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:1272:29
     |
1272 |     unsafe impl<T, F: Send> Sync for Lazy<T, F> where OnceCell<T>: Sync {}
     |
help: consider importing this trait
     |
866  +     use core::marker::Sync;
866  +     use core::marker::Sync;
     |

error[E0405]: cannot find trait `Send` in this scope
    --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:1272:23
     |
1272 |     unsafe impl<T, F: Send> Sync for Lazy<T, F> where OnceCell<T>: Sync {}
     |
help: consider importing this trait
     |
866  +     use core::marker::Send;
866  +     use core::marker::Send;
     |

error[E0405]: cannot find trait `Sync` in this scope
    --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:1272:68
     |
1272 |     unsafe impl<T, F: Send> Sync for Lazy<T, F> where OnceCell<T>: Sync {}
     |
help: consider importing this trait
     |
866  +     use core::marker::Sync;
866  +     use core::marker::Sync;
     |

error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
    --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:1281:59
     |
1281 |             Lazy { cell: OnceCell::new(), init: Cell::new(Some(f)) }
     |
help: consider importing this tuple variant
     |
866  +     use core::option::Option::Some;
866  +     use core::option::Option::Some;
     |

error[E0412]: cannot find type `Result` in this scope
    --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:1287:48
     |
1287 |         pub fn into_value(this: Lazy<T, F>) -> Result<T, F> {
     |
help: consider importing one of these items
     |
866  +     use alloc::fmt::Result;
---

error[E0405]: cannot find trait `FnOnce` in this scope
    --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:1296:16
     |
1296 |     impl<T, F: FnOnce() -> T> Lazy<T, F> {
     |
help: consider importing this trait
     |
866  +     use core::ops::FnOnce;
866  +     use core::ops::FnOnce;
     |

error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
    --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:1312:17
     |
1312 |                 Some(f) => f(),
     |
help: consider importing this tuple variant
     |
866  +     use core::option::Option::Some;
866  +     use core::option::Option::Some;
     |

error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope
    --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:1332:21
     |
1332 |                     Some(f) => f(),
     |
help: consider importing this tuple variant
     |
866  +     use core::option::Option::Some;
866  +     use core::option::Option::Some;
     |

error[E0412]: cannot find type `Option` in this scope
    --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:1353:42
     |
1353 |         pub fn get(this: &Lazy<T, F>) -> Option<&T> {
     |
help: consider importing this enum
     |
866  +     use core::option::Option;
866  +     use core::option::Option;
     |

error[E0412]: cannot find type `Option` in this scope
    --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:1370:50
     |
1370 |         pub fn get_mut(this: &mut Lazy<T, F>) -> Option<&mut T> {
     |
help: consider importing this enum
     |
866  +     use core::option::Option;
866  +     use core::option::Option;
     |

error[E0405]: cannot find trait `FnOnce` in this scope
    --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:1375:16
     |
1375 |     impl<T, F: FnOnce() -> T> Deref for Lazy<T, F> {
     |
help: consider importing this trait
     |
866  +     use core::ops::FnOnce;
866  +     use core::ops::FnOnce;
     |

error[E0405]: cannot find trait `FnOnce` in this scope
    --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:1382:16
     |
1382 |     impl<T, F: FnOnce() -> T> DerefMut for Lazy<T, F> {
     |
help: consider importing this trait
     |
866  +     use core::ops::FnOnce;
866  +     use core::ops::FnOnce;
     |

error[E0405]: cannot find trait `Default` in this scope
    --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:1388:22
     |
1388 |     impl<T: Default> Default for Lazy<T> {
     |
help: consider importing this trait
     |
866  +     use core::default::Default;
866  +     use core::default::Default;
     |

error[E0405]: cannot find trait `Default` in this scope
    --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/lib.rs:1388:13
     |
1388 |     impl<T: Default> Default for Lazy<T> {
     |
help: consider importing this trait
     |
866  +     use core::default::Default;
866  +     use core::default::Default;
     |

error[E0412]: cannot find type `Option` in this scope
  --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:48:26
   |
48 |     pub fn get(&self) -> Option<NonZeroUsize> {
   |
help: consider importing this enum
   |
25 + use core::option::Option;
---
   |
25 + use core::result::Result;
   |

error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
  --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:62:13
62 |             Ok(_) => Ok(()),
   |             ^^ not found in this scope
   |
help: consider importing this tuple variant
help: consider importing this tuple variant
   |
25 + use core::result::Result::Ok;
   |

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
  --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:62:22
62 |             Ok(_) => Ok(()),
   |                      ^^ not found in this scope
   |
help: consider importing this tuple variant
---
   |
25 + use core::ops::FnOnce;
   |

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
  --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:78:39
   |
78 |         match self.get_or_try_init(|| Ok::<NonZeroUsize, Void>(f())) {
   |
help: consider importing this tuple variant
   |
25 + use core::result::Result::Ok;
25 + use core::result::Result::Ok;
   |

error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
  --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:79:13
79 |             Ok(val) => val,
   |             ^^ not found in this scope
   |
help: consider importing this tuple variant
help: consider importing this tuple variant
   |
25 + use core::result::Result::Ok;
   |

error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
  --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:80:13
   |
80 |             Err(void) => match void {},
   |
help: consider importing this tuple variant
   |
25 + use core::result::Result::Err;
25 + use core::result::Result::Err;
   |

error[E0405]: cannot find trait `FnOnce` in this scope
  --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:93:12
   |
93 |         F: FnOnce() -> Result<NonZeroUsize, E>,
   |
help: consider importing this trait
   |
25 + use core::ops::FnOnce;
25 + use core::ops::FnOnce;
   |

error[E0412]: cannot find type `Result` in this scope
  --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:93:24
   |
93 |         F: FnOnce() -> Result<NonZeroUsize, E>,
   |
help: consider importing one of these items
   |
25 + use alloc::fmt::Result;
---

error[E0412]: cannot find type `Result` in this scope
  --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:91:50
   |
91 |     pub fn get_or_try_init<F, E>(&self, f: F) -> Result<NonZeroUsize, E>
   |
help: consider importing one of these items
   |
25 + use alloc::fmt::Result;
---

error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:102:24
    |
102 |                 if let Err(old) = exchange {
    |
help: consider importing this tuple variant
    |
25  + use core::result::Result::Err;
25  + use core::result::Result::Err;
    |

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:108:9
108 |         Ok(res)
    |         ^^ not found in this scope
    |
help: consider importing this tuple variant
---

error[E0412]: cannot find type `Result` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:160:50
    |
160 |     pub fn get_or_try_init<F, E>(&self, f: F) -> Result<bool, E>
    |
help: consider importing one of these items
    |
25  + use alloc::fmt::Result;
---

error[E0405]: cannot find trait `Sync` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:185:26
    |
185 | unsafe impl<'a, T: Sync> Sync for OnceRef<'a, T> {}
    |
help: consider importing this trait
    |
25  + use core::marker::Sync;
25  + use core::marker::Sync;
    |

error[E0405]: cannot find trait `Sync` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:185:20
    |
185 | unsafe impl<'a, T: Sync> Sync for OnceRef<'a, T> {}
    |
help: consider importing this trait
    |
25  + use core::marker::Sync;
25  + use core::marker::Sync;
    |

error[E0405]: cannot find trait `Default` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:193:13
    |
193 | impl<'a, T> Default for OnceRef<'a, T> {
    |
help: consider importing this trait
    |
25  + use core::default::Default;
---

error[E0412]: cannot find type `Result` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:215:40
    |
215 |     pub fn set(&self, value: &'a T) -> Result<(), ()> {
    |
help: consider importing one of these items
    |
25  + use alloc::fmt::Result;
25  + use alloc::fmt::Result;
    |
25  + use core::fmt::Result;
    |
25  + use core::result::Result;
    |

error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:220:13
220 |             Ok(_) => Ok(()),
    |             ^^ not found in this scope
    |
help: consider importing this tuple variant
help: consider importing this tuple variant
    |
25  + use core::result::Result::Ok;
    |

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:220:22
220 |             Ok(_) => Ok(()),
    |                      ^^ not found in this scope
    |
help: consider importing this tuple variant
---
    |
25  + use core::ops::FnOnce;
    |

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:236:39
    |
236 |         match self.get_or_try_init(|| Ok::<&'a T, Void>(f())) {
    |
help: consider importing this tuple variant
    |
25  + use core::result::Result::Ok;
25  + use core::result::Result::Ok;
    |

error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:237:13
237 |             Ok(val) => val,
    |             ^^ not found in this scope
    |
help: consider importing this tuple variant
help: consider importing this tuple variant
    |
25  + use core::result::Result::Ok;
    |

error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:238:13
    |
238 |             Err(void) => match void {},
    |
help: consider importing this tuple variant
    |
25  + use core::result::Result::Err;
---

error[E0412]: cannot find type `Result` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:249:50
    |
249 |     pub fn get_or_try_init<F, E>(&self, f: F) -> Result<&'a T, E>
    |
help: consider importing one of these items
    |
25  + use alloc::fmt::Result;
---

error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:264:20
    |
264 |             if let Err(old) = exchange {
    |
help: consider importing this tuple variant
    |
25  + use core::result::Result::Err;
25  + use core::result::Result::Err;
    |

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:269:9
    |
269 |         Ok(unsafe { &*ptr })
    |
help: consider importing this tuple variant
    |
25  + use core::result::Result::Ok;
25  + use core::result::Result::Ok;
    |

error[E0412]: cannot find type `Option` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:303:28
    |
303 |         ghost: PhantomData<Option<Box<T>>>,
    |
help: consider importing this enum
    |
295 +     use core::option::Option;
295 +     use core::option::Option;
    |

error[E0405]: cannot find trait `Default` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:312:13
    |
312 |     impl<T> Default for OnceBox<T> {
    |
help: consider importing this trait
    |
295 +     use core::default::Default;
295 +     use core::default::Default;
    |

error[E0405]: cannot find trait `Drop` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:318:13
    |
318 |     impl<T> Drop for OnceBox<T> {
    |
help: consider importing this trait
    |
295 +     use core::ops::Drop;
---

error[E0412]: cannot find type `Option` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:334:30
    |
334 |         pub fn get(&self) -> Option<&T> {
    |
help: consider importing this enum
    |
295 +     use core::option::Option;
---

error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:339:13
    |
339 |             Some(unsafe { &*ptr })
    |
help: consider importing this tuple variant
    |
295 +     use core::option::Option::Some;
295 +     use core::option::Option::Some;
    |

error[E0412]: cannot find type `Result` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:346:45
    |
346 |         pub fn set(&self, value: Box<T>) -> Result<(), Box<T>> {
    |
help: consider importing one of these items
    |
295 +     use alloc::fmt::Result;
---
    |
295 +     use core::result::Result::Err;
    |

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:358:13
358 |             Ok(())
    |             ^^ not found in this scope
    |
help: consider importing this tuple variant
---
    |
295 +     use core::ops::FnOnce;
    |

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:372:43
    |
372 |             match self.get_or_try_init(|| Ok::<Box<T>, Void>(f())) {
    |
help: consider importing this tuple variant
    |
295 +     use core::result::Result::Ok;
295 +     use core::result::Result::Ok;
    |

error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:373:17
373 |                 Ok(val) => val,
    |                 ^^ not found in this scope
    |
help: consider importing this tuple variant
help: consider importing this tuple variant
    |
295 +     use core::result::Result::Ok;
    |

error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:374:17
    |
374 |                 Err(void) => match void {},
    |
help: consider importing this tuple variant
    |
295 +     use core::result::Result::Err;
---

error[E0412]: cannot find type `Result` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:385:54
    |
385 |         pub fn get_or_try_init<F, E>(&self, f: F) -> Result<&T, E>
    |
help: consider importing one of these items
    |
295 +     use alloc::fmt::Result;
---

error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:400:24
    |
400 |                 if let Err(old) = exchange {
    |
help: consider importing this tuple variant
    |
295 +     use core::result::Result::Err;
---
    |
295 +     use core::mem::drop;
    |

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:405:13
    |
405 |             Ok(unsafe { &*ptr })
    |
help: consider importing this tuple variant
    |
295 +     use core::result::Result::Ok;
295 +     use core::result::Result::Ok;
    |

error[E0405]: cannot find trait `Sync` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:409:33
    |
409 |     unsafe impl<T: Sync + Send> Sync for OnceBox<T> {}
    |
help: consider importing this trait
    |
295 +     use core::marker::Sync;
295 +     use core::marker::Sync;
    |

error[E0405]: cannot find trait `Sync` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:409:20
    |
409 |     unsafe impl<T: Sync + Send> Sync for OnceBox<T> {}
    |
help: consider importing this trait
    |
295 +     use core::marker::Sync;
295 +     use core::marker::Sync;
    |

error[E0405]: cannot find trait `Send` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.18.0/src/race.rs:409:27
    |
409 |     unsafe impl<T: Sync + Send> Sync for OnceBox<T> {}
    |
help: consider importing this trait
    |
295 +     use core::marker::Send;

@@ -1,5 +1,5 @@
[workspace]
resolver = "1"
resolver = "2"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just FYI, I don't think this change is feasible without doing a lot of work.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, the CI run seems to think the same :)

@kadiwa4 kadiwa4 closed this Aug 20, 2023
@kadiwa4
Copy link
Contributor Author

kadiwa4 commented Aug 20, 2023

I opened rust-lang/cc-rs#860 instead.

Edit: Didn't work. But I'm not experienced enough with compilation of std to fix the resolver = "2" issues.

@kadiwa4 kadiwa4 deleted the update_cc branch August 20, 2023 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants