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

Switch to using the v2 resolver in the library #128724

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tgross35
Copy link
Contributor

@tgross35 tgross35 commented Aug 6, 2024

Pinning the resolver to v1 was done in 5abff37 ("Explicit set workspace.resolver ...") in order to suppress warnings. Since there is no specific reason not to use the new resolver and since it fixes issues, change to resolver = "2" in library/.

Split from #128359, goes with #128722 that updates the root workspace.

Pinning the resolver to v1 was done in 5abff37 ("Explicit set
workspace.resolver ...") in order to suppress warnings. Since there is
no specific reason not to use the new resolver and since it fixes
issues, change to `resolver = "2"` in `library/`.
@rustbot
Copy link
Collaborator

rustbot commented Aug 6, 2024

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 6, 2024
v2 resolves some dependencies differently. Run `cargo update` to make
sure everything is in sync.
@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)
#16 2.713 Building wheels for collected packages: reuse
#16 2.714   Building wheel for reuse (pyproject.toml): started
#16 2.963   Building wheel for reuse (pyproject.toml): finished with status 'done'
#16 2.964   Created wheel for reuse: filename=reuse-4.0.3-cp310-cp310-manylinux_2_35_x86_64.whl size=132715 sha256=dfa09868353292d98f811d3efdb0d54d07389e808efc71d68e3b93c514bf8bec
#16 2.965   Stored in directory: /tmp/pip-ephem-wheel-cache-bnwux3ke/wheels/3d/8d/0a/e0fc6aba4494b28a967ab5eaf951c121d9c677958714e34532
#16 2.967 Installing collected packages: boolean-py, binaryornot, tomlkit, reuse, python-debian, markupsafe, license-expression, jinja2, chardet, attrs
#16 3.359 Successfully installed attrs-23.2.0 binaryornot-0.4.4 boolean-py-4.0 chardet-5.2.0 jinja2-3.1.4 license-expression-30.3.0 markupsafe-2.1.5 python-debian-0.1.49 reuse-4.0.3 tomlkit-0.13.0
#16 3.359 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#16 DONE 3.5s
---
   Compiling unicode-ident v1.0.12
    Checking cfg-if v1.0.0
   Compiling version_check v0.9.4
    Checking once_cell v1.19.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-25d1a5e148f09278.rmeta
  = note: candidate #2: /checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/i686-pc-windows-gnu/lib/libstd-558f493318c5a707.rmeta
   Compiling crossbeam-utils v0.8.20
   Compiling crossbeam-utils v0.8.20
error[E0464]: multiple candidates for `rmeta` dependency `std` found
 --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.19.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-25d1a5e148f09278.rmeta
  = note: candidate #2: /checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/i686-pc-windows-gnu/lib/libstd-558f493318c5a707.rmeta
error: cannot find macro `panic` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.19.0/src/lib.rs:753:47
    |
    |
753 |                 init.take().unwrap_or_else(|| panic!("Lazy instance has previously been poisoned"))
    |
help: consider importing this macro
    |
384 +     use core::panic;
384 +     use core::panic;
    |

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

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

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

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

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

error: cannot find macro `debug_assert` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.19.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.19.0/src/lib.rs:634:13
    |
634 |             assert!(self.set(val).is_ok(), "reentrant init");
    |
help: consider importing this macro
    |
384 +     use core::assert;
---

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

error: cannot find macro `write` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.19.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;
    |

error[E0408]: variable `None` is not bound in all patterns
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.19.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.13.2
    Checking smallvec v1.13.2
error[E0464]: multiple candidates for `rmeta` dependency `std` found
  --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/lib.rs:43:1
43 | extern crate std;
   | ^^^^^^^^^^^^^^^^^
   |
   |
   = note: candidate #1: /checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/i686-pc-windows-gnu/lib/libstd-25d1a5e148f09278.rmeta
   = note: candidate #2: /checkout/obj/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/i686-pc-windows-gnu/lib/libstd-558f493318c5a707.rmeta

