[INFO] fetching crate dyn_struct2 0.1.0... [INFO] testing dyn_struct2-0.1.0 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate dyn_struct2 0.1.0 into /workspace/builds/worker-0-tc1/source [INFO] started tweaking crates.io crate dyn_struct2 0.1.0 [INFO] finished tweaking crates.io crate dyn_struct2 0.1.0 [INFO] tweaked toml for crates.io crate dyn_struct2 0.1.0 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate dyn_struct2 0.1.0 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 6 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded dyn_struct_derive2 v0.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1d3c43ae56ea1c5ce3710b9b5700042bde1c874d8104c0ccd473e89cadc8c974 [INFO] running `Command { std: "docker" "start" "-a" "1d3c43ae56ea1c5ce3710b9b5700042bde1c874d8104c0ccd473e89cadc8c974", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1d3c43ae56ea1c5ce3710b9b5700042bde1c874d8104c0ccd473e89cadc8c974", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1d3c43ae56ea1c5ce3710b9b5700042bde1c874d8104c0ccd473e89cadc8c974", kill_on_drop: false }` [INFO] [stdout] 1d3c43ae56ea1c5ce3710b9b5700042bde1c874d8104c0ccd473e89cadc8c974 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e7250779c811bc56d5ee89790f7616b32d5b8a74d4a1a845f9c3b7cc7c22d990 [INFO] running `Command { std: "docker" "start" "-a" "e7250779c811bc56d5ee89790f7616b32d5b8a74d4a1a845f9c3b7cc7c22d990", kill_on_drop: false }` [INFO] [stderr] Compiling transmute v0.1.1 [INFO] [stderr] Compiling dyn_struct2 v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.17s [INFO] running `Command { std: "docker" "inspect" "e7250779c811bc56d5ee89790f7616b32d5b8a74d4a1a845f9c3b7cc7c22d990", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e7250779c811bc56d5ee89790f7616b32d5b8a74d4a1a845f9c3b7cc7c22d990", kill_on_drop: false }` [INFO] [stdout] e7250779c811bc56d5ee89790f7616b32d5b8a74d4a1a845f9c3b7cc7c22d990 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9bacb44df0ca5561cce516c46fd66cb9993506a92704abadfddd87a359be48e6 [INFO] running `Command { std: "docker" "start" "-a" "9bacb44df0ca5561cce516c46fd66cb9993506a92704abadfddd87a359be48e6", kill_on_drop: false }` [INFO] [stderr] Compiling dyn_struct2 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `dyn_struct_derive2` [INFO] [stdout] --> tests/derive.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dyn_struct_derive2::DynStruct; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `dyn_struct_derive2` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `dyn_struct_derive2`, use `cargo add dyn_struct_derive2` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `custom::Foo` in the current scope [INFO] [stdout] --> tests/derive.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 8 | struct Foo { [INFO] [stdout] | ---------- function or associated item `new` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 13 | let foo = Foo::new(14, dyn_arg!([1, 2, 3, 4])); [INFO] [stdout] | ^^^ function or associated item not found in `custom::Foo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `generic::Foo<'a, T, U>` in the current scope [INFO] [stdout] --> tests/derive.rs:28:20 [INFO] [stdout] | [INFO] [stdout] 22 | struct Foo<'a, T: Copy, U: Copy> { [INFO] [stdout] | -------------------------------- function or associated item `new` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 28 | let foo = Foo::new(true, "hello", dyn_arg!([1, 2, 3, 4])); [INFO] [stdout] | ^^^ function or associated item not found in `generic::Foo<'_, _, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `MyDynamicType` in the current scope [INFO] [stdout] --> tests/derive.rs:44:50 [INFO] [stdout] | [INFO] [stdout] 38 | struct MyDynamicType { [INFO] [stdout] | -------------------- function or associated item `new` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 44 | let foo: Box = MyDynamicType::new(true, 123, dyn_arg!([4, 5, 6, 7, 8])); [INFO] [stdout] | ^^^ function or associated item not found in `MyDynamicType` [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] [stdout] warning: calls to `std::mem::forget` with a value that implements `Copy` does nothing [INFO] [stdout] --> src/dyn_arg.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | ::std::mem::forget(val); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^---^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `[u64; 4]` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:125:51 [INFO] [stdout] | [INFO] [stdout] 125 | let mixed = DynStruct::new((true, 32u16), dyn_arg!(tail)); [INFO] [stdout] | -------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(forgetting_copy_types)]` on by default [INFO] [stdout] = note: this warning originates in the macro `dyn_arg` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 53 - ::std::mem::forget(val); [INFO] [stdout] 53 + let _ = val; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::forget` with a value that implements `Copy` does nothing [INFO] [stdout] --> src/dyn_arg.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | ::std::mem::forget(val); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^---^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `[u64; 4]` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:133:51 [INFO] [stdout] | [INFO] [stdout] 133 | let mixed = DynStruct::new((true, 32u16), dyn_arg!(tail) as DynArg<[u64]>); [INFO] [stdout] | -------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `dyn_arg` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 53 - ::std::mem::forget(val); [INFO] [stdout] 53 + let _ = val; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::forget` with a value that implements `Copy` does nothing [INFO] [stdout] --> src/dyn_arg.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | ::std::mem::forget(val); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^---^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `[(); 2]` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:141:39 [INFO] [stdout] | [INFO] [stdout] 141 | let zero = DynStruct::new((), dyn_arg!(tail)); [INFO] [stdout] | -------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `dyn_arg` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 53 - ::std::mem::forget(val); [INFO] [stdout] 53 + let _ = val; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::forget` with a value that implements `Copy` does nothing [INFO] [stdout] --> src/dyn_arg.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | ::std::mem::forget(val); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^---^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `[u32; 4]` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:174:54 [INFO] [stdout] | [INFO] [stdout] 174 | let mixed = DynStruct::new((false, 50usize), dyn_arg!(tail) as DynArg<[u32]>); [INFO] [stdout] | -------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `dyn_arg` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 53 - ::std::mem::forget(val); [INFO] [stdout] 53 + let _ = val; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `dyn_struct2` (test "derive") due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "9bacb44df0ca5561cce516c46fd66cb9993506a92704abadfddd87a359be48e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9bacb44df0ca5561cce516c46fd66cb9993506a92704abadfddd87a359be48e6", kill_on_drop: false }` [INFO] [stdout] 9bacb44df0ca5561cce516c46fd66cb9993506a92704abadfddd87a359be48e6