[INFO] fetching crate smart_ir_macro 0.3.0... [INFO] testing smart_ir_macro-0.3.0 against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [INFO] extracting crate smart_ir_macro 0.3.0 into /workspace/builds/worker-7-tc1/source [INFO] started tweaking crates.io crate smart_ir_macro 0.3.0 [INFO] finished tweaking crates.io crate smart_ir_macro 0.3.0 [INFO] tweaked toml for crates.io crate smart_ir_macro 0.3.0 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate smart_ir_macro 0.3.0 on toolchain caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "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" "+caccb4d0368bd918ef6668af8e13834d07040417" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 4 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d498c4b55f0b35052adc0e734c1474d4cb216a0fe7e6f652f64aaea12836a98e [INFO] running `Command { std: "docker" "start" "-a" "d498c4b55f0b35052adc0e734c1474d4cb216a0fe7e6f652f64aaea12836a98e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d498c4b55f0b35052adc0e734c1474d4cb216a0fe7e6f652f64aaea12836a98e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d498c4b55f0b35052adc0e734c1474d4cb216a0fe7e6f652f64aaea12836a98e", kill_on_drop: false }` [INFO] [stdout] d498c4b55f0b35052adc0e734c1474d4cb216a0fe7e6f652f64aaea12836a98e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 33a8570839390e1740cf2d02b5e658ba86b4e58ece70364c26e1bee71f321a2a [INFO] running `Command { std: "docker" "start" "-a" "33a8570839390e1740cf2d02b5e658ba86b4e58ece70364c26e1bee71f321a2a", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling smart_ir_macro v0.3.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.33s [INFO] running `Command { std: "docker" "inspect" "33a8570839390e1740cf2d02b5e658ba86b4e58ece70364c26e1bee71f321a2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "33a8570839390e1740cf2d02b5e658ba86b4e58ece70364c26e1bee71f321a2a", kill_on_drop: false }` [INFO] [stdout] 33a8570839390e1740cf2d02b5e658ba86b4e58ece70364c26e1bee71f321a2a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 578a63582855bbb1a667b8788e3fd8cd952a85d078652f07c6088d5c7138aabf [INFO] running `Command { std: "docker" "start" "-a" "578a63582855bbb1a667b8788e3fd8cd952a85d078652f07c6088d5c7138aabf", kill_on_drop: false }` [INFO] [stderr] Compiling smart_ir_macro v0.3.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.69s [INFO] running `Command { std: "docker" "inspect" "578a63582855bbb1a667b8788e3fd8cd952a85d078652f07c6088d5c7138aabf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "578a63582855bbb1a667b8788e3fd8cd952a85d078652f07c6088d5c7138aabf", kill_on_drop: false }` [INFO] [stdout] 578a63582855bbb1a667b8788e3fd8cd952a85d078652f07c6088d5c7138aabf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] a8d26d1c0d607095e84d8896abee39d1c02866b37e1aac77ed04c553ddfa85a6 [INFO] running `Command { std: "docker" "start" "-a" "a8d26d1c0d607095e84d8896abee39d1c02866b37e1aac77ed04c553ddfa85a6", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/smart_ir_macro-bcf642d28db8d8a8) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stderr] Doc-tests smart_ir_macro [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/lib.rs - derive_md_definition (line 56) ... FAILED [INFO] [stdout] test src/lib.rs - derive_md_definition (line 81) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - derive_md_definition (line 56) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `smart_ir` [INFO] [stdout] --> src/lib.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 5 | use smart_ir::cfg::ir::{MetaData, IRContext, Literal, IntValue}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `smart_ir` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `smart_ir`, use `cargo add smart_ir` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `smart_ir_macro::MetaDataKey` [INFO] [stdout] --> src/lib.rs:59:42 [INFO] [stdout] | [INFO] [stdout] 6 | use smart_ir_macro::{MetadataDefinition, MetaDataKey}; [INFO] [stdout] | ^^^^^^^^^^^ no `MetaDataKey` in the root [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `MetaDataNode` in this scope [INFO] [stdout] --> src/lib.rs:61:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(MetadataDefinition, PartialEq, Eq, Default)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `MetadataDefinition` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IntLiteral` [INFO] [stdout] --> src/lib.rs:61:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(MetadataDefinition, PartialEq, Eq, Default)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared type `IntLiteral` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `MetadataDefinition` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Instr` [INFO] [stdout] --> src/lib.rs:70:21 [INFO] [stdout] | [INFO] [stdout] 17 | let mut instr = Instr::new(InstrDescription::br(0)); [INFO] [stdout] | ^^^^^ use of undeclared type `Instr` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `InstrDescription` [INFO] [stdout] --> src/lib.rs:70:32 [INFO] [stdout] | [INFO] [stdout] 17 | let mut instr = Instr::new(InstrDescription::br(0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of undeclared type `InstrDescription` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - derive_md_definition (line 81) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `MetaData` in this scope [INFO] [stdout] --> src/lib.rs:102:28 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn from(metadata: &MetaData) -> Result { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MetaData` in this scope [INFO] [stdout] --> src/lib.rs:108:34 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn to_metadata(&self) -> MetaData { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Literal` [INFO] [stdout] --> src/lib.rs:110:29 [INFO] [stdout] | [INFO] [stdout] 31 | metadata.push_field(Literal::Int(IntLiteral::I32(self.foo))); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Literal` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use proc_macro2::Literal; [INFO] [stdout] | [INFO] [stdout] 2 + use proc_macro::Literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Literal` [INFO] [stdout] --> src/lib.rs:111:29 [INFO] [stdout] | [INFO] [stdout] 32 | metadata.push_field(Literal::Str(self.bar.clone())); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Literal` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use proc_macro2::Literal; [INFO] [stdout] | [INFO] [stdout] 2 + use proc_macro::Literal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IRContext` in this scope [INFO] [stdout] --> src/lib.rs:118:19 [INFO] [stdout] | [INFO] [stdout] 39 | ctx: &mut IRContext, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `MetaDataNode` in this scope [INFO] [stdout] --> src/lib.rs:119:27 [INFO] [stdout] | [INFO] [stdout] 40 | md_node: &mut dyn MetaDataNode, [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DebugLocation` in this scope [INFO] [stdout] --> src/lib.rs:120:15 [INFO] [stdout] | [INFO] [stdout] 41 | loc: &DebugLocation, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IRContext` in this scope [INFO] [stdout] --> src/lib.rs:126:35 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn get_from_context(ctx: &IRContext, md_node: &dyn MetaDataNode) -> Option { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `MetaDataNode` in this scope [INFO] [stdout] --> src/lib.rs:126:60 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn get_from_context(ctx: &IRContext, md_node: &dyn MetaDataNode) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DebugLocation` in this scope [INFO] [stdout] --> src/lib.rs:126:84 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn get_from_context(ctx: &IRContext, md_node: &dyn MetaDataNode) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 8 | impl FooBar { [INFO] [stdout] | +++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MetaData` [INFO] [stdout] --> src/lib.rs:109:24 [INFO] [stdout] | [INFO] [stdout] 30 | let mut metadata = MetaData::default(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `MetaData` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `IntLiteral` [INFO] [stdout] --> src/lib.rs:110:42 [INFO] [stdout] | [INFO] [stdout] 31 | metadata.push_field(Literal::Int(IntLiteral::I32(self.foo))); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `IntLiteral` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DebugLocation` [INFO] [stdout] --> src/lib.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 50 | DebugLocation::from(ctx.get_metadata(md_idx)?).ok() [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `DebugLocation` [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - derive_md_definition (line 56) [INFO] [stdout] src/lib.rs - derive_md_definition (line 81) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.15s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "a8d26d1c0d607095e84d8896abee39d1c02866b37e1aac77ed04c553ddfa85a6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a8d26d1c0d607095e84d8896abee39d1c02866b37e1aac77ed04c553ddfa85a6", kill_on_drop: false }` [INFO] [stdout] a8d26d1c0d607095e84d8896abee39d1c02866b37e1aac77ed04c553ddfa85a6