error[E0432]: unresolved imports `crate::primitive::sync::Arc`, `crate::primitive::sync::Condvar`, `crate::primitive::sync::Mutex`, `crate::primitive::sync::Arc`, `crate::primitive::sync::Condvar`, `crate::primitive::sync::Mutex`
 --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/sync/parker.rs:2:30
2 | use crate::primitive::sync::{Arc, Condvar, Mutex};
  |                              ^^^  ^^^^^^^  ^^^^^
  |
 ::: /cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/sync/wait_group.rs:1:30
 ::: /cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/sync/wait_group.rs:1:30
  |
1 | use crate::primitive::sync::{Arc, Condvar, Mutex};
  |                              ^^^  ^^^^^^^  ^^^^^

error[E0425]: cannot find value `REGISTRATION` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/sync/sharded_lock.rs:575:5
    |
575 |     REGISTRATION.try_with(|reg| reg.index).ok()

    Checking stable_deref_trait v1.2.0
Some errors have detailed explanations: E0425, E0432, E0464.
For more information about an error, try `rustc --explain E0425`.
---

error[E0405]: cannot find trait `Sync` in this scope
  --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.19.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.19.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.19.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.19.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.19.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.19.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.19.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.19.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 core::fmt::Result;
---

error[E0412]: cannot find type `Option` in this scope
  --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.19.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;
---

error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
  --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.19.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.19.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.19.0/src/imp_std.rs:139:18
    |
139 |     thread: Cell<Option<Thread>>,
    |
help: consider importing this enum
    |
6   + use core::option::Option;
---

error[E0412]: cannot find type `Option` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.19.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.19.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[E0405]: cannot find trait `Clone` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/stable_deref_trait-1.2.0/src/lib.rs:129:50
    |
129 | pub unsafe trait CloneStableDeref: StableDeref + Clone {}
    |
help: consider importing this trait
    |
25  + use core::clone::Clone;
---

error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.19.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.19.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.19.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;
6   + use core::result::Result::Err;
    |

error[E0405]: cannot find trait `Sized` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/stable_deref_trait-1.2.0/src/lib.rs:157:17
    |
157 | unsafe impl<T: ?Sized> StableDeref for Box<T> {}
    |
help: consider importing this trait
    |
25  + use core::marker::Sized;
---

error[E0405]: cannot find trait `Sized` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/stable_deref_trait-1.2.0/src/lib.rs:170:17
    |
170 | unsafe impl<T: ?Sized> StableDeref for Rc<T> {}
    |
help: consider importing this trait
    |
25  + use core::marker::Sized;
25  + use core::marker::Sized;
    |

error[E0405]: cannot find trait `FnOnce` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.19.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 `Sized` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/stable_deref_trait-1.2.0/src/lib.rs:172:17
    |
172 | unsafe impl<T: ?Sized> CloneStableDeref for Rc<T> {}
    |
help: consider importing this trait
    |
25  + use core::marker::Sized;
---

error[E0405]: cannot find trait `Sized` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/stable_deref_trait-1.2.0/src/lib.rs:174:17
    |
174 | unsafe impl<T: ?Sized> StableDeref for Arc<T> {}
    |
help: consider importing this trait
    |
25  + use core::marker::Sized;
25  + use core::marker::Sized;
    |

error[E0405]: cannot find trait `Sized` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/stable_deref_trait-1.2.0/src/lib.rs:176:17
    |
176 | unsafe impl<T: ?Sized> CloneStableDeref for Arc<T> {}
    |
help: consider importing this trait
    |
25  + use core::marker::Sized;
25  + use core::marker::Sized;
    |

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

error[E0405]: cannot find trait `Sized` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/stable_deref_trait-1.2.0/src/lib.rs:178:21
    |
178 | unsafe impl<'a, T: ?Sized> StableDeref for Ref<'a, T> {}
    |
help: consider importing this trait
    |
25  + use core::marker::Sized;
---

error[E0405]: cannot find trait `Sized` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/stable_deref_trait-1.2.0/src/lib.rs:179:21
    |
