[INFO] fetching crate get-size2 0.7.0... [INFO] testing get-size2-0.7.0 against 1.90.0 for beta-1.91-3 [INFO] extracting crate get-size2 0.7.0 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate get-size2 0.7.0 [INFO] finished tweaking crates.io crate get-size2 0.7.0 [INFO] tweaked toml for crates.io crate get-size2 0.7.0 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate get-size2 0.7.0 on toolchain 1.90.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.90.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate get-size2 0.7.0 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" "+1.90.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded manyhow v0.11.4 [INFO] [stderr] Downloaded manyhow-macros v0.11.4 [INFO] [stderr] Downloaded quote-use v0.8.4 [INFO] [stderr] Downloaded thin-vec v0.2.14 [INFO] [stderr] Downloaded proc-macro-utils v0.10.0 [INFO] [stderr] Downloaded quote-use-macros v0.8.4 [INFO] [stderr] Downloaded derive-where v1.6.0 [INFO] [stderr] Downloaded collection_literals v1.0.2 [INFO] [stderr] Downloaded attribute-derive-macro v0.10.3 [INFO] [stderr] Downloaded compact_str v0.9.0 [INFO] [stderr] Downloaded attribute-derive v0.10.3 [INFO] [stderr] Downloaded get-size-derive2 v0.7.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 130725b829073afa9d8879c34067e40a080ed46481930d3893ba95a9e92cddb0 [INFO] running `Command { std: "docker" "start" "-a" "130725b829073afa9d8879c34067e40a080ed46481930d3893ba95a9e92cddb0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "130725b829073afa9d8879c34067e40a080ed46481930d3893ba95a9e92cddb0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "130725b829073afa9d8879c34067e40a080ed46481930d3893ba95a9e92cddb0", kill_on_drop: false }` [INFO] [stdout] 130725b829073afa9d8879c34067e40a080ed46481930d3893ba95a9e92cddb0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e5b8814a37b5bd8dbd74ead106e81516593b292d653b008cc9576efc83fd7cab [INFO] running `Command { std: "docker" "start" "-a" "e5b8814a37b5bd8dbd74ead106e81516593b292d653b008cc9576efc83fd7cab", kill_on_drop: false }` [INFO] [stderr] Compiling get-size2 v0.7.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.40s [INFO] running `Command { std: "docker" "inspect" "e5b8814a37b5bd8dbd74ead106e81516593b292d653b008cc9576efc83fd7cab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e5b8814a37b5bd8dbd74ead106e81516593b292d653b008cc9576efc83fd7cab", kill_on_drop: false }` [INFO] [stdout] e5b8814a37b5bd8dbd74ead106e81516593b292d653b008cc9576efc83fd7cab [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9d2aa80fff6aa9b1c9365c25ebad30d3a42511920556e8e6a891883a39e805ef [INFO] running `Command { std: "docker" "start" "-a" "9d2aa80fff6aa9b1c9365c25ebad30d3a42511920556e8e6a891883a39e805ef", kill_on_drop: false }` [INFO] [stderr] Compiling get-size2 v0.7.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `get_size2` [INFO] [stdout] --> src/test.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use get_size2::*; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `get_size2` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `get_size2`, use `cargo add get_size2` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `chrono` [INFO] [stdout] --> src/test.rs:315:9 [INFO] [stdout] | [INFO] [stdout] 315 | use chrono::TimeZone; [INFO] [stdout] | ^^^^^^ function `chrono` is not a crate or module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `chrono` [INFO] [stdout] --> src/test.rs:331:9 [INFO] [stdout] | [INFO] [stdout] 331 | use chrono::TimeZone; [INFO] [stdout] | ^^^^^^ function `chrono` is not a crate or module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `GetSize` in this scope [INFO] [stdout] --> src/test.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(GetSize)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `GetSize` in this scope [INFO] [stdout] --> src/test.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(GetSize)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `GetSize` in this scope [INFO] [stdout] --> src/test.rs:42:10 [INFO] [stdout] | [INFO] [stdout] 42 | #[derive(GetSize)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get_size` in this scope [INFO] [stdout] --> src/test.rs:43:3 [INFO] [stdout] | [INFO] [stdout] 43 | #[get_size(ignore(B, C))] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get_size` in this scope [INFO] [stdout] --> src/test.rs:46:7 [INFO] [stdout] | [INFO] [stdout] 46 | #[get_size(ignore)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get_size` in this scope [INFO] [stdout] --> src/test.rs:48:7 [INFO] [stdout] | [INFO] [stdout] 48 | #[get_size(ignore)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `GetSize` in this scope [INFO] [stdout] --> src/test.rs:72:10 [INFO] [stdout] | [INFO] [stdout] 72 | #[derive(GetSize)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get_size` in this scope [INFO] [stdout] --> src/test.rs:73:3 [INFO] [stdout] | [INFO] [stdout] 73 | #[get_size(ignore(B, C))] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get_size` in this scope [INFO] [stdout] --> src/test.rs:76:7 [INFO] [stdout] | [INFO] [stdout] 76 | #[get_size(size = 100)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get_size` in this scope [INFO] [stdout] --> src/test.rs:78:7 [INFO] [stdout] | [INFO] [stdout] 78 | #[get_size(size_fn = get_size_helper)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `GetSize` in this scope [INFO] [stdout] --> src/test.rs:101:10 [INFO] [stdout] | [INFO] [stdout] 101 | #[derive(GetSize)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `GetSize` in this scope [INFO] [stdout] --> src/test.rs:119:10 [INFO] [stdout] | [INFO] [stdout] 119 | #[derive(GetSize)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `GetSize` in this scope [INFO] [stdout] --> src/test.rs:166:10 [INFO] [stdout] | [INFO] [stdout] 166 | #[derive(GetSize)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `GetSize` in this scope [INFO] [stdout] --> src/test.rs:194:17 [INFO] [stdout] | [INFO] [stdout] 194 | #[derive(Clone, GetSize)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `GetSize` in this scope [INFO] [stdout] --> src/test.rs:224:10 [INFO] [stdout] | [INFO] [stdout] 224 | #[derive(GetSize)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `GetSize` in this scope [INFO] [stdout] --> src/test.rs:243:10 [INFO] [stdout] | [INFO] [stdout] 243 | #[derive(GetSize)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `GetSize` in this scope [INFO] [stdout] --> src/test.rs:254:14 [INFO] [stdout] | [INFO] [stdout] 254 | #[derive(GetSize, Clone)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `GetSize` in this scope [INFO] [stdout] --> src/test.rs:470:14 [INFO] [stdout] | [INFO] [stdout] 470 | #[derive(GetSize)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get_size` in this scope [INFO] [stdout] --> src/test.rs:473:15 [INFO] [stdout] | [INFO] [stdout] 473 | #[get_size(ignore)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `GetSize` in this scope [INFO] [stdout] --> src/test.rs:483:14 [INFO] [stdout] | [INFO] [stdout] 483 | #[derive(GetSize)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get_size` in this scope [INFO] [stdout] --> src/test.rs:486:15 [INFO] [stdout] | [INFO] [stdout] 486 | #[get_size(ignore)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `GetSize` in this scope [INFO] [stdout] --> src/test.rs:491:14 [INFO] [stdout] | [INFO] [stdout] 491 | #[derive(GetSize)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for struct `TestStruct` in the current scope [INFO] [stdout] --> src/test.rs:23:21 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct TestStruct { [INFO] [stdout] | --------------------- method `get_heap_size` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 23 | assert_eq!(test.get_heap_size(), 5); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `TestStruct` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `&mut TestStruct` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `GetSize` defines an item `get_heap_size`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub trait GetSize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for struct `TestStructGenerics` in the current scope [INFO] [stdout] --> src/test.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct TestStructGenerics { [INFO] [stdout] | ----------------------------------- method `get_heap_size` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 39 | assert_eq!(test.get_heap_size(), 5); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `TestStructGenerics` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `&mut TestStructGenerics` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `GetSize` defines an item `get_heap_size`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub trait GetSize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for struct `TestStructGenericsIgnore` in the current scope [INFO] [stdout] --> src/test.rs:69:21 [INFO] [stdout] | [INFO] [stdout] 44 | struct TestStructGenericsIgnore { [INFO] [stdout] | ---------------------------------------- method `get_heap_size` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 69 | assert_eq!(test.get_heap_size(), 5); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `TestStructGenericsIgnore` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `&mut TestStructGenericsIgnore` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `GetSize` defines an item `get_heap_size`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub trait GetSize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for struct `TestStructHelpers` in the current scope [INFO] [stdout] --> src/test.rs:98:21 [INFO] [stdout] | [INFO] [stdout] 74 | struct TestStructHelpers { [INFO] [stdout] | --------------------------------- method `get_heap_size` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 98 | assert_eq!(test.get_heap_size(), 5 + 100 + 50); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `TestStructHelpers` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `&mut TestStructHelpers` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `GetSize` defines an item `get_heap_size`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub trait GetSize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for struct `TestStructGenericsLifetimes` in the current scope [INFO] [stdout] --> src/test.rs:116:21 [INFO] [stdout] | [INFO] [stdout] 102 | pub struct TestStructGenericsLifetimes<'a, A, B> { [INFO] [stdout] | ------------------------------------------------ method `get_heap_size` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 116 | assert_eq!(test.get_heap_size(), 5); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `TestStructGenericsLifetimes<'_, String, u64>` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `&mut TestStructGenericsLifetimes<'_, String, u64>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `GetSize` defines an item `get_heap_size`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub trait GetSize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for enum `TestEnum` in the current scope [INFO] [stdout] --> src/test.rs:133:21 [INFO] [stdout] | [INFO] [stdout] 120 | pub enum TestEnum { [INFO] [stdout] | ----------------- method `get_heap_size` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 133 | assert_eq!(test.get_heap_size(), 0); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `TestEnum` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `&mut TestEnum` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `GetSize` defines an item `get_heap_size`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub trait GetSize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for enum `TestEnum` in the current scope [INFO] [stdout] --> src/test.rs:136:21 [INFO] [stdout] | [INFO] [stdout] 120 | pub enum TestEnum { [INFO] [stdout] | ----------------- method `get_heap_size` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 136 | assert_eq!(test.get_heap_size(), 5); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `TestEnum` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `&mut TestEnum` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `GetSize` defines an item `get_heap_size`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub trait GetSize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for enum `TestEnum` in the current scope [INFO] [stdout] --> src/test.rs:139:21 [INFO] [stdout] | [INFO] [stdout] 120 | pub enum TestEnum { [INFO] [stdout] | ----------------- method `get_heap_size` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 139 | assert_eq!(test.get_heap_size(), 6); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `TestEnum` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `&mut TestEnum` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `GetSize` defines an item `get_heap_size`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub trait GetSize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for struct `String` in the current scope [INFO] [stdout] --> src/test.rs:142:18 [INFO] [stdout] | [INFO] [stdout] 142 | assert_eq!(s.get_heap_size(), 4); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `String` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `GetSize` which provides `get_heap_size` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use crate::GetSize; [INFO] [stdout] | [INFO] [stdout] help: there is a method `get_size` with a similar name [INFO] [stdout] | [INFO] [stdout] 142 - assert_eq!(s.get_heap_size(), 4); [INFO] [stdout] 142 + assert_eq!(s.get_size(), 4); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for struct `Vec<{integer}>` in the current scope [INFO] [stdout] --> src/test.rs:144:18 [INFO] [stdout] | [INFO] [stdout] 144 | assert_eq!(v.get_heap_size(), 16); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `Vec<{integer}>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `GetSize` which provides `get_heap_size` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use crate::GetSize; [INFO] [stdout] | [INFO] [stdout] help: there is a method `get_size` with a similar name [INFO] [stdout] | [INFO] [stdout] 144 - assert_eq!(v.get_heap_size(), 16); [INFO] [stdout] 144 + assert_eq!(v.get_size(), 16); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for enum `TestEnum` in the current scope [INFO] [stdout] --> src/test.rs:146:21 [INFO] [stdout] | [INFO] [stdout] 120 | pub enum TestEnum { [INFO] [stdout] | ----------------- method `get_heap_size` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 146 | assert_eq!(test.get_heap_size(), 4 + 16); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `TestEnum` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `&mut TestEnum` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `GetSize` defines an item `get_heap_size`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub trait GetSize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for enum `TestEnum` in the current scope [INFO] [stdout] --> src/test.rs:154:21 [INFO] [stdout] | [INFO] [stdout] 120 | pub enum TestEnum { [INFO] [stdout] | ----------------- method `get_heap_size` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 154 | assert_eq!(test.get_heap_size(), 11); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `TestEnum` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `&mut TestEnum` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `GetSize` defines an item `get_heap_size`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub trait GetSize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for enum `TestEnum` in the current scope [INFO] [stdout] --> src/test.rs:157:21 [INFO] [stdout] | [INFO] [stdout] 120 | pub enum TestEnum { [INFO] [stdout] | ----------------- method `get_heap_size` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 157 | assert_eq!(test.get_heap_size(), 0); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `TestEnum` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `&mut TestEnum` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `GetSize` defines an item `get_heap_size`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub trait GetSize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for enum `TestEnum` in the current scope [INFO] [stdout] --> src/test.rs:163:21 [INFO] [stdout] | [INFO] [stdout] 120 | pub enum TestEnum { [INFO] [stdout] | ----------------- method `get_heap_size` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 163 | assert_eq!(test.get_heap_size(), 5 + 5); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `TestEnum` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `&mut TestEnum` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `GetSize` defines an item `get_heap_size`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub trait GetSize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for enum `TestEnumGenerics` in the current scope [INFO] [stdout] --> src/test.rs:176:21 [INFO] [stdout] | [INFO] [stdout] 167 | pub enum TestEnumGenerics<'a, A, B, C> { [INFO] [stdout] | -------------------------------------- method `get_heap_size` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 176 | assert_eq!(test.get_heap_size(), 0); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `TestEnumGenerics<'_, u64, String, TestStruct>` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `&mut TestEnumGenerics<'_, u64, String, TestStruct>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `GetSize` defines an item `get_heap_size`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub trait GetSize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for enum `TestEnumGenerics` in the current scope [INFO] [stdout] --> src/test.rs:180:21 [INFO] [stdout] | [INFO] [stdout] 167 | pub enum TestEnumGenerics<'a, A, B, C> { [INFO] [stdout] | -------------------------------------- method `get_heap_size` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 180 | assert_eq!(test.get_heap_size(), 5); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `TestEnumGenerics<'_, u64, String, TestStruct>` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `&mut TestEnumGenerics<'_, u64, String, TestStruct>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `GetSize` defines an item `get_heap_size`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub trait GetSize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for enum `TestEnumGenerics` in the current scope [INFO] [stdout] --> src/test.rs:189:21 [INFO] [stdout] | [INFO] [stdout] 167 | pub enum TestEnumGenerics<'a, A, B, C> { [INFO] [stdout] | -------------------------------------- method `get_heap_size` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 189 | assert_eq!(test.get_heap_size(), 0); // It is a pointer. [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `TestEnumGenerics<'_, u64, String, TestStruct>` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `&mut TestEnumGenerics<'_, u64, String, TestStruct>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `GetSize` defines an item `get_heap_size`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub trait GetSize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for enum `Node` in the current scope [INFO] [stdout] --> src/test.rs:207:21 [INFO] [stdout] | [INFO] [stdout] 195 | enum Node [INFO] [stdout] | ------------ method `get_heap_size` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 207 | assert_eq!(test.get_heap_size(), 4); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `Node` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `&mut Node` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `GetSize` defines an item `get_heap_size`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub trait GetSize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for enum `Node` in the current scope [INFO] [stdout] --> src/test.rs:210:21 [INFO] [stdout] | [INFO] [stdout] 195 | enum Node [INFO] [stdout] | ------------ method `get_heap_size` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 210 | assert_eq!(test.get_heap_size(), 8 * 27); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `Node` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `&mut Node` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `GetSize` defines an item `get_heap_size`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub trait GetSize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for enum `Node` in the current scope [INFO] [stdout] --> src/test.rs:221:21 [INFO] [stdout] | [INFO] [stdout] 195 | enum Node [INFO] [stdout] | ------------ method `get_heap_size` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 221 | assert_eq!(test.get_heap_size(), 8 * std::mem::size_of::>()); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `Node` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `&mut Node` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `GetSize` defines an item `get_heap_size`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub trait GetSize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for enum `TestEnum2` in the current scope [INFO] [stdout] --> src/test.rs:234:21 [INFO] [stdout] | [INFO] [stdout] 225 | pub enum TestEnum2 { [INFO] [stdout] | ------------------ method `get_heap_size` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 234 | assert_eq!(test.get_heap_size(), 0); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `TestEnum2` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `&mut TestEnum2` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `GetSize` defines an item `get_heap_size`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub trait GetSize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for enum `TestEnum2` in the current scope [INFO] [stdout] --> src/test.rs:237:21 [INFO] [stdout] | [INFO] [stdout] 225 | pub enum TestEnum2 { [INFO] [stdout] | ------------------ method `get_heap_size` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 237 | assert_eq!(test.get_heap_size(), 0); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `TestEnum2` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `&mut TestEnum2` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `GetSize` defines an item `get_heap_size`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub trait GetSize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for enum `TestEnum2` in the current scope [INFO] [stdout] --> src/test.rs:240:21 [INFO] [stdout] | [INFO] [stdout] 225 | pub enum TestEnum2 { [INFO] [stdout] | ------------------ method `get_heap_size` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 240 | assert_eq!(test.get_heap_size(), 0); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `TestEnum2` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `&mut TestEnum2` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `GetSize` defines an item `get_heap_size`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub trait GetSize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `get_stack_size` found for type `u64` in the current scope [INFO] [stdout] --> src/test.rs:249:21 [INFO] [stdout] | [INFO] [stdout] 249 | assert_eq!(u64::get_stack_size(), test.get_size()); [INFO] [stdout] | ^^^^^^^^^^^^^^ function or associated item not found in `u64` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `GetSize` which provides `get_stack_size` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use crate::GetSize; [INFO] [stdout] | [INFO] [stdout] help: there is a method `get_size` with a similar name [INFO] [stdout] | [INFO] [stdout] 249 - assert_eq!(u64::get_stack_size(), test.get_size()); [INFO] [stdout] 249 + assert_eq!(u64::get_size(), test.get_size()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_size` found for struct `TestNewType` in the current scope [INFO] [stdout] --> src/test.rs:249:44 [INFO] [stdout] | [INFO] [stdout] 244 | pub struct TestNewType(u64); [INFO] [stdout] | ---------------------- method `get_size` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 249 | assert_eq!(u64::get_stack_size(), test.get_size()); [INFO] [stdout] | ^^^^^^^^ method not found in `TestNewType` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | fn get_size(&self) -> usize { [INFO] [stdout] | -------- the method is available for `&mut TestNewType` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `GetSize` defines an item `get_size`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub trait GetSize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size_with_tracker` found for tuple `(RcWrapper, RcWrapper)` in the current scope [INFO] [stdout] --> src/test.rs:260:42 [INFO] [stdout] | [INFO] [stdout] 260 | (shared.clone(), shared.clone()).get_heap_size_with_tracker(StandardTracker::new()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `(RcWrapper, RcWrapper)` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | fn get_heap_size_with_tracker(&self, tracker: T) -> (usize, T) { [INFO] [stdout] | -------------------------- the method is available for `&mut (RcWrapper, RcWrapper)` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `GetSize` defines an item `get_heap_size_with_tracker`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub trait GetSize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for struct `RcWrapper` in the current scope [INFO] [stdout] --> src/test.rs:261:29 [INFO] [stdout] | [INFO] [stdout] 255 | struct RcWrapper(Rc); [INFO] [stdout] | ---------------- method `get_heap_size` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 261 | assert_eq!(size, shared.get_heap_size()); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `RcWrapper` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `&mut RcWrapper` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `GetSize` defines an item `get_heap_size`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub trait GetSize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size_with_tracker` found for struct `Vec` in the current scope [INFO] [stdout] --> src/test.rs:264:25 [INFO] [stdout] | [INFO] [stdout] 264 | let (size, _) = vec.get_heap_size_with_tracker(StandardTracker::new()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `Vec` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | fn get_heap_size_with_tracker(&self, tracker: T) -> (usize, T) { [INFO] [stdout] | -------------------------- the method is available for `&mut Vec` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `GetSize` defines an item `get_heap_size_with_tracker`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub trait GetSize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for struct `RcWrapper` in the current scope [INFO] [stdout] --> src/test.rs:267:57 [INFO] [stdout] | [INFO] [stdout] 255 | struct RcWrapper(Rc); [INFO] [stdout] | ---------------- method `get_heap_size` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 267 | (std::mem::size_of::>() * 100) + shared.get_heap_size() [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `RcWrapper` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `&mut RcWrapper` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `GetSize` defines an item `get_heap_size`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub trait GetSize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for struct `Box<[u8]>` in the current scope [INFO] [stdout] --> src/test.rs:275:22 [INFO] [stdout] | [INFO] [stdout] 275 | assert_eq!(boxed.get_heap_size(), size_of::() * boxed.len()); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `Box<[u8]>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `GetSize` which provides `get_heap_size` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use crate::GetSize; [INFO] [stdout] | [INFO] [stdout] help: there is a method `get_size` with a similar name [INFO] [stdout] | [INFO] [stdout] 275 - assert_eq!(boxed.get_heap_size(), size_of::() * boxed.len()); [INFO] [stdout] 275 + assert_eq!(boxed.get_size(), size_of::() * boxed.len()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for struct `Box<[u32]>` in the current scope [INFO] [stdout] --> src/test.rs:278:22 [INFO] [stdout] | [INFO] [stdout] 278 | assert_eq!(boxed.get_heap_size(), size_of::() * boxed.len()); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `Box<[u32]>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `GetSize` which provides `get_heap_size` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use crate::GetSize; [INFO] [stdout] | [INFO] [stdout] help: there is a method `get_size` with a similar name [INFO] [stdout] | [INFO] [stdout] 278 - assert_eq!(boxed.get_heap_size(), size_of::() * boxed.len()); [INFO] [stdout] 278 + assert_eq!(boxed.get_size(), size_of::() * boxed.len()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for struct `Box<[&u8]>` in the current scope [INFO] [stdout] --> src/test.rs:281:22 [INFO] [stdout] | [INFO] [stdout] 281 | assert_eq!(boxed.get_heap_size(), size_of::<&u8>() * boxed.len()); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `Box<[&u8]>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `GetSize` which provides `get_heap_size` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use crate::GetSize; [INFO] [stdout] | [INFO] [stdout] help: there is a method `get_size` with a similar name [INFO] [stdout] | [INFO] [stdout] 281 - assert_eq!(boxed.get_heap_size(), size_of::<&u8>() * boxed.len()); [INFO] [stdout] 281 + assert_eq!(boxed.get_size(), size_of::<&u8>() * boxed.len()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for struct `Rc<[u8]>` in the current scope [INFO] [stdout] --> src/test.rs:284:19 [INFO] [stdout] | [INFO] [stdout] 284 | assert_eq!(rc.get_heap_size(), size_of::() * rc.len()); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `Rc<[u8]>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `GetSize` which provides `get_heap_size` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use crate::GetSize; [INFO] [stdout] | [INFO] [stdout] help: there is a method `get_size` with a similar name [INFO] [stdout] | [INFO] [stdout] 284 - assert_eq!(rc.get_heap_size(), size_of::() * rc.len()); [INFO] [stdout] 284 + assert_eq!(rc.get_size(), size_of::() * rc.len()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for struct `Arc<[u8]>` in the current scope [INFO] [stdout] --> src/test.rs:287:20 [INFO] [stdout] | [INFO] [stdout] 287 | assert_eq!(arc.get_heap_size(), size_of::() * arc.len()); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `Arc<[u8]>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `GetSize` which provides `get_heap_size` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use crate::GetSize; [INFO] [stdout] | [INFO] [stdout] help: there is a method `get_size` with a similar name [INFO] [stdout] | [INFO] [stdout] 287 - assert_eq!(arc.get_heap_size(), size_of::() * arc.len()); [INFO] [stdout] 287 + assert_eq!(arc.get_size(), size_of::() * arc.len()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for struct `Box` in the current scope [INFO] [stdout] --> src/test.rs:293:22 [INFO] [stdout] | [INFO] [stdout] 293 | assert_eq!(boxed.get_heap_size(), size_of::() * boxed.len()); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `Box` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `GetSize` which provides `get_heap_size` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use crate::GetSize; [INFO] [stdout] | [INFO] [stdout] help: there is a method `get_size` with a similar name [INFO] [stdout] | [INFO] [stdout] 293 - assert_eq!(boxed.get_heap_size(), size_of::() * boxed.len()); [INFO] [stdout] 293 + assert_eq!(boxed.get_size(), size_of::() * boxed.len()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for struct `Rc` in the current scope [INFO] [stdout] --> src/test.rs:296:19 [INFO] [stdout] | [INFO] [stdout] 296 | assert_eq!(rc.get_heap_size(), size_of::() * boxed.len()); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `Rc` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `GetSize` which provides `get_heap_size` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use crate::GetSize; [INFO] [stdout] | [INFO] [stdout] help: there is a method `get_size` with a similar name [INFO] [stdout] | [INFO] [stdout] 296 - assert_eq!(rc.get_heap_size(), size_of::() * boxed.len()); [INFO] [stdout] 296 + assert_eq!(rc.get_size(), size_of::() * boxed.len()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for struct `Arc` in the current scope [INFO] [stdout] --> src/test.rs:299:20 [INFO] [stdout] | [INFO] [stdout] 299 | assert_eq!(arc.get_heap_size(), size_of::() * boxed.len()); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `Arc` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `GetSize` which provides `get_heap_size` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use crate::GetSize; [INFO] [stdout] | [INFO] [stdout] help: there is a method `get_size` with a similar name [INFO] [stdout] | [INFO] [stdout] 299 - assert_eq!(arc.get_heap_size(), size_of::() * boxed.len()); [INFO] [stdout] 299 + assert_eq!(arc.get_size(), size_of::() * boxed.len()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for enum `Cow<'_, str>` in the current scope [INFO] [stdout] --> src/test.rs:307:20 [INFO] [stdout] | [INFO] [stdout] 307 | assert_eq!(cow.get_heap_size(), 0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `Cow<'_, str>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `GetSize` which provides `get_heap_size` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use crate::GetSize; [INFO] [stdout] | [INFO] [stdout] help: there is a method `get_size` with a similar name [INFO] [stdout] | [INFO] [stdout] 307 - assert_eq!(cow.get_heap_size(), 0); [INFO] [stdout] 307 + assert_eq!(cow.get_size(), 0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for enum `Cow<'_, str>` in the current scope [INFO] [stdout] --> src/test.rs:310:20 [INFO] [stdout] | [INFO] [stdout] 310 | assert_eq!(cow.get_heap_size(), 11); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `Cow<'_, str>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `GetSize` which provides `get_heap_size` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use crate::GetSize; [INFO] [stdout] | [INFO] [stdout] help: there is a method `get_size` with a similar name [INFO] [stdout] | [INFO] [stdout] 310 - assert_eq!(cow.get_heap_size(), 11); [INFO] [stdout] 310 + assert_eq!(cow.get_size(), 11); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for struct `OnceLock` in the current scope [INFO] [stdout] --> src/test.rs:363:21 [INFO] [stdout] | [INFO] [stdout] 363 | assert_eq!(lock.get_heap_size(), 0); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `OnceLock` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `GetSize` which provides `get_heap_size` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use crate::GetSize; [INFO] [stdout] | [INFO] [stdout] help: there is a method `get_size` with a similar name [INFO] [stdout] | [INFO] [stdout] 363 - assert_eq!(lock.get_heap_size(), 0); [INFO] [stdout] 363 + assert_eq!(lock.get_size(), 0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for struct `OnceLock` in the current scope [INFO] [stdout] --> src/test.rs:373:21 [INFO] [stdout] | [INFO] [stdout] 373 | lock_filled.get_heap_size(), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `OnceLock` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `GetSize` which provides `get_heap_size` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use crate::GetSize; [INFO] [stdout] | [INFO] [stdout] help: there is a method `get_size` with a similar name [INFO] [stdout] | [INFO] [stdout] 373 - lock_filled.get_heap_size(), [INFO] [stdout] 373 + lock_filled.get_size(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for enum `WithIgnore` in the current scope [INFO] [stdout] --> src/test.rs:502:33 [INFO] [stdout] | [INFO] [stdout] 484 | enum WithIgnore { [INFO] [stdout] | --------------- method `get_heap_size` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 502 | let size_with_ignore = with.get_heap_size(); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `WithIgnore` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `&mut WithIgnore` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `GetSize` defines an item `get_heap_size`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub trait GetSize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_heap_size` found for enum `WithoutIgnore` in the current scope [INFO] [stdout] --> src/test.rs:503:39 [INFO] [stdout] | [INFO] [stdout] 492 | enum WithoutIgnore { [INFO] [stdout] | ------------------ method `get_heap_size` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 503 | let size_without_ignore = without.get_heap_size(); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `WithoutIgnore` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_heap_size(&self) -> usize { [INFO] [stdout] | ------------- the method is available for `&mut WithoutIgnore` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `GetSize` defines an item `get_heap_size`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub trait GetSize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `get-size2` (lib test) due to 68 previous errors [INFO] running `Command { std: "docker" "inspect" "9d2aa80fff6aa9b1c9365c25ebad30d3a42511920556e8e6a891883a39e805ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9d2aa80fff6aa9b1c9365c25ebad30d3a42511920556e8e6a891883a39e805ef", kill_on_drop: false }` [INFO] [stdout] 9d2aa80fff6aa9b1c9365c25ebad30d3a42511920556e8e6a891883a39e805ef