[INFO] fetching crate get-size2 0.7.1...
[INFO] testing get-size2-0.7.1 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-7
[INFO] extracting crate get-size2 0.7.1 into /workspace/builds/worker-3-tc1/source
[INFO] started tweaking crates.io crate get-size2 0.7.1
[INFO] finished tweaking crates.io crate get-size2 0.7.1
[INFO] tweaked toml for crates.io crate get-size2 0.7.1 written to /workspace/builds/worker-3-tc1/source/Cargo.toml
[INFO] validating manifest of crates.io crate get-size2 0.7.1 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate crates.io crate get-size2 0.7.1 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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] Updating crates.io index
[INFO] [stderr] Downloading crates ...
[INFO] [stderr] Downloaded quote-use v0.8.4
[INFO] [stderr] Downloaded attribute-derive v0.10.5
[INFO] [stderr] Downloaded manyhow v0.11.4
[INFO] [stderr] Downloaded get-size-derive2 v0.7.1
[INFO] [stderr] Downloaded quote-use-macros v0.8.4
[INFO] [stderr] Downloaded collection_literals v1.0.3
[INFO] [stderr] Downloaded derive-where v1.6.0
[INFO] [stderr] Downloaded interpolator v0.5.0
[INFO] [stderr] Downloaded proc-macro-utils v0.10.0
[INFO] [stderr] Downloaded attribute-derive-macro v0.10.5
[INFO] [stderr] Downloaded manyhow-macros v0.11.4
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] f15e7ff4291aa03d8abdb1b11141f85cc32fff69730f712ab404a4263034d51f
[INFO] running `Command { std: "docker" "start" "-a" "f15e7ff4291aa03d8abdb1b11141f85cc32fff69730f712ab404a4263034d51f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "f15e7ff4291aa03d8abdb1b11141f85cc32fff69730f712ab404a4263034d51f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f15e7ff4291aa03d8abdb1b11141f85cc32fff69730f712ab404a4263034d51f", kill_on_drop: false }`
[INFO] [stdout] f15e7ff4291aa03d8abdb1b11141f85cc32fff69730f712ab404a4263034d51f
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] d68d2043c09f4d70101c3ff5e299aac22d81dc86d1a482804d3bf62ecaaedabb
[INFO] running `Command { std: "docker" "start" "-a" "d68d2043c09f4d70101c3ff5e299aac22d81dc86d1a482804d3bf62ecaaedabb", kill_on_drop: false }`
[INFO] [stderr] Compiling get-size2 v0.7.1 (/opt/rustwide/workdir)
[INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.43s
[INFO] running `Command { std: "docker" "inspect" "d68d2043c09f4d70101c3ff5e299aac22d81dc86d1a482804d3bf62ecaaedabb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d68d2043c09f4d70101c3ff5e299aac22d81dc86d1a482804d3bf62ecaaedabb", kill_on_drop: false }`
[INFO] [stdout] d68d2043c09f4d70101c3ff5e299aac22d81dc86d1a482804d3bf62ecaaedabb
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 560dfe9804dce76a2410ba0aedaaa81b3ad5e352747c77a1b43454e0a22123e7
[INFO] running `Command { std: "docker" "start" "-a" "560dfe9804dce76a2410ba0aedaaa81b3ad5e352747c77a1b43454e0a22123e7", kill_on_drop: false }`
[INFO] [stderr] Compiling get-size2 v0.7.1 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0432]: unresolved import `get_size2`
[INFO] [stdout] --> src/test.rs:9:5
[INFO] [stdout] |
[INFO] [stdout] 9 | 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:316:9
[INFO] [stdout] |
[INFO] [stdout] 316 | 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:332:9
[INFO] [stdout] |
[INFO] [stdout] 332 | 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:11:10
[INFO] [stdout] |
[INFO] [stdout] 11 | #[derive(GetSize)]
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: cannot find derive macro `GetSize` in this scope
[INFO] [stdout] --> src/test.rs:27:10
[INFO] [stdout] |
[INFO] [stdout] 27 | #[derive(GetSize)]
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: cannot find derive macro `GetSize` in this scope
[INFO] [stdout] --> src/test.rs:43:10
[INFO] [stdout] |
[INFO] [stdout] 43 | #[derive(GetSize)]
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: cannot find attribute `get_size` in this scope
[INFO] [stdout] --> src/test.rs:44:3
[INFO] [stdout] |
[INFO] [stdout] 44 | #[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:47:7
[INFO] [stdout] |
[INFO] [stdout] 47 | #[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:49:7
[INFO] [stdout] |
[INFO] [stdout] 49 | #[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:73:10
[INFO] [stdout] |
[INFO] [stdout] 73 | #[derive(GetSize)]
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: cannot find attribute `get_size` in this scope
[INFO] [stdout] --> src/test.rs:74:3
[INFO] [stdout] |
[INFO] [stdout] 74 | #[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:77:7
[INFO] [stdout] |
[INFO] [stdout] 77 | #[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:79:7
[INFO] [stdout] |
[INFO] [stdout] 79 | #[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:102:10
[INFO] [stdout] |
[INFO] [stdout] 102 | #[derive(GetSize)]
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: cannot find derive macro `GetSize` in this scope
[INFO] [stdout] --> src/test.rs:120:10
[INFO] [stdout] |
[INFO] [stdout] 120 | #[derive(GetSize)]
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: cannot find derive macro `GetSize` in this scope
[INFO] [stdout] --> src/test.rs:167:10
[INFO] [stdout] |
[INFO] [stdout] 167 | #[derive(GetSize)]
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: cannot find derive macro `GetSize` in this scope
[INFO] [stdout] --> src/test.rs:195:17
[INFO] [stdout] |
[INFO] [stdout] 195 | #[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:225:10
[INFO] [stdout] |
[INFO] [stdout] 225 | #[derive(GetSize)]
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: cannot find derive macro `GetSize` in this scope
[INFO] [stdout] --> src/test.rs:244:10
[INFO] [stdout] |
[INFO] [stdout] 244 | #[derive(GetSize)]
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: cannot find derive macro `GetSize` in this scope
[INFO] [stdout] --> src/test.rs:255:14
[INFO] [stdout] |
[INFO] [stdout] 255 | #[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:471:14
[INFO] [stdout] |
[INFO] [stdout] 471 | #[derive(GetSize)]
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: cannot find attribute `get_size` in this scope
[INFO] [stdout] --> src/test.rs:474:15
[INFO] [stdout] |
[INFO] [stdout] 474 | #[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:484:14
[INFO] [stdout] |
[INFO] [stdout] 484 | #[derive(GetSize)]
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: cannot find attribute `get_size` in this scope
[INFO] [stdout] --> src/test.rs:487:15
[INFO] [stdout] |
[INFO] [stdout] 487 | #[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:492:14
[INFO] [stdout] |
[INFO] [stdout] 492 | #[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:24:21
[INFO] [stdout] |
[INFO] [stdout] 12 | pub struct TestStruct {
[INFO] [stdout] | --------------------- method `get_heap_size` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 24 | assert_eq!(test.get_heap_size(), 5);
[INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `TestStruct`
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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:37:1
[INFO] [stdout] |
[INFO] [stdout] 37 | 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:40:21
[INFO] [stdout] |
[INFO] [stdout] 28 | pub struct TestStructGenerics {
[INFO] [stdout] | ----------------------------------- method `get_heap_size` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 40 | assert_eq!(test.get_heap_size(), 5);
[INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `TestStructGenerics`
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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:37:1
[INFO] [stdout] |
[INFO] [stdout] 37 | 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:70:21
[INFO] [stdout] |
[INFO] [stdout] 45 | struct TestStructGenericsIgnore {
[INFO] [stdout] | ---------------------------------------- method `get_heap_size` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 70 | assert_eq!(test.get_heap_size(), 5);
[INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `TestStructGenericsIgnore`
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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:37:1
[INFO] [stdout] |
[INFO] [stdout] 37 | 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:99:21
[INFO] [stdout] |
[INFO] [stdout] 75 | struct TestStructHelpers {
[INFO] [stdout] | --------------------------------- method `get_heap_size` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 99 | assert_eq!(test.get_heap_size(), 5 + 100 + 50);
[INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `TestStructHelpers`
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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:37:1
[INFO] [stdout] |
[INFO] [stdout] 37 | 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:117:21
[INFO] [stdout] |
[INFO] [stdout] 103 | pub struct TestStructGenericsLifetimes<'a, A, B> {
[INFO] [stdout] | ------------------------------------------------ method `get_heap_size` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 117 | assert_eq!(test.get_heap_size(), 5);
[INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `TestStructGenericsLifetimes<'_, String, u64>`
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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:37:1
[INFO] [stdout] |
[INFO] [stdout] 37 | 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:134:21
[INFO] [stdout] |
[INFO] [stdout] 121 | pub enum TestEnum {
[INFO] [stdout] | ----------------- method `get_heap_size` not found for this enum
[INFO] [stdout] ...
[INFO] [stdout] 134 | assert_eq!(test.get_heap_size(), 0);
[INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `TestEnum`
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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:37:1
[INFO] [stdout] |
[INFO] [stdout] 37 | 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:137:21
[INFO] [stdout] |
[INFO] [stdout] 121 | pub enum TestEnum {
[INFO] [stdout] | ----------------- method `get_heap_size` not found for this enum
[INFO] [stdout] ...
[INFO] [stdout] 137 | assert_eq!(test.get_heap_size(), 5);
[INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `TestEnum`
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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:37:1
[INFO] [stdout] |
[INFO] [stdout] 37 | 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:140:21
[INFO] [stdout] |
[INFO] [stdout] 121 | pub enum TestEnum {
[INFO] [stdout] | ----------------- method `get_heap_size` not found for this enum
[INFO] [stdout] ...
[INFO] [stdout] 140 | assert_eq!(test.get_heap_size(), 6);
[INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `TestEnum`
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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:37:1
[INFO] [stdout] |
[INFO] [stdout] 37 | 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:143:18
[INFO] [stdout] |
[INFO] [stdout] 143 | assert_eq!(s.get_heap_size(), 4);
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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] 143 - assert_eq!(s.get_heap_size(), 4);
[INFO] [stdout] 143 + 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:145:18
[INFO] [stdout] |
[INFO] [stdout] 145 | assert_eq!(v.get_heap_size(), 16);
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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] 145 - assert_eq!(v.get_heap_size(), 16);
[INFO] [stdout] 145 + 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:147:21
[INFO] [stdout] |
[INFO] [stdout] 121 | pub enum TestEnum {
[INFO] [stdout] | ----------------- method `get_heap_size` not found for this enum
[INFO] [stdout] ...
[INFO] [stdout] 147 | assert_eq!(test.get_heap_size(), 4 + 16);
[INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `TestEnum`
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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:37:1
[INFO] [stdout] |
[INFO] [stdout] 37 | 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:155:21
[INFO] [stdout] |
[INFO] [stdout] 121 | pub enum TestEnum {
[INFO] [stdout] | ----------------- method `get_heap_size` not found for this enum
[INFO] [stdout] ...
[INFO] [stdout] 155 | assert_eq!(test.get_heap_size(), 11);
[INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `TestEnum`
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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:37:1
[INFO] [stdout] |
[INFO] [stdout] 37 | 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:158:21
[INFO] [stdout] |
[INFO] [stdout] 121 | pub enum TestEnum {
[INFO] [stdout] | ----------------- method `get_heap_size` not found for this enum
[INFO] [stdout] ...
[INFO] [stdout] 158 | assert_eq!(test.get_heap_size(), 0);
[INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `TestEnum`
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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:37:1
[INFO] [stdout] |
[INFO] [stdout] 37 | 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:164:21
[INFO] [stdout] |
[INFO] [stdout] 121 | pub enum TestEnum {
[INFO] [stdout] | ----------------- method `get_heap_size` not found for this enum
[INFO] [stdout] ...
[INFO] [stdout] 164 | assert_eq!(test.get_heap_size(), 5 + 5);
[INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `TestEnum`
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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:37:1
[INFO] [stdout] |
[INFO] [stdout] 37 | 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:177:21
[INFO] [stdout] |
[INFO] [stdout] 168 | pub enum TestEnumGenerics<'a, A, B, C> {
[INFO] [stdout] | -------------------------------------- method `get_heap_size` not found for this enum
[INFO] [stdout] ...
[INFO] [stdout] 177 | assert_eq!(test.get_heap_size(), 0);
[INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `TestEnumGenerics<'_, u64, String, TestStruct>`
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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:37:1
[INFO] [stdout] |
[INFO] [stdout] 37 | 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:181:21
[INFO] [stdout] |
[INFO] [stdout] 168 | pub enum TestEnumGenerics<'a, A, B, C> {
[INFO] [stdout] | -------------------------------------- method `get_heap_size` not found for this enum
[INFO] [stdout] ...
[INFO] [stdout] 181 | assert_eq!(test.get_heap_size(), 5);
[INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `TestEnumGenerics<'_, u64, String, TestStruct>`
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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:37:1
[INFO] [stdout] |
[INFO] [stdout] 37 | 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:190:21
[INFO] [stdout] |
[INFO] [stdout] 168 | pub enum TestEnumGenerics<'a, A, B, C> {
[INFO] [stdout] | -------------------------------------- method `get_heap_size` not found for this enum
[INFO] [stdout] ...
[INFO] [stdout] 190 | 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:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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:37:1
[INFO] [stdout] |
[INFO] [stdout] 37 | 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:208:21
[INFO] [stdout] |
[INFO] [stdout] 196 | enum Node
[INFO] [stdout] | ------------ method `get_heap_size` not found for this enum
[INFO] [stdout] ...
[INFO] [stdout] 208 | assert_eq!(test.get_heap_size(), 4);
[INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `Node`
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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:37:1
[INFO] [stdout] |
[INFO] [stdout] 37 | 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:211:21
[INFO] [stdout] |
[INFO] [stdout] 196 | enum Node
[INFO] [stdout] | ------------ method `get_heap_size` not found for this enum
[INFO] [stdout] ...
[INFO] [stdout] 211 | assert_eq!(test.get_heap_size(), 8 * 27);
[INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `Node`
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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:37:1
[INFO] [stdout] |
[INFO] [stdout] 37 | 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:222:21
[INFO] [stdout] |
[INFO] [stdout] 196 | enum Node
[INFO] [stdout] | ------------ method `get_heap_size` not found for this enum
[INFO] [stdout] ...
[INFO] [stdout] 222 | 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:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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:37:1
[INFO] [stdout] |
[INFO] [stdout] 37 | 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:235:21
[INFO] [stdout] |
[INFO] [stdout] 226 | pub enum TestEnum2 {
[INFO] [stdout] | ------------------ method `get_heap_size` not found for this enum
[INFO] [stdout] ...
[INFO] [stdout] 235 | assert_eq!(test.get_heap_size(), 0);
[INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `TestEnum2`
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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:37:1
[INFO] [stdout] |
[INFO] [stdout] 37 | 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:238:21
[INFO] [stdout] |
[INFO] [stdout] 226 | pub enum TestEnum2 {
[INFO] [stdout] | ------------------ method `get_heap_size` not found for this enum
[INFO] [stdout] ...
[INFO] [stdout] 238 | assert_eq!(test.get_heap_size(), 0);
[INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `TestEnum2`
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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:37:1
[INFO] [stdout] |
[INFO] [stdout] 37 | 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:241:21
[INFO] [stdout] |
[INFO] [stdout] 226 | pub enum TestEnum2 {
[INFO] [stdout] | ------------------ method `get_heap_size` not found for this enum
[INFO] [stdout] ...
[INFO] [stdout] 241 | assert_eq!(test.get_heap_size(), 0);
[INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `TestEnum2`
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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:37:1
[INFO] [stdout] |
[INFO] [stdout] 37 | 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:250:21
[INFO] [stdout] |
[INFO] [stdout] 250 | 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] 250 - assert_eq!(u64::get_stack_size(), test.get_size());
[INFO] [stdout] 250 + 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:250:44
[INFO] [stdout] |
[INFO] [stdout] 245 | pub struct TestNewType(u64);
[INFO] [stdout] | ---------------------- method `get_size` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 250 | assert_eq!(u64::get_stack_size(), test.get_size());
[INFO] [stdout] | ^^^^^^^^ method not found in `TestNewType`
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:67:8
[INFO] [stdout] |
[INFO] [stdout] 67 | 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:37:1
[INFO] [stdout] |
[INFO] [stdout] 37 | 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:261:42
[INFO] [stdout] |
[INFO] [stdout] 261 | (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:59:8
[INFO] [stdout] |
[INFO] [stdout] 59 | 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:37:1
[INFO] [stdout] |
[INFO] [stdout] 37 | 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:262:29
[INFO] [stdout] |
[INFO] [stdout] 256 | struct RcWrapper(Rc);
[INFO] [stdout] | ---------------- method `get_heap_size` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 262 | assert_eq!(size, shared.get_heap_size());
[INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `RcWrapper`
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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:37:1
[INFO] [stdout] |
[INFO] [stdout] 37 | 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:265:25
[INFO] [stdout] |
[INFO] [stdout] 265 | let (size, _) = vec.get_heap_size_with_tracker(StandardTracker::new());
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `Vec`
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:59:8
[INFO] [stdout] |
[INFO] [stdout] 59 | 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:37:1
[INFO] [stdout] |
[INFO] [stdout] 37 | 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:268:57
[INFO] [stdout] |
[INFO] [stdout] 256 | struct RcWrapper(Rc);
[INFO] [stdout] | ---------------- method `get_heap_size` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 268 | (std::mem::size_of::>() * 100) + shared.get_heap_size()
[INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `RcWrapper`
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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:37:1
[INFO] [stdout] |
[INFO] [stdout] 37 | 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:276:22
[INFO] [stdout] |
[INFO] [stdout] 276 | assert_eq!(boxed.get_heap_size(), size_of::() * boxed.len());
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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] 276 - assert_eq!(boxed.get_heap_size(), size_of::() * boxed.len());
[INFO] [stdout] 276 + 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:279:22
[INFO] [stdout] |
[INFO] [stdout] 279 | assert_eq!(boxed.get_heap_size(), size_of::() * boxed.len());
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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] 279 - assert_eq!(boxed.get_heap_size(), size_of::() * boxed.len());
[INFO] [stdout] 279 + 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:282:22
[INFO] [stdout] |
[INFO] [stdout] 282 | assert_eq!(boxed.get_heap_size(), size_of::<&u8>() * boxed.len());
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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] 282 - assert_eq!(boxed.get_heap_size(), size_of::<&u8>() * boxed.len());
[INFO] [stdout] 282 + 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:285:19
[INFO] [stdout] |
[INFO] [stdout] 285 | assert_eq!(rc.get_heap_size(), size_of::() * rc.len());
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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] 285 - assert_eq!(rc.get_heap_size(), size_of::() * rc.len());
[INFO] [stdout] 285 + 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:288:20
[INFO] [stdout] |
[INFO] [stdout] 288 | assert_eq!(arc.get_heap_size(), size_of::() * arc.len());
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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] 288 - assert_eq!(arc.get_heap_size(), size_of::() * arc.len());
[INFO] [stdout] 288 + 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:294:22
[INFO] [stdout] |
[INFO] [stdout] 294 | assert_eq!(boxed.get_heap_size(), size_of::() * boxed.len());
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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] 294 - assert_eq!(boxed.get_heap_size(), size_of::() * boxed.len());
[INFO] [stdout] 294 + 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:297:19
[INFO] [stdout] |
[INFO] [stdout] 297 | assert_eq!(rc.get_heap_size(), size_of::() * boxed.len());
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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] 297 - assert_eq!(rc.get_heap_size(), size_of::() * boxed.len());
[INFO] [stdout] 297 + 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:300:20
[INFO] [stdout] |
[INFO] [stdout] 300 | assert_eq!(arc.get_heap_size(), size_of::() * boxed.len());
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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] 300 - assert_eq!(arc.get_heap_size(), size_of::() * boxed.len());
[INFO] [stdout] 300 + 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:308:20
[INFO] [stdout] |
[INFO] [stdout] 308 | assert_eq!(cow.get_heap_size(), 0);
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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] 308 - assert_eq!(cow.get_heap_size(), 0);
[INFO] [stdout] 308 + 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:311:20
[INFO] [stdout] |
[INFO] [stdout] 311 | assert_eq!(cow.get_heap_size(), 11);
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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] 311 - assert_eq!(cow.get_heap_size(), 11);
[INFO] [stdout] 311 + 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:364:21
[INFO] [stdout] |
[INFO] [stdout] 364 | assert_eq!(lock.get_heap_size(), 0);
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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] 364 - assert_eq!(lock.get_heap_size(), 0);
[INFO] [stdout] 364 + 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:374:21
[INFO] [stdout] |
[INFO] [stdout] 374 | lock_filled.get_heap_size(),
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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] 374 - lock_filled.get_heap_size(),
[INFO] [stdout] 374 + 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:503:33
[INFO] [stdout] |
[INFO] [stdout] 485 | enum WithIgnore {
[INFO] [stdout] | --------------- method `get_heap_size` not found for this enum
[INFO] [stdout] ...
[INFO] [stdout] 503 | let size_with_ignore = with.get_heap_size();
[INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `WithIgnore`
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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:37:1
[INFO] [stdout] |
[INFO] [stdout] 37 | 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:504:39
[INFO] [stdout] |
[INFO] [stdout] 493 | enum WithoutIgnore {
[INFO] [stdout] | ------------------ method `get_heap_size` not found for this enum
[INFO] [stdout] ...
[INFO] [stdout] 504 | let size_without_ignore = without.get_heap_size();
[INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `WithoutIgnore`
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | 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:37:1
[INFO] [stdout] |
[INFO] [stdout] 37 | pub trait GetSize: Sized {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0599]: no method named `get_heap_size` found for struct `RefCell` in the current scope
[INFO] [stdout] --> src/test.rs:548:21
[INFO] [stdout] |
[INFO] [stdout] 548 | assert_eq!(cell.get_heap_size(), 0);
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | fn get_heap_size(&self) -> usize {
[INFO] [stdout] | ------------- the method is available for `RefCell` 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] 548 - assert_eq!(cell.get_heap_size(), 0);
[INFO] [stdout] 548 + assert_eq!(cell.get_size(), 0);
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0599]: no method named `get_size` found for struct `RefCell` in the current scope
[INFO] [stdout] --> src/test.rs:549:21
[INFO] [stdout] |
[INFO] [stdout] 549 | assert_eq!(cell.get_size(), size_of::>());
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:67:8
[INFO] [stdout] |
[INFO] [stdout] 67 | fn get_size(&self) -> usize {
[INFO] [stdout] | -------- the method is available for `RefCell` 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_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_heap_size` with a similar name
[INFO] [stdout] |
[INFO] [stdout] 549 | assert_eq!(cell.get_heap_size(), size_of::>());
[INFO] [stdout] | +++++
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0599]: no method named `get_heap_size` found for struct `RefCell` in the current scope
[INFO] [stdout] --> src/test.rs:553:21
[INFO] [stdout] |
[INFO] [stdout] 553 | assert_eq!(cell.get_heap_size(), 13); // "Hello, World!" is 13 bytes
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | fn get_heap_size(&self) -> usize {
[INFO] [stdout] | ------------- the method is available for `RefCell` 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] 553 - assert_eq!(cell.get_heap_size(), 13); // "Hello, World!" is 13 bytes
[INFO] [stdout] 553 + assert_eq!(cell.get_size(), 13); // "Hello, World!" is 13 bytes
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0599]: no method named `get_size` found for struct `RefCell` in the current scope
[INFO] [stdout] --> src/test.rs:554:21
[INFO] [stdout] |
[INFO] [stdout] 554 | assert_eq!(cell.get_size(), size_of::>() + 13);
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:67:8
[INFO] [stdout] |
[INFO] [stdout] 67 | fn get_size(&self) -> usize {
[INFO] [stdout] | -------- the method is available for `RefCell` 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_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_heap_size` with a similar name
[INFO] [stdout] |
[INFO] [stdout] 554 | assert_eq!(cell.get_heap_size(), size_of::>() + 13);
[INFO] [stdout] | +++++
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0599]: no method named `get_heap_size` found for struct `RefCell` in the current scope
[INFO] [stdout] --> src/test.rs:558:21
[INFO] [stdout] |
[INFO] [stdout] 558 | assert_eq!(cell.get_heap_size(), 0);
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | fn get_heap_size(&self) -> usize {
[INFO] [stdout] | ------------- the method is available for `RefCell` 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] 558 - assert_eq!(cell.get_heap_size(), 0);
[INFO] [stdout] 558 + assert_eq!(cell.get_size(), 0);
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0599]: no method named `get_heap_size` found for struct `RefCell` in the current scope
[INFO] [stdout] --> src/test.rs:564:21
[INFO] [stdout] |
[INFO] [stdout] 564 | assert_eq!(cell.get_heap_size(), expected_heap_size);
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | fn get_heap_size(&self) -> usize {
[INFO] [stdout] | ------------- the method is available for `RefCell>` 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] 564 - assert_eq!(cell.get_heap_size(), expected_heap_size);
[INFO] [stdout] 564 + assert_eq!(cell.get_size(), expected_heap_size);
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0599]: no method named `get_size` found for struct `RefCell` in the current scope
[INFO] [stdout] --> src/test.rs:566:14
[INFO] [stdout] |
[INFO] [stdout] 566 | cell.get_size(),
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:67:8
[INFO] [stdout] |
[INFO] [stdout] 67 | fn get_size(&self) -> usize {
[INFO] [stdout] | -------- the method is available for `RefCell>` 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_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_heap_size` with a similar name
[INFO] [stdout] |
[INFO] [stdout] 566 | cell.get_heap_size(),
[INFO] [stdout] | +++++
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0599]: no method named `get_heap_size` found for struct `RefCell` in the current scope
[INFO] [stdout] --> src/test.rs:574:22
[INFO] [stdout] |
[INFO] [stdout] 574 | assert_eq!(outer.get_heap_size(), 6); // "nested" is 6 bytes
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | fn get_heap_size(&self) -> usize {
[INFO] [stdout] | ------------- the method is available for `RefCell>` 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] 574 - assert_eq!(outer.get_heap_size(), 6); // "nested" is 6 bytes
[INFO] [stdout] 574 + assert_eq!(outer.get_size(), 6); // "nested" is 6 bytes
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0599]: no method named `get_heap_size` found for struct `RefCell` in the current scope
[INFO] [stdout] --> src/test.rs:581:25
[INFO] [stdout] |
[INFO] [stdout] 581 | assert_eq!(cell.get_heap_size(), 8); // "borrowed" is 8 bytes
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | fn get_heap_size(&self) -> usize {
[INFO] [stdout] | ------------- the method is available for `RefCell` 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] 581 - assert_eq!(cell.get_heap_size(), 8); // "borrowed" is 8 bytes
[INFO] [stdout] 581 + assert_eq!(cell.get_size(), 8); // "borrowed" is 8 bytes
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0599]: no method named `get_heap_size` found for struct `RefCell` in the current scope
[INFO] [stdout] --> src/test.rs:584:21
[INFO] [stdout] |
[INFO] [stdout] 584 | assert_eq!(cell.get_heap_size(), 8);
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | fn get_heap_size(&self) -> usize {
[INFO] [stdout] | ------------- the method is available for `RefCell` 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] 584 - assert_eq!(cell.get_heap_size(), 8);
[INFO] [stdout] 584 + assert_eq!(cell.get_size(), 8);
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0599]: no method named `get_heap_size` found for struct `RefCell` in the current scope
[INFO] [stdout] --> src/test.rs:595:21
[INFO] [stdout] |
[INFO] [stdout] 595 | assert_eq!(cell.get_heap_size(), 7); // "mutable" is 7 bytes
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | fn get_heap_size(&self) -> usize {
[INFO] [stdout] | ------------- the method is available for `RefCell` 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] 595 - assert_eq!(cell.get_heap_size(), 7); // "mutable" is 7 bytes
[INFO] [stdout] 595 + assert_eq!(cell.get_size(), 7); // "mutable" is 7 bytes
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0599]: no method named `get_heap_size` found for struct `RefCell` in the current scope
[INFO] [stdout] --> src/test.rs:602:21
[INFO] [stdout] |
[INFO] [stdout] 602 | assert_eq!(cell.get_heap_size(), expected_heap_size);
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | fn get_heap_size(&self) -> usize {
[INFO] [stdout] | ------------- the method is available for `RefCell>>` 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] 602 - assert_eq!(cell.get_heap_size(), expected_heap_size);
[INFO] [stdout] 602 + assert_eq!(cell.get_size(), expected_heap_size);
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0599]: no method named `get_heap_size_with_tracker` found for struct `RefCell` in the current scope
[INFO] [stdout] --> src/test.rs:606:38
[INFO] [stdout] |
[INFO] [stdout] 606 | let (heap_size, _tracker) = cell.get_heap_size_with_tracker(StandardTracker::new());
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:59:8
[INFO] [stdout] |
[INFO] [stdout] 59 | fn get_heap_size_with_tracker(&self, tracker: T) -> (usize, T) {
[INFO] [stdout] | -------------------------- the method is available for `RefCell` 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_with_tracker` 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_tracker` with a similar name
[INFO] [stdout] |
[INFO] [stdout] 606 - let (heap_size, _tracker) = cell.get_heap_size_with_tracker(StandardTracker::new());
[INFO] [stdout] 606 + let (heap_size, _tracker) = cell.get_size_with_tracker(StandardTracker::new());
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0599]: no method named `get_heap_size` found for struct `RefCell` in the current scope
[INFO] [stdout] --> src/test.rs:608:32
[INFO] [stdout] |
[INFO] [stdout] 608 | assert_eq!(heap_size, cell.get_heap_size());
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | fn get_heap_size(&self) -> usize {
[INFO] [stdout] | ------------- the method is available for `RefCell` 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] 608 - assert_eq!(heap_size, cell.get_heap_size());
[INFO] [stdout] 608 + assert_eq!(heap_size, cell.get_size());
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0599]: no method named `get_heap_size` found for struct `RefCell` in the current scope
[INFO] [stdout] --> src/test.rs:612:21
[INFO] [stdout] |
[INFO] [stdout] 612 | assert_eq!(cell.get_heap_size(), 0);
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:50:8
[INFO] [stdout] |
[INFO] [stdout] 50 | fn get_heap_size(&self) -> usize {
[INFO] [stdout] | ------------- the method is available for `RefCell<()>` 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] 612 - assert_eq!(cell.get_heap_size(), 0);
[INFO] [stdout] 612 + assert_eq!(cell.get_size(), 0);
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0599]: no method named `get_size` found for struct `RefCell` in the current scope
[INFO] [stdout] --> src/test.rs:613:21
[INFO] [stdout] |
[INFO] [stdout] 613 | assert_eq!(cell.get_size(), size_of::>());
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] ::: src/lib.rs:67:8
[INFO] [stdout] |
[INFO] [stdout] 67 | fn get_size(&self) -> usize {
[INFO] [stdout] | -------- the method is available for `RefCell<()>` 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_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_heap_size` with a similar name
[INFO] [stdout] |
[INFO] [stdout] 613 | assert_eq!(cell.get_heap_size(), size_of::>());
[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 84 previous errors
[INFO] running `Command { std: "docker" "inspect" "560dfe9804dce76a2410ba0aedaaa81b3ad5e352747c77a1b43454e0a22123e7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "560dfe9804dce76a2410ba0aedaaa81b3ad5e352747c77a1b43454e0a22123e7", kill_on_drop: false }`
[INFO] [stdout] 560dfe9804dce76a2410ba0aedaaa81b3ad5e352747c77a1b43454e0a22123e7