179 | unsafe impl<'a, T: ?Sized> StableDeref for RefMut<'a, T> {}
    |
help: consider importing this trait
    |
25  + use core::marker::Sized;
---

error[E0405]: cannot find trait `Sized` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/stable_deref_trait-1.2.0/src/lib.rs:181:21
    |
181 | unsafe impl<'a, T: ?Sized> StableDeref for MutexGuard<'a, T> {}
    |
help: consider importing this trait
    |
25  + use core::marker::Sized;
25  + use core::marker::Sized;
    |

error[E0405]: cannot find trait `Sized` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/stable_deref_trait-1.2.0/src/lib.rs:183:21
    |
183 | unsafe impl<'a, T: ?Sized> StableDeref for RwLockReadGuard<'a, T> {}
    |
help: consider importing this trait
    |
25  + use core::marker::Sized;
---

error[E0405]: cannot find trait `Sized` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/stable_deref_trait-1.2.0/src/lib.rs:185:21
    |
185 | unsafe impl<'a, T: ?Sized> StableDeref for RwLockWriteGuard<'a, T> {}
    |
help: consider importing this trait
    |
25  + use core::marker::Sized;
25  + use core::marker::Sized;
    |

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

error[E0405]: cannot find trait `Sized` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/stable_deref_trait-1.2.0/src/lib.rs:187:21
    |
187 | unsafe impl<'a, T: ?Sized> StableDeref for &'a T {}
    |
help: consider importing this trait
    |
25  + use core::marker::Sized;
25  + use core::marker::Sized;
    |

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

error[E0405]: cannot find trait `Sized` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/stable_deref_trait-1.2.0/src/lib.rs:188:21
    |
188 | unsafe impl<'a, T: ?Sized> CloneStableDeref for &'a T {}
    |
help: consider importing this trait
    |
25  + use core::marker::Sized;
25  + use core::marker::Sized;
    |

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

error[E0405]: cannot find trait `Sized` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/stable_deref_trait-1.2.0/src/lib.rs:189:21
    |
189 | unsafe impl<'a, T: ?Sized> StableDeref for &'a mut T {}
    |
help: consider importing this trait
    |
25  + use core::marker::Sized;
25  + use core::marker::Sized;
    |

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

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

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

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

error[E0425]: cannot find value `None` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.19.0/src/lib.rs:471:47
    |
471 |             OnceCell { inner: UnsafeCell::new(None) }
    |
help: consider importing this unit variant
    |
384 +     use core::option::Option::None;
384 +     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.19.0/src/lib.rs:476:47
    |
476 |             OnceCell { inner: UnsafeCell::new(Some(value)) }
    |
help: consider importing this tuple variant
    |
384 +     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.19.0/src/lib.rs:533:17
    |
533 |                 Err((_, value)) => Err(value),
    |
help: consider importing this tuple variant
    |
384 +     use core::result::Result::Err;
384 +     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.19.0/src/lib.rs:533:36
    |
533 |                 Err((_, value)) => Err(value),
    |
help: consider importing this tuple variant
    |
384 +     use core::result::Result::Err;
384 +     use core::result::Result::Err;
    |

error[E0412]: cannot find type `Result` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.19.0/src/lib.rs:551:47
    |
