Last active
March 6, 2024 00:19
-
-
Save hgrecco/db39a34137fa3d9d2ecf6720f4bdc7ac to your computer and use it in GitHub Desktop.
tyring to run maturin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🔗 Found pyo3 bindings | |
🐍 Found CPython 3.10 at /Users/<USERNAME>/anaconda3/envs/maturin310/bin/python3 | |
📡 Using build options features from pyproject.toml | |
💻 Using `MACOSX_DEPLOYMENT_TARGET=10.12` for x86_64-apple-darwin by default | |
Finished dev [unoptimized + debuginfo] target(s) in 0.03s | |
📦 Built wheel for CPython 3.10 to /Users/<USERNAME>/Documents/code/string_sum/target/wheels/string_sum-0.1.0-cp310-cp310-macosx_10_12_x86_64.whl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[2m2024-03-05T23:36:39.071289Z[0m [34mDEBUG[0m [2mmaturin::project_layout[0m[2m:[0m Found pyproject.toml in working directory at "/Users/<USERNAME>/Documents/code/string_sum/pyproject.toml" | |
[2m2024-03-05T23:36:39.073968Z[0m [34mDEBUG[0m [2mmaturin::project_layout[0m[2m:[0m Using cargo manifest path from working directory: "/Users/<USERNAME>/Documents/code/string_sum/Cargo.toml" | |
[2m2024-03-05T23:36:39.074257Z[0m [34mDEBUG[0m [2mmaturin::project_layout[0m[2m:[0m Resolving cargo metadata from "/Users/<USERNAME>/Documents/code/string_sum/Cargo.toml" | |
[2m2024-03-05T23:36:39.226867Z[0m [34mDEBUG[0m [2mmaturin::project_layout[0m[2m:[0m Project layout resolved [3mproject_root[0m[2m=[0m/Users/<USERNAME>/Documents/code/string_sum [3mpython_dir[0m[2m=[0m/Users/<USERNAME>/Documents/code/string_sum [3mrust_module[0m[2m=[0m/Users/<USERNAME>/Documents/code/string_sum/string_sum [3mpython_module[0m[2m=[0m/Users/<USERNAME>/Documents/code/string_sum/string_sum [3mextension_name[0m[2m=[0mstring_sum [3mmodule_name[0m[2m=[0mstring_sum | |
[2m2024-03-05T23:36:39.421581Z[0m [34mDEBUG[0m [2mmaturin::python_interpreter[0m[2m:[0m Found CPython interpreter at /Users/<USERNAME>/anaconda3/envs/maturin310/bin/python3 | |
[2m2024-03-05T23:36:39.423256Z[0m [34mDEBUG[0m [2mmaturin::compile[0m[2m:[0m Setting additional linker args for macOS: ["-C", "link-arg=-undefined", "-C", "link-arg=dynamic_lookup", "-C", "link-args=-Wl,-install_name,@rpath/string_sum.cpython-310-darwin.so"] | |
[2m2024-03-05T23:36:39.423391Z[0m [34mDEBUG[0m [2mmaturin::compile[0m[2m:[0m Setting PYO3_PYTHON to /Users/<USERNAME>/anaconda3/envs/maturin310/bin/python3 | |
[2m2024-03-05T23:36:39.520662Z[0m [34mDEBUG[0m [2mmaturin::compile[0m[2m:[0m Running env -u CARGO MACOSX_DEPLOYMENT_TARGET="10.12" PYO3_ENVIRONMENT_SIGNATURE="cpython-3.10-64bit" PYO3_PYTHON="/Users/<USERNAME>/anaconda3/envs/maturin310/bin/python3" PYTHON_SYS_EXECUTABLE="/Users/<USERNAME>/anaconda3/envs/maturin310/bin/python3" "cargo" "rustc" "--features" "pyo3/extension-module" "--message-format" "json-render-diagnostics" "--manifest-path" "/Users/<USERNAME>/Documents/code/string_sum/Cargo.toml" "--lib" "--" "-C" "link-arg=-undefined" "-C" "link-arg=dynamic_lookup" "-C" "link-args=-Wl,-install_name,@rpath/string_sum.cpython-310-darwin.so" | |
[2m2024-03-05T23:36:39.717750Z[0m [34mDEBUG[0m [2mmaturin::module_writer[0m[2m:[0m Adding string_sum-0.1.0.dist-info/METADATA | |
[2m2024-03-05T23:36:39.718152Z[0m [34mDEBUG[0m [2mmaturin::module_writer[0m[2m:[0m Adding string_sum-0.1.0.dist-info/WHEEL | |
[2m2024-03-05T23:36:39.718213Z[0m [34mDEBUG[0m [2mmaturin::module_writer[0m[2m:[0m Adding string_sum/__init__.py | |
[2m2024-03-05T23:36:39.718253Z[0m [34mDEBUG[0m [2mmaturin::module_writer[0m[2m:[0m Adding string_sum/string_sum.cpython-310-darwin.so from /Users/<USERNAME>/Documents/code/string_sum/target/debug/maturin/libstring_sum.dylib | |
[2m2024-03-05T23:36:39.748066Z[0m [34mDEBUG[0m [2mmaturin::module_writer[0m[2m:[0m Adding string_sum-0.1.0.dist-info/RECORD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🔗 Found pyo3 bindings | |
🐍 Found CPython 3.10 at /Users/<USERNAME>/anaconda3/envs/sci310/bin/python | |
📡 Using build options features from pyproject.toml | |
Compiling scopeguard v1.2.0 | |
Compiling cfg-if v1.0.0 | |
Compiling libc v0.2.153 | |
Compiling pyo3-build-config v0.20.3 | |
Compiling smallvec v1.13.1 | |
Compiling portable-atomic v1.6.0 | |
Compiling syn v2.0.52 | |
Compiling memoffset v0.9.0 | |
error[E0463]: can't find crate for `core` | |
| | |
= note: the `aarch64-apple-darwin` target may not be installed | |
= help: consider downloading the target with `rustup target add aarch64-apple-darwin` | |
error[E0463]: can't find crate for `compiler_builtins` | |
error[E0463]: can't find crate for `core` | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/scopeguard-1.2.0/src/lib.rs:192:1 | |
| | |
192 | extern crate core as std; | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate | |
| | |
= note: the `aarch64-apple-darwin` target may not be installed | |
= help: consider downloading the target with `rustup target add aarch64-apple-darwin` | |
error[E0463]: can't find crate for `alloc` | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:105:1 | |
| | |
105 | pub extern crate alloc; | |
| ^^^^^^^^^^^^^^^^^^^^^^^ can't find crate | |
error: cannot find macro `stringify` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/scopeguard-1.2.0/src/lib.rs:487:24 | |
| | |
487 | f.debug_struct(stringify!(ScopeGuard)) | |
| ^^^^^^^^^ | |
error: cannot find attribute `derive` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/scopeguard-1.2.0/src/lib.rs:212:3 | |
| | |
212 | #[derive(Debug)] | |
| ^^^^^^ | |
error[E0463]: can't find crate for `core` | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:117:5 | |
| | |
117 | use core::borrow::{Borrow, BorrowMut}; | |
| ^^^^ can't find crate | |
| | |
= note: the `aarch64-apple-darwin` target may not be installed | |
= help: consider downloading the target with `rustup target add aarch64-apple-darwin` | |
error[E0463]: can't find crate for `core` | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:118:5 | |
| | |
118 | use core::cmp; | |
| ^^^^ can't find crate | |
| | |
= note: the `aarch64-apple-darwin` target may not be installed | |
= help: consider downloading the target with `rustup target add aarch64-apple-darwin` | |
error[E0463]: can't find crate for `core` | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:119:5 | |
| | |
119 | use core::fmt; | |
| ^^^^ can't find crate | |
| | |
= note: the `aarch64-apple-darwin` target may not be installed | |
= help: consider downloading the target with `rustup target add aarch64-apple-darwin` | |
error[E0463]: can't find crate for `core` | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:120:5 | |
| | |
120 | use core::hash::{Hash, Hasher}; | |
| ^^^^ can't find crate | |
| | |
= note: the `aarch64-apple-darwin` target may not be installed | |
= help: consider downloading the target with `rustup target add aarch64-apple-darwin` | |
error[E0463]: can't find crate for `core` | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:121:5 | |
| | |
121 | use core::hint::unreachable_unchecked; | |
| ^^^^ can't find crate | |
| | |
= note: the `aarch64-apple-darwin` target may not be installed | |
= help: consider downloading the target with `rustup target add aarch64-apple-darwin` | |
error[E0463]: can't find crate for `core` | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:122:5 | |
| | |
122 | use core::iter::{repeat, FromIterator, FusedIterator, IntoIterator}; | |
| ^^^^ can't find crate | |
| | |
= note: the `aarch64-apple-darwin` target may not be installed | |
= help: consider downloading the target with `rustup target add aarch64-apple-darwin` | |
error[E0463]: can't find crate for `core` | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:123:5 | |
| | |
123 | use core::mem; | |
| ^^^^ can't find crate | |
| | |
= note: the `aarch64-apple-darwin` target may not be installed | |
= help: consider downloading the target with `rustup target add aarch64-apple-darwin` | |
error[E0463]: can't find crate for `core` | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:124:5 | |
| | |
124 | use core::mem::MaybeUninit; | |
| ^^^^ can't find crate | |
| | |
= note: the `aarch64-apple-darwin` target may not be installed | |
= help: consider downloading the target with `rustup target add aarch64-apple-darwin` | |
error[E0463]: can't find crate for `core` | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:125:5 | |
| | |
125 | use core::ops::{self, Range, RangeBounds}; | |
| ^^^^ can't find crate | |
| | |
= note: the `aarch64-apple-darwin` target may not be installed | |
= help: consider downloading the target with `rustup target add aarch64-apple-darwin` | |
error[E0463]: can't find crate for `core` | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:126:5 | |
| | |
126 | use core::ptr::{self, NonNull}; | |
| ^^^^ can't find crate | |
| | |
= note: the `aarch64-apple-darwin` target may not be installed | |
= help: consider downloading the target with `rustup target add aarch64-apple-darwin` | |
error[E0463]: can't find crate for `core` | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:127:5 | |
| | |
127 | use core::slice::{self, SliceIndex}; | |
| ^^^^ can't find crate | |
| | |
= note: the `aarch64-apple-darwin` target may not be installed | |
= help: consider downloading the target with `rustup target add aarch64-apple-darwin` | |
error[E0463]: can't find crate for `core` | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1022:13 | |
| | |
1022 | use core::ops::Bound::*; | |
| ^^^^ can't find crate | |
| | |
= note: the `aarch64-apple-darwin` target may not be installed | |
= help: consider downloading the target with `rustup target add aarch64-apple-darwin` | |
error: cannot find attribute `derive` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:294:3 | |
| | |
294 | #[derive(Debug)] | |
| ^^^^^^ | |
error: cannot find macro `write` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:307:9 | |
| | |
307 | write!(f, "Allocation error: {:?}", self) | |
| ^^^^^ | |
error: cannot find macro `panic` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:321:54 | |
| | |
321 | Err(CollectionAllocErr::CapacityOverflow) => panic!("capacity overflow"), | |
| ^^^^^ | |
error: cannot find macro `cfg` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:252:12 | |
| | |
252 | if cfg!(debug_assertions) { | |
| ^^^ | |
... | |
698 | _ => debug_unreachable!(), | |
| -------------------- in this macro invocation | |
| | |
= note: `cfg` is in scope, but it is an attribute: `#[cfg]` | |
= note: this error originates in the macro `debug_unreachable` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error: cannot find macro `panic` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:253:13 | |
| | |
253 | panic!($e); | |
| ^^^^^ | |
... | |
698 | _ => debug_unreachable!(), | |
| -------------------- in this macro invocation | |
| | |
= note: this error originates in the macro `debug_unreachable` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error[E0405]: cannot find trait `FnOnce` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/scopeguard-1.2.0/src/lib.rs:306:8 | |
| | |
306 | F: FnOnce(T), | |
| ^^^^^^ not found in this scope | |
error[E0405]: cannot find trait `FnOnce` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/scopeguard-1.2.0/src/lib.rs:317:8 | |
| | |
317 | F: FnOnce(T), | |
| ^^^^^^ not found in this scope | |
error: cannot find macro `cfg` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:252:12 | |
| | |
252 | if cfg!(debug_assertions) { | |
| ^^^ | |
... | |
705 | _ => debug_unreachable!(), | |
| -------------------- in this macro invocation | |
| | |
= note: `cfg` is in scope, but it is an attribute: `#[cfg]` | |
= note: this error originates in the macro `debug_unreachable` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error[E0405]: cannot find trait `FnOnce` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/scopeguard-1.2.0/src/lib.rs:377:8 | |
| | |
377 | F: FnOnce(T), | |
| ^^^^^^ not found in this scope | |
error[E0405]: cannot find trait `Sync` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/scopeguard-1.2.0/src/lib.rs:435:22 | |
| | |
435 | unsafe impl<T, F, S> Sync for ScopeGuard<T, F, S> | |
| ^^^^ not found in this scope | |
error[E0405]: cannot find trait `Sync` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/scopeguard-1.2.0/src/lib.rs:437:8 | |
| | |
437 | T: Sync, | |
| ^^^^ not found in this scope | |
error: cannot find macro `panic` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:253:13 | |
| | |
253 | panic!($e); | |
| ^^^^^ | |
... | |
705 | _ => debug_unreachable!(), | |
| -------------------- in this macro invocation | |
| | |
= note: this error originates in the macro `debug_unreachable` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error: cannot find macro `cfg` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:252:12 | |
| | |
252 | if cfg!(debug_assertions) { | |
| ^^^ | |
... | |
716 | _ => debug_unreachable!(), | |
| -------------------- in this macro invocation | |
| | |
= note: `cfg` is in scope, but it is an attribute: `#[cfg]` | |
= note: this error originates in the macro `debug_unreachable` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error[E0405]: cannot find trait `FnOnce` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/scopeguard-1.2.0/src/lib.rs:438:8 | |
| | |
438 | F: FnOnce(T), | |
| ^^^^^^ not found in this scope | |
error: cannot find macro `panic` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:253:13 | |
| | |
253 | panic!($e); | |
| ^^^^^ | |
... | |
716 | _ => debug_unreachable!(), | |
| -------------------- in this macro invocation | |
| | |
= note: this error originates in the macro `debug_unreachable` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error[E0405]: cannot find trait `FnOnce` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/scopeguard-1.2.0/src/lib.rs:445:8 | |
| | |
445 | F: FnOnce(T), | |
| ^^^^^^ not found in this scope | |
error[E0405]: cannot find trait `FnOnce` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/scopeguard-1.2.0/src/lib.rs:457:8 | |
| | |
457 | F: FnOnce(T), | |
| ^^^^^^ not found in this scope | |
error[E0405]: cannot find trait `Drop` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/scopeguard-1.2.0/src/lib.rs:465:15 | |
| | |
465 | impl<T, F, S> Drop for ScopeGuard<T, F, S> | |
| ^^^^ not found in this scope | |
error: cannot find macro `cfg` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:252:12 | |
| | |
252 | if cfg!(debug_assertions) { | |
| ^^^ | |
... | |
723 | _ => debug_unreachable!(), | |
| -------------------- in this macro invocation | |
| | |
= note: `cfg` is in scope, but it is an attribute: `#[cfg]` | |
= note: this error originates in the macro `debug_unreachable` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error[E0405]: cannot find trait `FnOnce` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/scopeguard-1.2.0/src/lib.rs:467:8 | |
| | |
467 | F: FnOnce(T), | |
| ^^^^^^ not found in this scope | |
error[E0405]: cannot find trait `FnOnce` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/scopeguard-1.2.0/src/lib.rs:483:8 | |
| | |
483 | F: FnOnce(T), | |
| ^^^^^^ not found in this scope | |
error: cannot find macro `panic` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:253:13 | |
| | |
253 | panic!($e); | |
| ^^^^^ | |
... | |
723 | _ => debug_unreachable!(), | |
| -------------------- in this macro invocation | |
| | |
= note: this error originates in the macro `debug_unreachable` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error: cannot find macro `cfg` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:252:12 | |
| | |
252 | if cfg!(debug_assertions) { | |
| ^^^ | |
... | |
730 | _ => debug_unreachable!(), | |
| -------------------- in this macro invocation | |
| | |
= note: `cfg` is in scope, but it is an attribute: `#[cfg]` | |
= note: this error originates in the macro `debug_unreachable` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error: cannot find macro `panic` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:253:13 | |
| | |
253 | panic!($e); | |
| ^^^^^ | |
... | |
730 | _ => debug_unreachable!(), | |
| -------------------- in this macro invocation | |
| | |
= note: this error originates in the macro `debug_unreachable` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error: cannot find macro `assert` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:782:9 | |
| | |
782 | assert!( | |
| ^^^^^^ | |
error: cannot find macro `assert` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:887:9 | |
| | |
887 | assert!(len <= A::size()); | |
| ^^^^^^ | |
error: cannot find macro `assert` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1036:9 | |
| | |
1036 | assert!(start <= end); | |
| ^^^^^^ | |
error: cannot find macro `assert` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1037:9 | |
| | |
1037 | assert!(end <= len); | |
| ^^^^^^ | |
error: cannot find macro `assert` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1177:13 | |
| | |
1177 | assert!(new_cap >= len); | |
| ^^^^^^ | |
error: cannot find macro `debug_assert` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1188:17 | |
| | |
1188 | debug_assert!(layout.size() > 0); | |
| ^^^^^^^^^^^^ | |
error: cannot find macro `debug_assert_eq` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1226:9 | |
| | |
1226 | debug_assert_eq!(self.len(), self.capacity()); | |
| ^^^^^^^^^^^^^^^ | |
error: cannot find macro `assert` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1352:13 | |
| | |
1352 | assert!(index < len); | |
| ^^^^^^ | |
error: cannot find macro `panic` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1381:17 | |
| | |
1381 | panic!("index exceeds length"); | |
| ^^^^^ | |
error: cannot find macro `assert` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1397:9 | |
| | |
1397 | assert!(lower_size_bound <= core::isize::MAX as usize); // Ensure offset is indexable | |
| ^^^^^^ | |
error: cannot find macro `assert` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1398:9 | |
| | |
1398 | assert!(index + lower_size_bound >= index); // Protect against overflow | |
| ^^^^^^ | |
error: cannot find macro `assert` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1402:9 | |
| | |
1402 | assert!(index <= old_len); | |
| ^^^^^^ | |
error: cannot find macro `debug_assert` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1704:13 | |
| | |
1704 | debug_assert!(!ptr.is_null(), "Called `from_raw_parts` with null pointer."); | |
| ^^^^^^^^^^^^ | |
error: cannot find macro `assert` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1707:9 | |
| | |
1707 | assert!(capacity > Self::inline_capacity()); | |
| ^^^^^^ | |
error: cannot find macro `assert` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1774:9 | |
| | |
1774 | assert!(index <= len); | |
| ^^^^^^ | |
error: cannot determine resolution for the macro `vec` | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1824:13 | |
| | |
1824 | vec![elem; n].into() | |
| ^^^ | |
| | |
= note: import resolution is stuck, try simplifying macro imports | |
error[E0463]: can't find crate for `core` | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:940:13 | |
| | |
940 | core::usize::MAX | |
| ^^^^ can't find crate | |
| | |
= note: the `aarch64-apple-darwin` target may not be installed | |
= help: consider downloading the target with `rustup target add aarch64-apple-darwin` | |
For more information about this error, try `rustc --explain E0463`. | |
error: could not compile `cfg-if` (lib) due to 2 previous errors | |
warning: build failed, waiting for other jobs to finish... | |
error[E0463]: can't find crate for `core` | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1833:23 | |
| | |
1833 | ::core::ptr::write(ptr.add(i), elem.clone()); | |
| ^^^^ can't find crate | |
| | |
= note: the `aarch64-apple-darwin` target may not be installed | |
= help: consider downloading the target with `rustup target add aarch64-apple-darwin` | |
Some errors have detailed explanations: E0405, E0463. | |
For more information about an error, try `rustc --explain E0405`. | |
error: could not compile `scopeguard` (lib) due to 16 previous errors | |
error[E0463]: can't find crate for `core` | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2276:18 | |
| | |
2276 | unsafe { core::slice::from_raw_parts(self.data.as_ptr().add(self.current), len) } | |
| ^^^^ can't find crate | |
| | |
= note: the `aarch64-apple-darwin` target may not be installed | |
= help: consider downloading the target with `rustup target add aarch64-apple-darwin` | |
error[E0463]: can't find crate for `core` | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2282:18 | |
| | |
2282 | unsafe { core::slice::from_raw_parts_mut(self.data.as_mut_ptr().add(self.current), len) } | |
| ^^^^ can't find crate | |
| | |
= note: the `aarch64-apple-darwin` target may not be installed | |
= help: consider downloading the target with `rustup target add aarch64-apple-darwin` | |
error[E0405]: cannot find trait `Clone` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:287:9 | |
| | |
287 | impl<T: Clone> ExtendFromSlice<T> for Vec<T> { | |
| ^^^^^ not found in this scope | |
error[E0405]: cannot find trait `From` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:312:6 | |
| | |
312 | impl From<LayoutErr> for CollectionAllocErr { | |
| ^^^^ not found in this scope | |
error[E0412]: cannot find type `Result` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:318:26 | |
| | |
318 | fn infallible<T>(result: Result<T, CollectionAllocErr>) -> T { | |
| ^^^^^^ not found in this scope | |
error[E0531]: cannot find tuple struct or tuple variant `Ok` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:320:9 | |
| | |
320 | Ok(x) => x, | |
| ^^ not found in this scope | |
error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:321:9 | |
| | |
321 | Err(CollectionAllocErr::CapacityOverflow) => panic!("capacity overflow"), | |
| ^^^ not found in this scope | |
error[E0531]: cannot find tuple struct or tuple variant `Err` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:322:9 | |
| | |
322 | Err(CollectionAllocErr::AllocErr { layout }) => alloc::alloc::handle_alloc_error(layout), | |
| ^^^ not found in this scope | |
error[E0412]: cannot find type `Result` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:328:33 | |
| | |
328 | fn layout_array<T>(n: usize) -> Result<Layout, CollectionAllocErr> { | |
| ^^^^^^ not found in this scope | |
error[E0405]: cannot find trait `Sync` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:363:34 | |
| | |
363 | unsafe impl<'a, T: Sync + Array> Sync for Drain<'a, T> {} | |
| ^^^^ not found in this scope | |
error[E0405]: cannot find trait `Sync` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:363:20 | |
| | |
363 | unsafe impl<'a, T: Sync + Array> Sync for Drain<'a, T> {} | |
| ^^^^ not found in this scope | |
error[E0405]: cannot find trait `Send` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:364:34 | |
| | |
364 | unsafe impl<'a, T: Send + Array> Send for Drain<'a, T> {} | |
| ^^^^ not found in this scope | |
error[E0405]: cannot find trait `Send` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:364:20 | |
| | |
364 | unsafe impl<'a, T: Send + Array> Send for Drain<'a, T> {} | |
| ^^^^ not found in this scope | |
error[E0405]: cannot find trait `Iterator` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:366:25 | |
| | |
366 | impl<'a, T: 'a + Array> Iterator for Drain<'a, T> { | |
| ^^^^^^^^ not found in this scope | |
error[E0412]: cannot find type `Option` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:370:27 | |
| | |
370 | fn next(&mut self) -> Option<T::Item> { | |
| ^^^^^^ not found in this scope | |
error[E0412]: cannot find type `Option` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:377:36 | |
| | |
377 | fn size_hint(&self) -> (usize, Option<usize>) { | |
| ^^^^^^ not found in this scope | |
error[E0405]: cannot find trait `DoubleEndedIterator` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:382:25 | |
| | |
382 | impl<'a, T: 'a + Array> DoubleEndedIterator for Drain<'a, T> { | |
| ^^^^^^^^^^^^^^^^^^^ not found in this scope | |
error[E0412]: cannot find type `Option` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:384:32 | |
| | |
384 | fn next_back(&mut self) -> Option<T::Item> { | |
| ^^^^^^ not found in this scope | |
error[E0405]: cannot find trait `ExactSizeIterator` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:391:20 | |
| | |
391 | impl<'a, T: Array> ExactSizeIterator for Drain<'a, T> { | |
| ^^^^^^^^^^^^^^^^^ not found in this scope | |
error[E0405]: cannot find trait `Drop` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:400:25 | |
| | |
400 | impl<'a, T: 'a + Array> Drop for Drain<'a, T> { | |
| ^^^^ not found in this scope | |
error[E0425]: cannot find value `drop` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:402:23 | |
| | |
401 | fn drop(&mut self) { | |
| ---- a method by that name is available on `Self` here | |
402 | self.for_each(drop); | |
| ^^^^ not found in this scope | |
error[E0405]: cannot find trait `Send` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:739:30 | |
| | |
739 | unsafe impl<A: Array + Send> Send for SmallVecData<A> {} | |
| ^^^^ not found in this scope | |
error[E0405]: cannot find trait `Send` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:739:24 | |
| | |
739 | unsafe impl<A: Array + Send> Send for SmallVecData<A> {} | |
| ^^^^ not found in this scope | |
error[E0405]: cannot find trait `Sync` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:740:30 | |
| | |
740 | unsafe impl<A: Array + Sync> Sync for SmallVecData<A> {} | |
| ^^^^ not found in this scope | |
error[E0405]: cannot find trait `Sync` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:740:24 | |
| | |
740 | unsafe impl<A: Array + Sync> Sync for SmallVecData<A> {} | |
| ^^^^ not found in this scope | |
error[E0531]: cannot find tuple struct or tuple variant `Included` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1026:13 | |
| | |
1026 | Included(&n) => n, | |
| ^^^^^^^^ not found in this scope | |
error[E0531]: cannot find tuple struct or tuple variant `Excluded` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1027:13 | |
| | |
1027 | Excluded(&n) => n.checked_add(1).expect("Range start out of bounds"), | |
| ^^^^^^^^ not found in this scope | |
error[E0531]: cannot find tuple struct or tuple variant `Included` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1031:13 | |
| | |
1031 | Included(&n) => n.checked_add(1).expect("Range end out of bounds"), | |
| ^^^^^^^^ not found in this scope | |
error[E0531]: cannot find tuple struct or tuple variant `Excluded` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1032:13 | |
| | |
1032 | Excluded(&n) => n, | |
| ^^^^^^^^ not found in this scope | |
error[E0412]: cannot find type `Option` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1130:30 | |
| | |
1130 | pub fn pop(&mut self) -> Option<A::Item> { | |
| ^^^^^^ not found in this scope | |
error[E0425]: cannot find value `None` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1135:24 | |
| | |
1135 | return None; | |
| ^^^^ not found in this scope | |
error[E0412]: cannot find type `Result` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1173:51 | |
| | |
1173 | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { | |
| ^^^^^^ not found in this scope | |
error[E0412]: cannot find type `Result` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1237:57 | |
| | |
1237 | pub fn try_reserve(&mut self, additional: usize) -> Result<(), CollectionAllocErr> { | |
| ^^^^^^ not found in this scope | |
error[E0412]: cannot find type `Result` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1259:63 | |
| | |
1259 | pub fn try_reserve_exact(&mut self, additional: usize) -> Result<(), CollectionAllocErr> { | |
| ^^^^^^ not found in this scope | |
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1427:21 | |
| | |
1427 | Some(x) => x, | |
| ^^^^ not found in this scope | |
error[E0405]: cannot find trait `Drop` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1461:17 | |
| | |
1461 | impl<T> Drop for DropOnPanic<T> { | |
| ^^^^ not found in this scope | |
error[E0412]: cannot find type `Result` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1501:32 | |
| | |
1501 | pub fn into_inner(self) -> Result<A, Self> { | |
| ^^^^^^ not found in this scope | |
error[E0405]: cannot find trait `FnMut` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1519:22 | |
| | |
1519 | pub fn retain<F: FnMut(&mut A::Item) -> bool>(&mut self, mut f: F) { | |
| ^^^^^ not found in this scope | |
error[E0405]: cannot find trait `FnMut` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1537:26 | |
| | |
1537 | pub fn retain_mut<F: FnMut(&mut A::Item) -> bool>(&mut self, f: F) { | |
| ^^^^^ not found in this scope | |
error[E0405]: cannot find trait `PartialEq` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1544:18 | |
| | |
1544 | A::Item: PartialEq<A::Item>, | |
| ^^^^^^^^^ not found in this scope | |
error[E0405]: cannot find trait `FnMut` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1552:12 | |
| | |
1552 | F: FnMut(&mut A::Item, &mut A::Item) -> bool, | |
| ^^^^^ not found in this scope | |
error[E0405]: cannot find trait `FnMut` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1584:12 | |
| | |
1584 | F: FnMut(&mut A::Item) -> K, | |
| ^^^^^ not found in this scope | |
error[E0405]: cannot find trait `PartialEq` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1585:12 | |
| | |
1585 | K: PartialEq<K>, | |
| ^^^^^^^^^ not found in this scope | |
error[E0405]: cannot find trait `FnMut` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1617:12 | |
| | |
1617 | F: FnMut() -> A::Item, | |
| ^^^^^ not found in this scope | |
error[E0405]: cannot find trait `Copy` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1733:14 | |
| | |
1733 | A::Item: Copy, | |
| ^^^^ not found in this scope | |
error[E0405]: cannot find trait `Clone` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1797:14 | |
| | |
1797 | A::Item: Clone, | |
| ^^^^^ not found in this scope | |
error[E0405]: cannot find trait `AsRef` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1863:16 | |
| | |
1863 | impl<A: Array> AsRef<[A::Item]> for SmallVec<A> { | |
| ^^^^^ not found in this scope | |
error[E0405]: cannot find trait `AsMut` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1870:16 | |
| | |
1870 | impl<A: Array> AsMut<[A::Item]> for SmallVec<A> { | |
| ^^^^^ not found in this scope | |
error[E0405]: cannot find trait `From` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1995:20 | |
| | |
1995 | impl<'a, A: Array> From<&'a [A::Item]> for SmallVec<A> | |
| ^^^^ not found in this scope | |
error[E0405]: cannot find trait `Clone` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1997:14 | |
| | |
1997 | A::Item: Clone, | |
| ^^^^^ not found in this scope | |
error[E0405]: cannot find trait `From` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2012:16 | |
| | |
2012 | impl<A: Array> From<Vec<A::Item>> for SmallVec<A> { | |
| ^^^^ not found in this scope | |
error[E0405]: cannot find trait `From` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2019:16 | |
| | |
2019 | impl<A: Array> From<A> for SmallVec<A> { | |
| ^^^^ not found in this scope | |
error[E0405]: cannot find trait `Copy` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2043:14 | |
| | |
2043 | A::Item: Copy, | |
| ^^^^ not found in this scope | |
error[E0405]: cannot find trait `Extend` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2059:16 | |
| | |
2059 | impl<A: Array> Extend<A::Item> for SmallVec<A> { | |
| ^^^^^^ not found in this scope | |
error[E0531]: cannot find tuple struct or tuple variant `Some` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2070:24 | |
| | |
2070 | if let Some(out) = iter.next() { | |
| ^^^^ not found in this scope | |
error[E0405]: cannot find trait `Default` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2094:16 | |
| | |
2094 | impl<A: Array> Default for SmallVec<A> { | |
| ^^^^^^^ not found in this scope | |
error[E0405]: cannot find trait `Drop` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2116:16 | |
| | |
2116 | impl<A: Array> Drop for SmallVec<A> { | |
| ^^^^ not found in this scope | |
error[E0405]: cannot find trait `Clone` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2129:16 | |
| | |
2129 | impl<A: Array> Clone for SmallVec<A> | |
| ^^^^^ not found in this scope | |
error[E0405]: cannot find trait `Clone` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2131:14 | |
| | |
2131 | A::Item: Clone, | |
| ^^^^^ not found in this scope | |
error[E0405]: cannot find trait `PartialEq` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2154:26 | |
| | |
2154 | impl<A: Array, B: Array> PartialEq<SmallVec<B>> for SmallVec<A> | |
| ^^^^^^^^^ not found in this scope | |
error[E0405]: cannot find trait `PartialEq` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2156:14 | |
| | |
2156 | A::Item: PartialEq<B::Item>, | |
| ^^^^^^^^^ not found in this scope | |
error[E0405]: cannot find trait `Eq` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2164:16 | |
| | |
2164 | impl<A: Array> Eq for SmallVec<A> where A::Item: Eq {} | |
| ^^ not found in this scope | |
error[E0405]: cannot find trait `Eq` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2164:50 | |
| | |
2164 | impl<A: Array> Eq for SmallVec<A> where A::Item: Eq {} | |
| ^^ not found in this scope | |
error[E0405]: cannot find trait `PartialOrd` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2166:16 | |
| | |
2166 | impl<A: Array> PartialOrd for SmallVec<A> | |
| ^^^^^^^^^^ not found in this scope | |
error[E0405]: cannot find trait `PartialOrd` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2168:14 | |
| | |
2168 | A::Item: PartialOrd, | |
| ^^^^^^^^^^ not found in this scope | |
error[E0412]: cannot find type `Option` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2171:51 | |
| | |
2171 | fn partial_cmp(&self, other: &SmallVec<A>) -> Option<cmp::Ordering> { | |
| ^^^^^^ not found in this scope | |
error[E0405]: cannot find trait `Ord` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2176:16 | |
| | |
2176 | impl<A: Array> Ord for SmallVec<A> | |
| ^^^ not found in this scope | |
error[E0405]: cannot find trait `Ord` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2178:14 | |
| | |
2178 | A::Item: Ord, | |
| ^^^ not found in this scope | |
error[E0405]: cannot find trait `Send` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2195:23 | |
| | |
2195 | unsafe impl<A: Array> Send for SmallVec<A> where A::Item: Send {} | |
| ^^^^ not found in this scope | |
error[E0405]: cannot find trait `Send` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2195:59 | |
| | |
2195 | unsafe impl<A: Array> Send for SmallVec<A> where A::Item: Send {} | |
| ^^^^ not found in this scope | |
error[E0405]: cannot find trait `Clone` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2217:24 | |
| | |
2217 | impl<A: Array + Clone> Clone for IntoIter<A> | |
| ^^^^^ not found in this scope | |
error[E0405]: cannot find trait `Clone` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2217:17 | |
| | |
2217 | impl<A: Array + Clone> Clone for IntoIter<A> | |
| ^^^^^ not found in this scope | |
error[E0405]: cannot find trait `Clone` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2219:14 | |
| | |
2219 | A::Item: Clone, | |
| ^^^^^ not found in this scope | |
error[E0405]: cannot find trait `Drop` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2226:16 | |
| | |
2226 | impl<A: Array> Drop for IntoIter<A> { | |
| ^^^^ not found in this scope | |
error[E0405]: cannot find trait `Iterator` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2232:16 | |
| | |
2232 | impl<A: Array> Iterator for IntoIter<A> { | |
| ^^^^^^^^ not found in this scope | |
error[E0412]: cannot find type `Option` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2236:27 | |
| | |
2236 | fn next(&mut self) -> Option<A::Item> { | |
| ^^^^^^ not found in this scope | |
error[E0425]: cannot find value `None` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2238:13 | |
| | |
2238 | None | |
| ^^^^ not found in this scope | |
error[E0412]: cannot find type `Option` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2249:36 | |
| | |
2249 | fn size_hint(&self) -> (usize, Option<usize>) { | |
| ^^^^^^ not found in this scope | |
error[E0405]: cannot find trait `DoubleEndedIterator` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2255:16 | |
| | |
2255 | impl<A: Array> DoubleEndedIterator for IntoIter<A> { | |
| ^^^^^^^^^^^^^^^^^^^ not found in this scope | |
error[E0412]: cannot find type `Option` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2257:32 | |
| | |
2257 | fn next_back(&mut self) -> Option<A::Item> { | |
| ^^^^^^ not found in this scope | |
error[E0425]: cannot find value `None` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2259:13 | |
| | |
2259 | None | |
| ^^^^ not found in this scope | |
error[E0405]: cannot find trait `ExactSizeIterator` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2269:16 | |
| | |
2269 | impl<A: Array> ExactSizeIterator for IntoIter<A> {} | |
| ^^^^^^^^^^^^^^^^^ not found in this scope | |
error[E0405]: cannot find trait `Drop` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2355:10 | |
| | |
2355 | impl<'a> Drop for SetLenOnDrop<'a> { | |
| ^^^^ not found in this scope | |
error[E0405]: cannot find trait `Copy` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2441:14 | |
| | |
2441 | A::Item: Copy, | |
| ^^^^ not found in this scope | |
error[E0412]: cannot find type `Option` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2455:30 | |
| | |
2455 | fn new(ptr: *const T) -> Option<Self> { | |
| ^^^^^^ not found in this scope | |
error[E0405]: cannot find trait `Clone` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2464:9 | |
| | |
2464 | impl<T> Clone for ConstNonNull<T> { | |
| ^^^^^ not found in this scope | |
error[E0405]: cannot find trait `Copy` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2471:9 | |
| | |
2471 | impl<T> Copy for ConstNonNull<T> {} | |
| ^^^^ not found in this scope | |
error: requires `sized` lang_item | |
error: could not compile `memoffset` (lib) due to 3 previous errors | |
error[E0432]: unresolved import `ffi::c_void` | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libc-0.2.153/src/unix/mod.rs:1590:17 | |
| | |
1590 | pub use ::ffi::c_void; | |
| ^^^^^^^^^^^^^ | |
error[E0433]: failed to resolve: use of undeclared type `PartialOrd` | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2172:9 | |
| | |
2172 | PartialOrd::partial_cmp(&**self, &**other) | |
| ^^^^^^^^^^ use of undeclared type `PartialOrd` | |
error[E0433]: failed to resolve: use of undeclared type `Ord` | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2182:9 | |
| | |
2182 | Ord::cmp(&**self, &**other) | |
| ^^^ use of undeclared type `Ord` | |
error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1139:13 | |
| | |
1139 | Some(ptr::read(ptr.add(last_index))) | |
| ^^^^ not found in this scope | |
error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1180:28 | |
| | |
1180 | return Ok(()); | |
| ^^ not found in this scope | |
error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1209:13 | |
| | |
1209 | Ok(()) | |
| ^^ not found in this scope | |
error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1242:20 | |
| | |
1242 | return Ok(()); | |
| ^^ not found in this scope | |
error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1262:20 | |
| | |
1262 | return Ok(()); | |
| ^^ not found in this scope | |
error[E0425]: cannot find function, tuple struct or tuple variant `Err` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1504:13 | |
| | |
1504 | Err(self) | |
| ^^^------ | |
| | | |
| help: try calling `Err` as a method: `self.Err()` | |
error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:1509:17 | |
| | |
1509 | Ok(data.into_inline().assume_init()) | |
| ^^ not found in this scope | |
error[E0425]: cannot find function `drop` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2121:17 | |
| | |
2121 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | |
| ^^^^ not found in this scope | |
| | |
help: consider using the method on `Self` | |
| | |
2121 | self.drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | |
| +++++ | |
error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2243:17 | |
| | |
2243 | Some(ptr::read(self.data.as_ptr().add(current))) | |
| ^^^^ not found in this scope | |
error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2251:16 | |
| | |
2251 | (size, Some(size)) | |
| ^^^^ not found in this scope | |
error[E0425]: cannot find function, tuple struct or tuple variant `Some` in this scope | |
--> /Users/<USERNAME>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.1/src/lib.rs:2263:17 | |
| | |
2263 | Some(ptr::read(self.data.as_ptr().add(self.end))) | |
| ^^^^ not found in this scope | |
Some errors have detailed explanations: E0405, E0412, E0425, E0433, E0463, E0531. | |
error: could not compile `smallvec` (lib) due to 146 previous errors | |
Some errors have detailed explanations: E0432, E0463. | |
For more information about an error, try `rustc --explain E0432`. | |
error: could not compile `libc` (lib) due to 3 previous errors | |
💥 maturin failed | |
Caused by: Failed to build a native library through cargo | |
Caused by: Cargo build finished with "exit status: 101": `env -u CARGO PYO3_ENVIRONMENT_SIGNATURE="cpython-3.10-64bit" PYO3_PYTHON="/Users/<USERNAME>/anaconda3/envs/sci310/bin/python" PYTHON_SYS_EXECUTABLE="/Users/<USERNAME>/anaconda3/envs/sci310/bin/python" "cargo" "rustc" "--features" "pyo3/extension-module" "--target" "aarch64-apple-darwin" "--message-format" "json-render-diagnostics" "--manifest-path" "/Users/<USERNAME>/Documents/code/string_sum/Cargo.toml" "--lib" "--" "-C" "link-arg=-undefined" "-C" "link-arg=dynamic_lookup" "-C" "link-args=-Wl,-install_name,@rpath/string_sum.cpython-310-darwin.so"` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[2m2024-03-06T00:17:17.906197Z[0m [34mDEBUG[0m [2mmaturin::project_layout[0m[2m:[0m Found pyproject.toml in working directory at "/Users/<USERNAME>/Documents/code/string_sum/pyproject.toml" | |
[2m2024-03-06T00:17:17.910462Z[0m [34mDEBUG[0m [2mmaturin::project_layout[0m[2m:[0m Using cargo manifest path from working directory: "/Users/<USERNAME>/Documents/code/string_sum/Cargo.toml" | |
[2m2024-03-06T00:17:17.910938Z[0m [34mDEBUG[0m [2mmaturin::project_layout[0m[2m:[0m Resolving cargo metadata from "/Users/<USERNAME>/Documents/code/string_sum/Cargo.toml" | |
[2m2024-03-06T00:17:18.043811Z[0m [34mDEBUG[0m [2mmaturin::project_layout[0m[2m:[0m Project layout resolved [3mproject_root[0m[2m=[0m/Users/<USERNAME>/Documents/code/string_sum [3mpython_dir[0m[2m=[0m/Users/<USERNAME>/Documents/code/string_sum [3mrust_module[0m[2m=[0m/Users/<USERNAME>/Documents/code/string_sum/string_sum [3mpython_module[0m[2m=[0m/Users/<USERNAME>/Documents/code/string_sum/string_sum [3mextension_name[0m[2m=[0mstring_sum [3mmodule_name[0m[2m=[0mstring_sum | |
[2m2024-03-06T00:17:18.122713Z[0m [34mDEBUG[0m [2mmaturin::python_interpreter[0m[2m:[0m Found CPython interpreter at /Users/<USERNAME>/anaconda3/envs/sci310/bin/python | |
[2m2024-03-06T00:17:18.143139Z[0m [34mDEBUG[0m [2mmaturin::python_interpreter[0m[2m:[0m Found CPython interpreter at /Users/<USERNAME>/anaconda3/envs/sci310/bin/python | |
[2m2024-03-06T00:17:18.145562Z[0m [34mDEBUG[0m [2mmaturin::compile[0m[2m:[0m Setting additional linker args for macOS: ["-C", "link-arg=-undefined", "-C", "link-arg=dynamic_lookup", "-C", "link-args=-Wl,-install_name,@rpath/string_sum.cpython-310-darwin.so"] | |
[2m2024-03-06T00:17:18.145755Z[0m [34mDEBUG[0m [2mmaturin::compile[0m[2m:[0m Setting PYO3_PYTHON to /Users/<USERNAME>/anaconda3/envs/sci310/bin/python | |
[2m2024-03-06T00:17:18.145784Z[0m [34mDEBUG[0m [2mmaturin::compile[0m[2m:[0m Running env -u CARGO PYO3_ENVIRONMENT_SIGNATURE="cpython-3.10-64bit" PYO3_PYTHON="/Users/<USERNAME>/anaconda3/envs/sci310/bin/python" PYTHON_SYS_EXECUTABLE="/Users/<USERNAME>/anaconda3/envs/sci310/bin/python" "cargo" "rustc" "--features" "pyo3/extension-module" "--target" "aarch64-apple-darwin" "--message-format" "json-render-diagnostics" "--manifest-path" "/Users/<USERNAME>/Documents/code/string_sum/Cargo.toml" "--lib" "--" "-C" "link-arg=-undefined" "-C" "link-arg=dynamic_lookup" "-C" "link-args=-Wl,-install_name,@rpath/string_sum.cpython-310-darwin.so" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment