[INFO] fetching crate get-size2 0.6.2... [INFO] testing get-size2-0.6.2 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate get-size2 0.6.2 into /workspace/builds/worker-6-tc2/source [INFO] started tweaking crates.io crate get-size2 0.6.2 [INFO] finished tweaking crates.io crate get-size2 0.6.2 [INFO] tweaked toml for crates.io crate get-size2 0.6.2 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate get-size2 0.6.2 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate get-size2 0.6.2 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 898d065e465be2469e5692703ce900982f09f838658931b4a977911ed08b16d9 [INFO] running `Command { std: "docker" "start" "-a" "898d065e465be2469e5692703ce900982f09f838658931b4a977911ed08b16d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "898d065e465be2469e5692703ce900982f09f838658931b4a977911ed08b16d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "898d065e465be2469e5692703ce900982f09f838658931b4a977911ed08b16d9", kill_on_drop: false }` [INFO] [stdout] 898d065e465be2469e5692703ce900982f09f838658931b4a977911ed08b16d9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 027dd95d235881532a0b36df20a8e0349767302de0dae99c9a1a6b33ff0ed287 [INFO] running `Command { std: "docker" "start" "-a" "027dd95d235881532a0b36df20a8e0349767302de0dae99c9a1a6b33ff0ed287", kill_on_drop: false }` [INFO] [stderr] Compiling get-size2 v0.6.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.32s [INFO] running `Command { std: "docker" "inspect" "027dd95d235881532a0b36df20a8e0349767302de0dae99c9a1a6b33ff0ed287", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "027dd95d235881532a0b36df20a8e0349767302de0dae99c9a1a6b33ff0ed287", kill_on_drop: false }` [INFO] [stdout] 027dd95d235881532a0b36df20a8e0349767302de0dae99c9a1a6b33ff0ed287 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ad9ffd62d1803512f8a520bbc98d1a127d344ffe862d4603615f0bf1ebaa5bb3 [INFO] running `Command { std: "docker" "start" "-a" "ad9ffd62d1803512f8a520bbc98d1a127d344ffe862d4603615f0bf1ebaa5bb3", kill_on_drop: false }` [INFO] [stderr] Compiling get-size2 v0.6.2 (/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:296:9 [INFO] [stdout] | [INFO] [stdout] 296 | 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:312:9 [INFO] [stdout] | [INFO] [stdout] 312 | 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:451:14 [INFO] [stdout] | [INFO] [stdout] 451 | #[derive(GetSize)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get_size` in this scope [INFO] [stdout] --> src/test.rs:454:15 [INFO] [stdout] | [INFO] [stdout] 454 | #[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:464:14 [INFO] [stdout] | [INFO] [stdout] 464 | #[derive(GetSize)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `get_size` in this scope [INFO] [stdout] --> src/test.rs:467:15 [INFO] [stdout] | [INFO] [stdout] 467 | #[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:472:14 [INFO] [stdout] | [INFO] [stdout] 472 | #[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<'a, A, B>` 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<'a, A, B, C>` 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<'a, A, B, C>` 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<'a, A, B, C>` 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:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | 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` found for struct `Box<[u8]>` in the current scope [INFO] [stdout] --> src/test.rs:256:22 [INFO] [stdout] | [INFO] [stdout] 256 | 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] 256 - assert_eq!(boxed.get_heap_size(), size_of::() * boxed.len()); [INFO] [stdout] 256 + 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:259:22 [INFO] [stdout] | [INFO] [stdout] 259 | 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] 259 - assert_eq!(boxed.get_heap_size(), size_of::() * boxed.len()); [INFO] [stdout] 259 + 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:262:22 [INFO] [stdout] | [INFO] [stdout] 262 | 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] 262 - assert_eq!(boxed.get_heap_size(), size_of::<&u8>() * boxed.len()); [INFO] [stdout] 262 + 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:265:19 [INFO] [stdout] | [INFO] [stdout] 265 | 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] 265 - assert_eq!(rc.get_heap_size(), size_of::() * rc.len()); [INFO] [stdout] 265 + 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:268:20 [INFO] [stdout] | [INFO] [stdout] 268 | 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] 268 - assert_eq!(arc.get_heap_size(), size_of::() * arc.len()); [INFO] [stdout] 268 + 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:274:22 [INFO] [stdout] | [INFO] [stdout] 274 | 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] 274 - assert_eq!(boxed.get_heap_size(), size_of::() * boxed.len()); [INFO] [stdout] 274 + 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:277:19 [INFO] [stdout] | [INFO] [stdout] 277 | 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] 277 - assert_eq!(rc.get_heap_size(), size_of::() * boxed.len()); [INFO] [stdout] 277 + 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:280:20 [INFO] [stdout] | [INFO] [stdout] 280 | 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] 280 - assert_eq!(arc.get_heap_size(), size_of::() * boxed.len()); [INFO] [stdout] 280 + 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:288:20 [INFO] [stdout] | [INFO] [stdout] 288 | 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] 288 - assert_eq!(cow.get_heap_size(), 0); [INFO] [stdout] 288 + 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:291:20 [INFO] [stdout] | [INFO] [stdout] 291 | 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] 291 - assert_eq!(cow.get_heap_size(), 11); [INFO] [stdout] 291 + 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:344:21 [INFO] [stdout] | [INFO] [stdout] 344 | 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] 344 - assert_eq!(lock.get_heap_size(), 0); [INFO] [stdout] 344 + 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:354:21 [INFO] [stdout] | [INFO] [stdout] 354 | 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] 354 - lock_filled.get_heap_size(), [INFO] [stdout] 354 + 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:483:33 [INFO] [stdout] | [INFO] [stdout] 465 | enum WithIgnore { [INFO] [stdout] | --------------- method `get_heap_size` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 483 | 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:484:39 [INFO] [stdout] | [INFO] [stdout] 473 | enum WithoutIgnore { [INFO] [stdout] | ------------------ method `get_heap_size` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 484 | 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 63 previous errors [INFO] running `Command { std: "docker" "inspect" "ad9ffd62d1803512f8a520bbc98d1a127d344ffe862d4603615f0bf1ebaa5bb3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ad9ffd62d1803512f8a520bbc98d1a127d344ffe862d4603615f0bf1ebaa5bb3", kill_on_drop: false }` [INFO] [stdout] ad9ffd62d1803512f8a520bbc98d1a127d344ffe862d4603615f0bf1ebaa5bb3