[INFO] cloning repository https://github.com/miyamofigo/rust-shared-ptr [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/miyamofigo/rust-shared-ptr" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmiyamofigo%2Frust-shared-ptr", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmiyamofigo%2Frust-shared-ptr'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4935e3eb4a41b6a03fa22706a0f1cd51bcb81496 [INFO] checking miyamofigo/rust-shared-ptr against master#506512391b1a75ae450d36c9420978402a91abcc for pr-125384 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmiyamofigo%2Frust-shared-ptr" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/miyamofigo/rust-shared-ptr on toolchain 506512391b1a75ae450d36c9420978402a91abcc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/miyamofigo/rust-shared-ptr [INFO] finished tweaking git repo https://github.com/miyamofigo/rust-shared-ptr [INFO] tweaked toml for git repo https://github.com/miyamofigo/rust-shared-ptr written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/miyamofigo/rust-shared-ptr already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ecec40ba8fc84acf58c45f3ebcce3307be7dcbabd754abfb2530cf86085178f3 [INFO] running `Command { std: "docker" "start" "-a" "ecec40ba8fc84acf58c45f3ebcce3307be7dcbabd754abfb2530cf86085178f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ecec40ba8fc84acf58c45f3ebcce3307be7dcbabd754abfb2530cf86085178f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ecec40ba8fc84acf58c45f3ebcce3307be7dcbabd754abfb2530cf86085178f3", kill_on_drop: false }` [INFO] [stdout] ecec40ba8fc84acf58c45f3ebcce3307be7dcbabd754abfb2530cf86085178f3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 626ef5085cb83ef26a97e70e46e539a8f95991497ac8d3861f36b851819ea071 [INFO] running `Command { std: "docker" "start" "-a" "626ef5085cb83ef26a97e70e46e539a8f95991497ac8d3861f36b851819ea071", kill_on_drop: false }` [INFO] [stderr] Checking shared v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: `box_syntax` has been removed [INFO] [stdout] --> src/lib.rs:57:42 [INFO] [stdout] | [INFO] [stdout] 57 | _ptr: NonZero::new(Box::into_raw(box SharedBox { [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 58 | | strong: Cell::new(1), [INFO] [stdout] 59 | | weak: Cell::new(1), [INFO] [stdout] 60 | | value: value [INFO] [stdout] 61 | | })), [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] help: use `Box::new()` instead [INFO] [stdout] | [INFO] [stdout] 57 ~ _ptr: NonZero::new(Box::into_raw(Box::new(SharedBox { [INFO] [stdout] 58 + strong: Cell::new(1), [INFO] [stdout] 59 + weak: Cell::new(1), [INFO] [stdout] 60 + value: value [INFO] [stdout] 61 ~ }))), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `box_syntax` has been removed [INFO] [stdout] --> src/lib.rs:57:42 [INFO] [stdout] | [INFO] [stdout] 57 | _ptr: NonZero::new(Box::into_raw(box SharedBox { [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 58 | | strong: Cell::new(1), [INFO] [stdout] 59 | | weak: Cell::new(1), [INFO] [stdout] 60 | | value: value [INFO] [stdout] 61 | | })), [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] help: use `Box::new()` instead [INFO] [stdout] | [INFO] [stdout] 57 ~ _ptr: NonZero::new(Box::into_raw(Box::new(SharedBox { [INFO] [stdout] 58 + strong: Cell::new(1), [INFO] [stdout] 59 + weak: Cell::new(1), [INFO] [stdout] 60 + value: value [INFO] [stdout] 61 ~ }))), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `box_syntax` has been removed [INFO] [stdout] --> src/lib.rs:417:41 [INFO] [stdout] | [INFO] [stdout] 417 | let x: Shared> = Shared::new(box 5); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `Box::new()` instead [INFO] [stdout] | [INFO] [stdout] 417 | let x: Shared> = Shared::new(Box::new(5)); [INFO] [stdout] | ~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `box_syntax` has been removed [INFO] [stdout] --> src/lib.rs:417:41 [INFO] [stdout] | [INFO] [stdout] 417 | let x: Shared> = Shared::new(box 5); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `Box::new()` instead [INFO] [stdout] | [INFO] [stdout] 417 | let x: Shared> = Shared::new(Box::new(5)); [INFO] [stdout] | ~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0557]: feature has been removed [INFO] [stdout] --> src/lib.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | #![feature(optin_builtin_traits)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ feature has been removed [INFO] [stdout] | [INFO] [stdout] = note: renamed to `auto_traits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0557]: feature has been removed [INFO] [stdout] --> src/lib.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | #![feature(optin_builtin_traits)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ feature has been removed [INFO] [stdout] | [INFO] [stdout] = note: renamed to `auto_traits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0557]: feature has been removed [INFO] [stdout] --> src/lib.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | #![feature(box_syntax, box_raw)] [INFO] [stdout] | ^^^^^^^^^^ feature has been removed [INFO] [stdout] | [INFO] [stdout] = note: replaced with `#[rustc_box]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0557]: feature has been removed [INFO] [stdout] --> src/lib.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | #![feature(box_syntax, box_raw)] [INFO] [stdout] | ^^^^^^^^^^ feature has been removed [INFO] [stdout] | [INFO] [stdout] = note: replaced with `#[rustc_box]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `core::nonzero` [INFO] [stdout] --> src/lib.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 31 | use core::nonzero::NonZero; [INFO] [stdout] | ^^^^^^^ could not find `nonzero` in `core` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `alloc::heap` [INFO] [stdout] --> src/lib.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | use alloc::heap::deallocate; [INFO] [stdout] | ^^^^ could not find `heap` in `alloc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `core::nonzero` [INFO] [stdout] --> src/lib.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 31 | use core::nonzero::NonZero; [INFO] [stdout] | ^^^^^^^ could not find `nonzero` in `core` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `alloc::heap` [INFO] [stdout] --> src/lib.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | use alloc::heap::deallocate; [INFO] [stdout] | ^^^^ could not find `heap` in `alloc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `POST_DROP_USIZE` in module `mem` [INFO] [stdout] --> src/lib.rs:155:45 [INFO] [stdout] | [INFO] [stdout] 155 | ptr as *const () as usize != mem::POST_DROP_USIZE { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in `mem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `POST_DROP_USIZE` in module `mem` [INFO] [stdout] --> src/lib.rs:354:43 [INFO] [stdout] | [INFO] [stdout] 354 | ptr as *const () as usize != mem::POST_DROP_USIZE { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in `mem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: negative trait bounds are not yet fully implemented; use marker types for now [INFO] [stdout] --> src/lib.rs:47:17 [INFO] [stdout] | [INFO] [stdout] 47 | impl !marker::Send for Shared {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #68318 for more information [INFO] [stdout] = help: add `#![feature(negative_impls)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2024-05-21; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: negative trait bounds are not yet fully implemented; use marker types for now [INFO] [stdout] --> src/lib.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | impl !marker::Sync for Shared {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #68318 for more information [INFO] [stdout] = help: add `#![feature(negative_impls)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2024-05-21; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: negative trait bounds are not yet fully implemented; use marker types for now [INFO] [stdout] --> src/lib.rs:317:17 [INFO] [stdout] | [INFO] [stdout] 317 | impl !marker::Send for Weak2 {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #68318 for more information [INFO] [stdout] = help: add `#![feature(negative_impls)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2024-05-21; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: negative trait bounds are not yet fully implemented; use marker types for now [INFO] [stdout] --> src/lib.rs:318:17 [INFO] [stdout] | [INFO] [stdout] 318 | impl !marker::Sync for Weak2 {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #68318 for more information [INFO] [stdout] = help: add `#![feature(negative_impls)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2024-05-21; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `POST_DROP_USIZE` in module `mem` [INFO] [stdout] --> src/lib.rs:155:45 [INFO] [stdout] | [INFO] [stdout] 155 | ptr as *const () as usize != mem::POST_DROP_USIZE { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in `mem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `POST_DROP_USIZE` in module `mem` [INFO] [stdout] --> src/lib.rs:354:43 [INFO] [stdout] | [INFO] [stdout] 354 | ptr as *const () as usize != mem::POST_DROP_USIZE { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in `mem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `heap_api` [INFO] [stdout] --> src/lib.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | #![feature(heap_api, filling_drop)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `filling_drop` [INFO] [stdout] --> src/lib.rs:11:22 [INFO] [stdout] | [INFO] [stdout] 11 | #![feature(heap_api, filling_drop)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: negative trait bounds are not yet fully implemented; use marker types for now [INFO] [stdout] --> src/lib.rs:47:17 [INFO] [stdout] | [INFO] [stdout] 47 | impl !marker::Send for Shared {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #68318 for more information [INFO] [stdout] = help: add `#![feature(negative_impls)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2024-05-21; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: negative trait bounds are not yet fully implemented; use marker types for now [INFO] [stdout] --> src/lib.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | impl !marker::Sync for Shared {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #68318 for more information [INFO] [stdout] = help: add `#![feature(negative_impls)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2024-05-21; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: negative trait bounds are not yet fully implemented; use marker types for now [INFO] [stdout] --> src/lib.rs:317:17 [INFO] [stdout] | [INFO] [stdout] 317 | impl !marker::Send for Weak2 {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #68318 for more information [INFO] [stdout] = help: add `#![feature(negative_impls)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2024-05-21; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: negative trait bounds are not yet fully implemented; use marker types for now [INFO] [stdout] --> src/lib.rs:318:17 [INFO] [stdout] | [INFO] [stdout] 318 | impl !marker::Sync for Weak2 {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #68318 for more information [INFO] [stdout] = help: add `#![feature(negative_impls)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2024-05-21; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0374]: the trait `CoerceUnsized` may only be implemented for a coercion between structures [INFO] [stdout] --> src/lib.rs:50:1 [INFO] [stdout] | [INFO] [stdout] 50 | impl, U: ?Sized> CoerceUnsized> for Shared {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected a single field to be coerced, none found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0374]: the trait `CoerceUnsized` may only be implemented for a coercion between structures [INFO] [stdout] --> src/lib.rs:320:1 [INFO] [stdout] | [INFO] [stdout] 320 | impl, U: ?Sized> CoerceUnsized> for Weak2 {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected a single field to be coerced, none found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `heap_api` [INFO] [stdout] --> src/lib.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | #![feature(heap_api, filling_drop)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `filling_drop` [INFO] [stdout] --> src/lib.rs:11:22 [INFO] [stdout] | [INFO] [stdout] 11 | #![feature(heap_api, filling_drop)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0374]: the trait `CoerceUnsized` may only be implemented for a coercion between structures [INFO] [stdout] --> src/lib.rs:50:1 [INFO] [stdout] | [INFO] [stdout] 50 | impl, U: ?Sized> CoerceUnsized> for Shared {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected a single field to be coerced, none found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0374]: the trait `CoerceUnsized` may only be implemented for a coercion between structures [INFO] [stdout] --> src/lib.rs:320:1 [INFO] [stdout] | [INFO] [stdout] 320 | impl, U: ?Sized> CoerceUnsized> for Weak2 {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected a single field to be coerced, none found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | Shared::strong_count(&this) == 1 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot infer type of the type parameter `T` declared on the struct `Shared` [INFO] [stdout] | [INFO] [stdout] help: consider specifying the generic argument [INFO] [stdout] | [INFO] [stdout] 82 | Shared::::strong_count(&this) == 1 [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | Shared::weak_count(this) == 0 && Shared::strong_count(this) == 1 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ cannot infer type of the type parameter `T` declared on the struct `Shared` [INFO] [stdout] | [INFO] [stdout] help: consider specifying the generic argument [INFO] [stdout] | [INFO] [stdout] 102 | Shared::::weak_count(this) == 0 && Shared::strong_count(this) == 1 [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 18 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | Shared::strong_count(&this) == 1 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ cannot infer type of the type parameter `T` declared on the struct `Shared` [INFO] [stdout] | [INFO] [stdout] help: consider specifying the generic argument [INFO] [stdout] | [INFO] [stdout] 82 | Shared::::strong_count(&this) == 1 [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0374, E0425, E0432, E0557, E0635, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | Shared::weak_count(this) == 0 && Shared::strong_count(this) == 1 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ cannot infer type of the type parameter `T` declared on the struct `Shared` [INFO] [stdout] | [INFO] [stdout] help: consider specifying the generic argument [INFO] [stdout] | [INFO] [stdout] 102 | Shared::::weak_count(this) == 0 && Shared::strong_count(this) == 1 [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `shared` (lib) due to 19 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: the method `is_some` exists for enum `Option>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:425:25 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct Shared { [INFO] [stdout] | ---------------------------- doesn't satisfy `Shared<_>: Sized` [INFO] [stdout] ... [INFO] [stdout] 425 | assert!(y.upgrade().is_some()); [INFO] [stdout] | ^^^^^^^ method cannot be called on `Option>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `{type error}: Sized` [INFO] [stdout] which is required by `Shared<_>: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `is_none` exists for enum `Option>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:433:25 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct Shared { [INFO] [stdout] | ---------------------------- doesn't satisfy `Shared<_>: Sized` [INFO] [stdout] ... [INFO] [stdout] 433 | assert!(y.upgrade().is_none()); [INFO] [stdout] | ^^^^^^^ method cannot be called on `Option>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `{type error}: Sized` [INFO] [stdout] which is required by `Shared<_>: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: binary operation `==` cannot be applied to type `Result<_, Shared<_>>` [INFO] [stdout] --> src/lib.rs:471:5 [INFO] [stdout] | [INFO] [stdout] 471 | assert_eq!(Shared::try_unwrap(x), Ok(3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | Result<_, Shared<_>> [INFO] [stdout] | Result<{integer}, Shared<{integer}>> [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: binary operation `==` cannot be applied to type `Result<_, Shared<_>>` [INFO] [stdout] --> src/lib.rs:474:5 [INFO] [stdout] | [INFO] [stdout] 474 | assert_eq!(Shared::try_unwrap(x), Err(Shared::new(4))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | Result<_, Shared<_>> [INFO] [stdout] | Result<{integer}, Shared<{integer}>> [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: binary operation `==` cannot be applied to type `Result<_, Shared<_>>` [INFO] [stdout] --> src/lib.rs:477:5 [INFO] [stdout] | [INFO] [stdout] 477 | assert_eq!(Shared::try_unwrap(x), Ok(5)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | Result<_, Shared<_>> [INFO] [stdout] | Result<{integer}, Shared<{integer}>> [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `unwrap` exists for enum `Option>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:545:40 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct Shared { [INFO] [stdout] | ---------------------------- doesn't satisfy `Shared<_>: Sized` [INFO] [stdout] ... [INFO] [stdout] 545 | assert!(75 == *cow1_weak.upgrade().unwrap()); [INFO] [stdout] | ^^^^^^ method cannot be called on `Option>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `{type error}: Sized` [INFO] [stdout] which is required by `Shared<_>: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `is_none` exists for enum `Option>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:550:33 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct Shared { [INFO] [stdout] | ---------------------------- doesn't satisfy `Shared<_>: Sized` [INFO] [stdout] ... [INFO] [stdout] 550 | assert!(cow1_weak.upgrade().is_none()); [INFO] [stdout] | ^^^^^^^ method cannot be called on `Option>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `{type error}: Sized` [INFO] [stdout] which is required by `Shared<_>: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 25 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0369, E0374, E0425, E0432, E0557, E0599, E0635, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `shared` (lib test) due to 26 previous errors [INFO] running `Command { std: "docker" "inspect" "626ef5085cb83ef26a97e70e46e539a8f95991497ac8d3861f36b851819ea071", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "626ef5085cb83ef26a97e70e46e539a8f95991497ac8d3861f36b851819ea071", kill_on_drop: false }` [INFO] [stdout] 626ef5085cb83ef26a97e70e46e539a8f95991497ac8d3861f36b851819ea071