[INFO] fetching crate kevlar 0.1.2... [INFO] testing kevlar-0.1.2 against try#b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b for pr-145330-1 [INFO] extracting crate kevlar 0.1.2 into /workspace/builds/worker-7-tc2/source [INFO] started tweaking crates.io crate kevlar 0.1.2 [INFO] finished tweaking crates.io crate kevlar 0.1.2 [INFO] tweaked toml for crates.io crate kevlar 0.1.2 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate kevlar 0.1.2 on toolchain b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "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" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 45 packages to latest compatible versions [INFO] [stderr] Adding fern v0.5.9 (available: v0.7.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 169dc455fd3e4cb519cd141f8da0eb8f8ffe98e186d4f0b9ad0b5059ea700673 [INFO] running `Command { std: "docker" "start" "-a" "169dc455fd3e4cb519cd141f8da0eb8f8ffe98e186d4f0b9ad0b5059ea700673", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "169dc455fd3e4cb519cd141f8da0eb8f8ffe98e186d4f0b9ad0b5059ea700673", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "169dc455fd3e4cb519cd141f8da0eb8f8ffe98e186d4f0b9ad0b5059ea700673", kill_on_drop: false }` [INFO] [stdout] 169dc455fd3e4cb519cd141f8da0eb8f8ffe98e186d4f0b9ad0b5059ea700673 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d418430b5501a693a3e8258058f668cefdf5bba74af28dad8190794f21292c3c [INFO] running `Command { std: "docker" "start" "-a" "d418430b5501a693a3e8258058f668cefdf5bba74af28dad8190794f21292c3c", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling regex-automata v0.4.11 [INFO] [stderr] Compiling fern v0.5.9 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling regex v1.11.3 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling kevlar v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `filename` and `label` are never read [INFO] [stdout] --> src/testresult.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct TestArtifact { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 60 | filename: PathBuf, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 61 | artifact_type: TestArtifactType, [INFO] [stdout] 62 | label: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TestArtifact` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/testresult.rs:188:5 [INFO] [stdout] | [INFO] [stdout] 187 | pub struct TestRecord { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 188 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TestRecord` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.81s [INFO] running `Command { std: "docker" "inspect" "d418430b5501a693a3e8258058f668cefdf5bba74af28dad8190794f21292c3c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d418430b5501a693a3e8258058f668cefdf5bba74af28dad8190794f21292c3c", kill_on_drop: false }` [INFO] [stdout] d418430b5501a693a3e8258058f668cefdf5bba74af28dad8190794f21292c3c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 26b9fa2113c0e53655301681cabde61696fbd2629ff5b1c8d4e2ac5debe22718 [INFO] running `Command { std: "docker" "start" "-a" "26b9fa2113c0e53655301681cabde61696fbd2629ff5b1c8d4e2ac5debe22718", kill_on_drop: false }` [INFO] [stderr] Compiling kevlar v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `filename` and `label` are never read [INFO] [stdout] --> src/testresult.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct TestArtifact { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 60 | filename: PathBuf, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 61 | artifact_type: TestArtifactType, [INFO] [stdout] 62 | label: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TestArtifact` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/testresult.rs:188:5 [INFO] [stdout] | [INFO] [stdout] 187 | pub struct TestRecord { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 188 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TestRecord` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `filename` and `label` are never read [INFO] [stdout] --> src/testresult.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct TestArtifact { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 60 | filename: PathBuf, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 61 | artifact_type: TestArtifactType, [INFO] [stdout] 62 | label: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TestArtifact` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/testresult.rs:188:5 [INFO] [stdout] | [INFO] [stdout] 187 | pub struct TestRecord { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 188 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TestRecord` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.38s [INFO] running `Command { std: "docker" "inspect" "26b9fa2113c0e53655301681cabde61696fbd2629ff5b1c8d4e2ac5debe22718", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "26b9fa2113c0e53655301681cabde61696fbd2629ff5b1c8d4e2ac5debe22718", kill_on_drop: false }` [INFO] [stdout] 26b9fa2113c0e53655301681cabde61696fbd2629ff5b1c8d4e2ac5debe22718 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] fa0337774c73b50d91a8d2fa4b16795e08112566212c02b346ea5fcd1db64079 [INFO] running `Command { std: "docker" "start" "-a" "fa0337774c73b50d91a8d2fa4b16795e08112566212c02b346ea5fcd1db64079", kill_on_drop: false }` [INFO] [stderr] warning: fields `filename` and `label` are never read [INFO] [stderr] --> src/testresult.rs:60:5 [INFO] [stderr] | [INFO] [stderr] 59 | pub struct TestArtifact { [INFO] [stderr] | ------------ fields in this struct [INFO] [stderr] 60 | filename: PathBuf, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 61 | artifact_type: TestArtifactType, [INFO] [stderr] 62 | label: String, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `TestArtifact` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field `name` is never read [INFO] [stderr] --> src/testresult.rs:188:5 [INFO] [stderr] | [INFO] [stderr] 187 | pub struct TestRecord { [INFO] [stderr] | ---------- field in this struct [INFO] [stderr] 188 | name: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `TestRecord` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: `kevlar` (lib) generated 2 warnings [INFO] [stderr] warning: `kevlar` (lib test) generated 2 warnings (2 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.27s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/kevlar-6b8ba05fefc01538) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test tests::it_works ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests kevlar [INFO] [stdout] [INFO] [stdout] running 11 tests [INFO] [stdout] test src/testresult.rs - testresult::TestEvent::with_artifact (line 137) ... FAILED [INFO] [stdout] test src/testresult.rs - testresult::TestArtifact::with_description (line 92) ... FAILED [INFO] [stdout] test src/testharness.rs - testharness::TestHarness::run (line 74) ... FAILED [INFO] [stdout] test src/testcase.rs - testcase::TestCase (line 8) ... FAILED [INFO] [stdout] test src/lib.rs - (line 11) ... FAILED [INFO] [stdout] test src/testharness.rs - testharness::TestHarness::run_async (line 99) ... FAILED [INFO] [stdout] test src/testharness.rs - testharness::TestHarness::new (line 26) ... FAILED [INFO] [stdout] test src/testresult.rs - testresult::TestEvent::with_description (line 125) ... FAILED [INFO] [stdout] test src/testresult.rs - testresult::TestArtifact::with_type (line 80) ... FAILED [INFO] [stdout] test src/testresult.rs - testresult::TestRecord::set_status (line 210) ... FAILED [INFO] [stdout] test src/testcase.rs - testcase::AsyncTestCase (line 27) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/testresult.rs - testresult::TestEvent::with_artifact (line 137) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TestEvent` [INFO] [stdout] --> src/testresult.rs:138:13 [INFO] [stdout] | [INFO] [stdout] 3 | let event = TestEvent::new(TestStatus::Failed) [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TestEvent` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use kevlar::TestEvent; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TestStatus` [INFO] [stdout] --> src/testresult.rs:138:28 [INFO] [stdout] | [INFO] [stdout] 3 | let event = TestEvent::new(TestStatus::Failed) [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `TestStatus` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use kevlar::TestStatus; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `artifact1` in this scope [INFO] [stdout] --> src/testresult.rs:140:20 [INFO] [stdout] | [INFO] [stdout] 5 | .with_artifact(artifact1) [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `artifact2` in this scope [INFO] [stdout] --> src/testresult.rs:141:20 [INFO] [stdout] | [INFO] [stdout] 6 | .with_artifact(artifact2); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/testresult.rs - testresult::TestArtifact::with_description (line 92) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TestArtifact` [INFO] [stdout] --> src/testresult.rs:93:16 [INFO] [stdout] | [INFO] [stdout] 3 | let artifact = TestArtifact::new(filename, "Screen capture") [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `TestArtifact` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use kevlar::TestArtifact; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `filename` in this scope [INFO] [stdout] --> src/testresult.rs:93:34 [INFO] [stdout] | [INFO] [stdout] 3 | let artifact = TestArtifact::new(filename, "Screen capture") [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/testharness.rs - testharness::TestHarness::run (line 74) stdout ---- [INFO] [stdout] error: non-item in item list [INFO] [stdout] --> src/testharness.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 5 | impl TestCase for MyTest { [INFO] [stdout] | - item list starts here [INFO] [stdout] 6 | ... [INFO] [stdout] | ^^^ non-item starts here [INFO] [stdout] 7 | } [INFO] [stdout] | - item list ends here [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/testharness.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 8 | ... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 8 - ... [INFO] [stdout] 8 + .. [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 8 - ... [INFO] [stdout] 8 + ..= [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `TestCase` in this scope [INFO] [stdout] --> src/testharness.rs:77:6 [INFO] [stdout] | [INFO] [stdout] 5 | impl TestCase for MyTest { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use kevlar::TestCase; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `harness` in this scope [INFO] [stdout] --> src/testharness.rs:82:1 [INFO] [stdout] | [INFO] [stdout] 10 | harness.run::(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/testcase.rs - testcase::TestCase (line 8) stdout ---- [INFO] [stdout] error: cannot find macro `info` in this scope [INFO] [stdout] --> src/testcase.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 8 | info!("Do something interesting"); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use log::info; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `TestCase` in this scope [INFO] [stdout] --> src/testcase.rs:12:6 [INFO] [stdout] | [INFO] [stdout] 6 | impl TestCase for MyTest { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use kevlar::TestCase; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TestConfig` in this scope [INFO] [stdout] --> src/testcase.rs:13:36 [INFO] [stdout] | [INFO] [stdout] 7 | fn run(&mut self, test_config: TestConfig, test_record: &mut TestRecord) -> TestResult { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use kevlar::TestConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TestRecord` in this scope [INFO] [stdout] --> src/testcase.rs:13:66 [INFO] [stdout] | [INFO] [stdout] 7 | fn run(&mut self, test_config: TestConfig, test_record: &mut TestRecord) -> TestResult { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use kevlar::TestRecord; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TestResult` in this scope [INFO] [stdout] --> src/testcase.rs:13:81 [INFO] [stdout] | [INFO] [stdout] 7 | fn run(&mut self, test_config: TestConfig, test_record: &mut TestRecord) -> TestResult { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 2 + use kevlar::TestResult; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 11) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio` [INFO] [stdout] --> src/lib.rs:18:3 [INFO] [stdout] | [INFO] [stdout] 9 | #[tokio::main] [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `tokio` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/lib.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 10 | async fn main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/testharness.rs - testharness::TestHarness::run_async (line 99) stdout ---- [INFO] [stdout] error: non-item in item list [INFO] [stdout] --> src/testharness.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 5 | impl AsyncTestCase for MyTest { [INFO] [stdout] | - item list starts here [INFO] [stdout] 6 | ... [INFO] [stdout] | ^^^ non-item starts here [INFO] [stdout] 7 | } [INFO] [stdout] | - item list ends here [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/testharness.rs:105:1 [INFO] [stdout] | [INFO] [stdout] 8 | ... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 8 - ... [INFO] [stdout] 8 + .. [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 8 - ... [INFO] [stdout] 8 + ..= [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `AsyncTestCase` in this scope [INFO] [stdout] --> src/testharness.rs:102:6 [INFO] [stdout] | [INFO] [stdout] 5 | impl AsyncTestCase for MyTest { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use kevlar::AsyncTestCase; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `harness` in this scope [INFO] [stdout] --> src/testharness.rs:107:1 [INFO] [stdout] | [INFO] [stdout] 10 | harness.run_async::(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/testharness.rs - testharness::TestHarness::new (line 26) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TestHarness` [INFO] [stdout] --> src/testharness.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 5 | let harness = TestHarness::new( [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `TestHarness` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use kevlar::TestHarness; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ConfigType` [INFO] [stdout] --> src/testharness.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 7 | ConfigType::File(PathBuf::from("./config.json")), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `ConfigType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use kevlar::ConfigType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/testharness.rs:30:22 [INFO] [stdout] | [INFO] [stdout] 7 | ConfigType::File(PathBuf::from("./config.json")), [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/testresult.rs - testresult::TestEvent::with_description (line 125) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TestEvent` [INFO] [stdout] --> src/testresult.rs:126:1 [INFO] [stdout] | [INFO] [stdout] 3 | TestEvent::new(TestStatus::Failed).with_description("Something went wrong") [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TestEvent` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use kevlar::TestEvent; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TestStatus` [INFO] [stdout] --> src/testresult.rs:126:16 [INFO] [stdout] | [INFO] [stdout] 3 | TestEvent::new(TestStatus::Failed).with_description("Something went wrong") [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `TestStatus` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use kevlar::TestStatus; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/testresult.rs - testresult::TestArtifact::with_type (line 80) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TestArtifact` [INFO] [stdout] --> src/testresult.rs:81:16 [INFO] [stdout] | [INFO] [stdout] 3 | let artifact = TestArtifact::new(filename, "Log File") [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `TestArtifact` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use kevlar::TestArtifact; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `filename` in this scope [INFO] [stdout] --> src/testresult.rs:81:34 [INFO] [stdout] | [INFO] [stdout] 3 | let artifact = TestArtifact::new(filename, "Log File") [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TestArtifactType` [INFO] [stdout] --> src/testresult.rs:82:16 [INFO] [stdout] | [INFO] [stdout] 4 | .with_type(TestArtifactType::Log); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of undeclared type `TestArtifactType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use kevlar::TestArtifactType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/testresult.rs - testresult::TestRecord::set_status (line 210) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `test_result` in this scope [INFO] [stdout] --> src/testresult.rs:211:1 [INFO] [stdout] | [INFO] [stdout] 3 | test_result.set_status(TestStatus::Failed); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TestStatus` [INFO] [stdout] --> src/testresult.rs:211:24 [INFO] [stdout] | [INFO] [stdout] 3 | test_result.set_status(TestStatus::Failed); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `TestStatus` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use kevlar::TestStatus; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `test_result` in this scope [INFO] [stdout] --> src/testresult.rs:213:1 [INFO] [stdout] | [INFO] [stdout] 5 | test_result.set_status(TestStatus::KnownFailure); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TestStatus` [INFO] [stdout] --> src/testresult.rs:213:24 [INFO] [stdout] | [INFO] [stdout] 5 | test_result.set_status(TestStatus::KnownFailure); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `TestStatus` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use kevlar::TestStatus; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/testcase.rs - testcase::AsyncTestCase (line 27) stdout ---- [INFO] [stdout] error: cannot find attribute `async_trait` in this scope [INFO] [stdout] --> src/testcase.rs:31:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `async_trait` is in scope, but it is a crate, not an attribute [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use async_trait::async_trait; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `info` in this scope [INFO] [stdout] --> src/testcase.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 9 | info!("Do something interesting"); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use log::info; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `AsyncTestCase` in this scope [INFO] [stdout] --> src/testcase.rs:32:6 [INFO] [stdout] | [INFO] [stdout] 7 | impl AsyncTestCase for MyTest { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use kevlar::AsyncTestCase; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TestConfig` in this scope [INFO] [stdout] --> src/testcase.rs:33:48 [INFO] [stdout] | [INFO] [stdout] 8 | async fn run_async(&mut self, test_config: TestConfig, test_record: &mut TestRecord) -> TestResult { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use kevlar::TestConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TestRecord` in this scope [INFO] [stdout] --> src/testcase.rs:33:78 [INFO] [stdout] | [INFO] [stdout] 8 | async fn run_async(&mut self, test_config: TestConfig, test_record: &mut TestRecord) -> TestResult { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use kevlar::TestRecord; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TestResult` in this scope [INFO] [stdout] --> src/testcase.rs:33:93 [INFO] [stdout] | [INFO] [stdout] 8 | async fn run_async(&mut self, test_config: TestConfig, test_record: &mut TestRecord) -> TestResult { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 2 + use kevlar::TestResult; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412. [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 - (line 11) [INFO] [stdout] src/testcase.rs - testcase::AsyncTestCase (line 27) [INFO] [stdout] src/testcase.rs - testcase::TestCase (line 8) [INFO] [stdout] src/testharness.rs - testharness::TestHarness::new (line 26) [INFO] [stdout] src/testharness.rs - testharness::TestHarness::run (line 74) [INFO] [stdout] src/testharness.rs - testharness::TestHarness::run_async (line 99) [INFO] [stdout] src/testresult.rs - testresult::TestArtifact::with_description (line 92) [INFO] [stdout] src/testresult.rs - testresult::TestArtifact::with_type (line 80) [INFO] [stdout] src/testresult.rs - testresult::TestEvent::with_artifact (line 137) [INFO] [stdout] src/testresult.rs - testresult::TestEvent::with_description (line 125) [INFO] [stdout] src/testresult.rs - testresult::TestRecord::set_status (line 210) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 11 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.21s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "fa0337774c73b50d91a8d2fa4b16795e08112566212c02b346ea5fcd1db64079", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fa0337774c73b50d91a8d2fa4b16795e08112566212c02b346ea5fcd1db64079", kill_on_drop: false }` [INFO] [stdout] fa0337774c73b50d91a8d2fa4b16795e08112566212c02b346ea5fcd1db64079