551 |         pub fn try_insert(&self, value: T) -> Result<&T, (&T, T)> {
    |
help: consider importing one of these items
    |
384 +     use crate::unsync::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.19.0/src/lib.rs:561:21
    |
561 |             *slot = Some(value);
    |
help: consider importing this tuple variant
    |
384 +     use core::option::Option::Some;
384 +     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.19.0/src/lib.rs:562:13
    |
562 |             Ok(unsafe { slot.as_ref().unwrap_unchecked() })
    |
help: consider importing this tuple variant
    |
384 +     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.19.0/src/lib.rs:591:43
    |
591 |             match self.get_or_try_init(|| Ok::<T, Void>(f())) {
    |
help: consider importing this tuple variant
    |
384 +     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.19.0/src/lib.rs:593:17
    |
593 |                 Err(void) => match void {},
    |
help: consider importing this tuple variant
    |
384 +     use core::result::Result::Err;
---

error[E0412]: cannot find type `Result` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.19.0/src/lib.rs:622:54
    |
622 |         pub fn get_or_try_init<F, E>(&self, f: F) -> Result<&T, E>
    |
help: consider importing one of these items
    |
384 +     use crate::unsync::fmt::Result;
---
error: could not compile `stable_deref_trait` (lib) due to 15 previous errors
error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.19.0/src/lib.rs:743:59
    |
743 |             Lazy { cell: OnceCell::new(), init: Cell::new(Some(init)) }
    |
help: consider importing this tuple variant
    |
384 +     use core::option::Option::Some;
384 +     use core::option::Option::Some;
    |

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

error[E0405]: cannot find trait `FnOnce` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.19.0/src/lib.rs:758:16
    |
758 |     impl<T, F: FnOnce() -> T> Lazy<T, F> {
    |
help: consider importing this trait
    |
384 +     use core::ops::FnOnce;
384 +     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.19.0/src/lib.rs:775:17
    |
775 |                 Some(f) => f(),
    |
help: consider importing this tuple variant
    |
384 +     use core::option::Option::Some;
384 +     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.19.0/src/lib.rs:797:21
    |
797 |                     Some(f) => f(),
    |
help: consider importing this tuple variant
    |
384 +     use core::option::Option::Some;
384 +     use core::option::Option::Some;
    |

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

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

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

error[E0405]: cannot find trait `FnOnce` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.19.0/src/lib.rs:847:16
    |
847 |     impl<T, F: FnOnce() -> T> DerefMut for Lazy<T, F> {
    |
help: consider importing this trait
    |
384 +     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.19.0/src/lib.rs:912:17
    |
912 |                 Some(v) => f.debug_tuple("OnceCell").field(v).finish(),
    |
help: consider importing this tuple variant
    |
864 +     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.19.0/src/lib.rs:928:18
    |
928 |                 (Some(this), Some(source)) => this.clone_from(source),
    |
help: consider importing this tuple variant
    |
864 +     use core::option::Option::Some;
864 +     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.19.0/src/lib.rs:928:30
    |
928 |                 (Some(this), Some(source)) => this.clone_from(source),
    |
help: consider importing this tuple variant
    |
864 +     use core::option::Option::Some;
864 +     use core::option::Option::Some;
    |

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

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

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

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

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

error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
    --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.19.0/src/lib.rs:1061:17
     |
1061 |                 Err((_, value)) => Err(value),
     |
help: consider importing this tuple variant
     |
864  +     use core::result::Result::Err;
864  +     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.19.0/src/lib.rs:1061:36
     |
1061 |                 Err((_, value)) => Err(value),
     |
help: consider importing this tuple variant
     |
864  +     use core::result::Result::Err;
864  +     use core::result::Result::Err;
     |

error[E0412]: cannot find type `Result` in this scope
    --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.19.0/src/lib.rs:1080:47
     |
1080 |         pub fn try_insert(&self, value: T) -> Result<&T, (&T, T)> {
     |
help: consider importing one of these items
     |
864  +     use crate::sync::fmt::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.19.0/src/lib.rs:1120:43
     |
1120 |             match self.get_or_try_init(|| Ok::<T, Void>(f())) {
     |
help: consider importing this tuple variant
     |
864  +     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.19.0/src/lib.rs:1122:17
     |
1122 |                 Err(void) => match void {},
     |
help: consider importing this tuple variant
     |
864  +     use core::result::Result::Err;
---

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

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

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

error[E0405]: cannot find trait `Sync` in this scope
    --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.19.0/src/lib.rs:1270:68
     |
1270 |     unsafe impl<T, F: Send> Sync for Lazy<T, F> where OnceCell<T>: Sync {}
     |
help: consider importing this trait
     |
864  +     use core::marker::Sync;
864  +     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.19.0/src/lib.rs:1279:59
     |
1279 |             Lazy { cell: OnceCell::new(), init: Cell::new(Some(f)) }
     |
help: consider importing this tuple variant
     |
864  +     use core::option::Option::Some;
864  +     use core::option::Option::Some;
     |

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

error[E0405]: cannot find trait `FnOnce` in this scope
    --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.19.0/src/lib.rs:1294:16
     |
1294 |     impl<T, F: FnOnce() -> T> Lazy<T, F> {
     |
help: consider importing this trait
     |
864  +     use core::ops::FnOnce;
864  +     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.19.0/src/lib.rs:1310:17
     |
1310 |                 Some(f) => f(),
     |
help: consider importing this tuple variant
     |
864  +     use core::option::Option::Some;
864  +     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.19.0/src/lib.rs:1330:21
     |
1330 |                     Some(f) => f(),
     |
help: consider importing this tuple variant
     |
864  +     use core::option::Option::Some;
864  +     use core::option::Option::Some;
     |

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

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

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

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

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

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
  --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.19.0/src/race.rs:78:39
   |
78 |         match self.get_or_try_init(|| Ok::<NonZeroUsize, Void>(f())) {
   |
help: consider importing this tuple variant
   |
24 + 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.19.0/src/race.rs:80:13
   |
80 |             Err(void) => match void {},
   |
help: consider importing this tuple variant
   |
24 + use core::result::Result::Err;
24 + use core::result::Result::Err;
   |

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

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

error[E0412]: cannot find type `Result` in this scope
  --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.19.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
   |
24 + use core::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.19.0/src/race.rs:102:24
    |
102 |                 if let Err(old) = exchange {
    |
help: consider importing this tuple variant
    |
24  + use core::result::Result::Err;
---

error[E0412]: cannot find type `Result` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.19.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
    |
24  + use core::fmt::Result;
---

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

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

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

error[E0412]: cannot find type `Result` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.19.0/src/race.rs:215:40
    |
215 |     pub fn set(&self, value: &'a T) -> Result<(), ()> {
    |
help: consider importing one of these items
    |
24  + use core::fmt::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.19.0/src/race.rs:236:39
    |
236 |         match self.get_or_try_init(|| Ok::<&'a T, Void>(f())) {
    |
help: consider importing this tuple variant
    |
24  + 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.19.0/src/race.rs:238:13
    |
238 |             Err(void) => match void {},
    |
help: consider importing this tuple variant
    |
24  + use core::result::Result::Err;
---

error[E0412]: cannot find type `Result` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.19.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
    |
24  + use core::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.19.0/src/race.rs:264:20
    |
264 |             if let Err(old) = exchange {
    |
help: consider importing this tuple variant
    |
24  + use core::result::Result::Err;
24  + 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.19.0/src/race.rs:269:9
    |
269 |         Ok(unsafe { &*ptr })
    |
help: consider importing this tuple variant
    |
24  + use core::result::Result::Ok;
24  + use core::result::Result::Ok;
    |

error[E0412]: cannot find type `Option` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.19.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.19.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.19.0/src/race.rs:318:13
    |
318 |     impl<T> Drop for OnceBox<T> {
    |
help: consider importing this trait
    |
295 +     use core::ops::Drop;
---

error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.19.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.19.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 core::fmt::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.19.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;
---

error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope
   --> /cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.19.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.19.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 core::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.19.0/src/race.rs:400:24
    |
400 |                 if let Err(old) = exchange {
    |
help: consider importing this tuple variant
    |
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.19.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.19.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.19.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.19.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;

@tgross35 tgross35 marked this pull request as draft August 6, 2024 09:00
@tgross35
Copy link
Contributor Author

tgross35 commented Aug 6, 2024

This will need more of the fixes from #128359.

@bors
Copy link
Contributor

bors commented Aug 8, 2024

☔ The latest upstream changes (presumably #128805) made this pull request unmergeable. Please resolve the merge conflicts.

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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants