[INFO] fetching crate supply-chain-trust-example-crate-000038 2.0.13... [INFO] checking supply-chain-trust-example-crate-000038-2.0.13 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate supply-chain-trust-example-crate-000038 2.0.13 into /workspace/builds/worker-7-tc2/source [INFO] removed /workspace/builds/worker-7-tc2/source/rust-toolchain.toml [INFO] started tweaking crates.io crate supply-chain-trust-example-crate-000038 2.0.13 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate supply-chain-trust-example-crate-000038 2.0.13 [INFO] tweaked toml for crates.io crate supply-chain-trust-example-crate-000038 2.0.13 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate supply-chain-trust-example-crate-000038 2.0.13 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate supply-chain-trust-example-crate-000038 2.0.13 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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] da83a30adf07ae21fee79373a14576bd367fdfb3ba7d9f9311449db5574cdb1e [INFO] running `Command { std: "docker" "start" "-a" "da83a30adf07ae21fee79373a14576bd367fdfb3ba7d9f9311449db5574cdb1e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "da83a30adf07ae21fee79373a14576bd367fdfb3ba7d9f9311449db5574cdb1e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "da83a30adf07ae21fee79373a14576bd367fdfb3ba7d9f9311449db5574cdb1e", kill_on_drop: false }` [INFO] [stdout] da83a30adf07ae21fee79373a14576bd367fdfb3ba7d9f9311449db5574cdb1e [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 31ed72c7df8428f98e0692a5cc8068ef3dc1c6b6dd8414e512b204a51f03dbaa [INFO] running `Command { std: "docker" "start" "-a" "31ed72c7df8428f98e0692a5cc8068ef3dc1c6b6dd8414e512b204a51f03dbaa", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking hashbrown v0.15.2 [INFO] [stderr] Checking equivalent v1.0.2 [INFO] [stderr] Compiling target-triple v0.1.4 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Checking winnow v0.7.4 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Compiling rustversion v1.0.20 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling anyhow v1.0.97 [INFO] [stderr] Compiling supply-chain-trust-example-crate-000038 v2.0.13 (/opt/rustwide/workdir) [INFO] [stderr] Compiling ref-cast v1.0.24 [INFO] [stderr] Checking glob v0.3.2 [INFO] [stderr] Checking dissimilar v1.0.10 [INFO] [stderr] Checking indexmap v2.8.0 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling ref-cast-impl v1.0.24 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Checking serde_spanned v0.6.8 [INFO] [stderr] Checking toml_datetime v0.6.8 [INFO] [stderr] Checking toml_edit v0.22.24 [INFO] [stderr] Checking toml v0.8.20 [INFO] [stderr] Checking trybuild v1.0.104 [INFO] [stdout] error[E0432]: unresolved import `thiserror` [INFO] [stdout] --> tests/test_error.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use thiserror::Error; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `thiserror` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `thiserror`, use `cargo add thiserror` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `source` in this scope [INFO] [stdout] --> tests/test_error.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | #[source] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `source` in this scope [INFO] [stdout] --> tests/test_error.rs:37:7 [INFO] [stdout] | [INFO] [stdout] 37 | #[source] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `source` in this scope [INFO] [stdout] --> tests/test_error.rs:44:11 [INFO] [stdout] | [INFO] [stdout] 44 | #[source] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `source` in this scope [INFO] [stdout] --> tests/test_error.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | Tuple(#[source] io::Error), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `supply-chain-trust-example-crate-000038` (test "test_error") due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0432]: unresolved import `thiserror` [INFO] [stdout] --> tests/test_transparent.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use thiserror::Error; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `thiserror` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `thiserror`, use `cargo add thiserror` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `thiserror` [INFO] [stdout] --> tests/test_lints.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use thiserror::Error; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `thiserror` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `thiserror`, use `cargo add thiserror` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `thiserror` [INFO] [stdout] --> tests/test_expr.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use thiserror::Error; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `thiserror` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `thiserror`, use `cargo add thiserror` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `thiserror` [INFO] [stdout] --> tests/test_generics.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use thiserror::Error; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `thiserror` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `thiserror`, use `cargo add thiserror` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> tests/test_transparent.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[error(transparent)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> tests/test_transparent.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | #[error("E0")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> tests/test_expr.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | #[error("cannot shift {} by {maximum} or more bits (got {current})", if *.is_left { "left" } else { "right" })] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> tests/test_transparent.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | #[error("E1")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `from` in this scope [INFO] [stdout] --> tests/test_transparent.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | E1(#[from] io::Error), [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> tests/test_expr.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | #[error("#error {}", (.0).iter().copied().collect::>().join(" "))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> tests/test_expr.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 22 | #[error("overflow while parsing {}integer literal", [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> tests/test_expr.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | #[error("overflow while parsing {}integer literal", match .is_signed { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> tests/test_transparent.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 34 | #[error("this failed")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> tests/test_transparent.rs:36:11 [INFO] [stdout] | [INFO] [stdout] 36 | #[error(transparent)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> tests/test_expr.rs:42:7 [INFO] [stdout] | [INFO] [stdout] 42 | #[error( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> tests/test_transparent.rs:51:7 [INFO] [stdout] | [INFO] [stdout] 51 | #[error("this failed: {0}_{1}")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> tests/test_expr.rs:107:7 [INFO] [stdout] | [INFO] [stdout] 107 | #[error("{A} {b}", b = &0 as &dyn Trait)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> tests/test_transparent.rs:54:11 [INFO] [stdout] | [INFO] [stdout] 54 | #[error(transparent)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> tests/test_transparent.rs:69:7 [INFO] [stdout] | [INFO] [stdout] 69 | #[error(transparent)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `from` in this scope [INFO] [stdout] --> tests/test_transparent.rs:70:18 [INFO] [stdout] | [INFO] [stdout] 70 | struct Any(#[from] anyhow::Error); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> tests/test_transparent.rs:80:7 [INFO] [stdout] | [INFO] [stdout] 80 | #[error(transparent)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> tests/test_transparent.rs:87:11 [INFO] [stdout] | [INFO] [stdout] 87 | #[error("unexpected token: {:?}", token)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `supply-chain-trust-example-crate-000038` (test "test_lints") due to 12 previous errors [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> tests/test_generics.rs:41:7 [INFO] [stdout] | [INFO] [stdout] 41 | #[error("{0:?}")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `supply-chain-trust-example-crate-000038` (test "test_expr") due to 12 previous errors [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> tests/test_generics.rs:56:7 [INFO] [stdout] | [INFO] [stdout] 56 | #[error("enum from generic")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `from` in this scope [INFO] [stdout] --> tests/test_generics.rs:57:14 [INFO] [stdout] | [INFO] [stdout] 57 | Source(#[from] EnumDebugGeneric), [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> tests/test_generics.rs:75:7 [INFO] [stdout] | [INFO] [stdout] 75 | #[error("{0} {1:?}")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> tests/test_generics.rs:77:7 [INFO] [stdout] | [INFO] [stdout] 77 | #[error("{0}")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> tests/test_generics.rs:79:7 [INFO] [stdout] | [INFO] [stdout] 79 | #[error("{1:?}")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> tests/test_lints.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | #[error("...")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> tests/test_generics.rs:116:7 [INFO] [stdout] | [INFO] [stdout] 116 | #[error(transparent)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> tests/test_generics.rs:131:3 [INFO] [stdout] | [INFO] [stdout] 131 | #[error("{underlying:?}")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `from` in this scope [INFO] [stdout] --> tests/test_generics.rs:145:7 [INFO] [stdout] | [INFO] [stdout] 145 | #[from] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> tests/test_generics.rs:161:3 [INFO] [stdout] | [INFO] [stdout] 161 | #[error(transparent)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> tests/test_generics.rs:176:7 [INFO] [stdout] | [INFO] [stdout] 176 | #[error("couldn't parse matrix")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `CompilerError` doesn't implement `std::fmt::Display` [INFO] [stdout] --> tests/test_expr.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 62 | assert( [INFO] [stdout] | ------ required by a bound introduced by this call [INFO] [stdout] 63 | "cannot shift left by 32 or more bits (got 50)", [INFO] [stdout] 64 | / CompilerError::TooManyShiftBits { [INFO] [stdout] 65 | | is_left: true, [INFO] [stdout] 66 | | maximum: 32, [INFO] [stdout] 67 | | current: 50, [INFO] [stdout] 68 | | }, [INFO] [stdout] | |_________^ the trait `std::fmt::Display` is not implemented for `CompilerError` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `assert` [INFO] [stdout] --> tests/test_expr.rs:56:14 [INFO] [stdout] | [INFO] [stdout] 56 | fn assert(expected: &str, value: T) { [INFO] [stdout] | ^^^^^^^ required by this bound in `assert` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> tests/test_generics.rs:178:7 [INFO] [stdout] | [INFO] [stdout] 178 | #[error("couldn't parse entry: {0}")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `from` in this scope [INFO] [stdout] --> tests/test_lints.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct MyError(#[from] anyhow::Error); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> tests/test_generics.rs:186:7 [INFO] [stdout] | [INFO] [stdout] 186 | #[error("{thing}", thing = "...")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> tests/test_generics.rs:198:7 [INFO] [stdout] | [INFO] [stdout] 198 | #[error("0x{thing:x} 0x{thing:X}")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> tests/test_lints.rs:27:7 [INFO] [stdout] | [INFO] [stdout] 27 | #[error("...")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> tests/test_lints.rs:39:7 [INFO] [stdout] | [INFO] [stdout] 39 | #[error("...")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `from` in this scope [INFO] [stdout] --> tests/test_lints.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | A(#[from] std::io::Error), [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `CompilerError` doesn't implement `std::fmt::Display` [INFO] [stdout] --> tests/test_expr.rs:71:28 [INFO] [stdout] | [INFO] [stdout] 71 | assert("#error A B C", CompilerError::User(vec!["A", "B", "C"])); [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::fmt::Display` is not implemented for `CompilerError` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `assert` [INFO] [stdout] --> tests/test_expr.rs:56:14 [INFO] [stdout] | [INFO] [stdout] 56 | fn assert(expected: &str, value: T) { [INFO] [stdout] | ^^^^^^^ required by this bound in `assert` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `CompilerError` doesn't implement `std::fmt::Display` [INFO] [stdout] --> tests/test_expr.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 73 | assert( [INFO] [stdout] | ------ required by a bound introduced by this call [INFO] [stdout] 74 | "overflow while parsing signed integer literal", [INFO] [stdout] 75 | / CompilerError::IntegerOverflow { [INFO] [stdout] 76 | | is_signed: Some(true), [INFO] [stdout] 77 | | }, [INFO] [stdout] | |_________^ the trait `std::fmt::Display` is not implemented for `CompilerError` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `assert` [INFO] [stdout] --> tests/test_expr.rs:56:14 [INFO] [stdout] | [INFO] [stdout] 56 | fn assert(expected: &str, value: T) { [INFO] [stdout] | ^^^^^^^ required by this bound in `assert` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `RustupError` doesn't implement `std::fmt::Display` [INFO] [stdout] --> tests/test_expr.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 83 | assert( [INFO] [stdout] | ------ required by a bound introduced by this call [INFO] [stdout] 84 | "toolchain 'nightly' does not contain component clipy; did you mean 'clippy'?", [INFO] [stdout] 85 | / RustupError::UnknownComponent { [INFO] [stdout] 86 | | name: "nightly".to_owned(), [INFO] [stdout] 87 | | component: "clipy".to_owned(), [INFO] [stdout] 88 | | suggestion: Some("clippy".to_owned()), [INFO] [stdout] 89 | | }, [INFO] [stdout] | |_________^ the trait `std::fmt::Display` is not implemented for `RustupError` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `assert` [INFO] [stdout] --> tests/test_expr.rs:56:14 [INFO] [stdout] | [INFO] [stdout] 56 | fn assert(expected: &str, value: T) { [INFO] [stdout] | ^^^^^^^ required by this bound in `assert` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> tests/test_lints.rs:54:7 [INFO] [stdout] | [INFO] [stdout] 54 | #[error("...")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> tests/test_lints.rs:58:7 [INFO] [stdout] | [INFO] [stdout] 58 | #[error("{message} {}", .message)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `test_assoc_type_equality_constraint::Error` doesn't implement `std::fmt::Display` [INFO] [stdout] --> tests/test_expr.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 112 | assert( [INFO] [stdout] | ------ required by a bound introduced by this call [INFO] [stdout] 113 | "... 0", [INFO] [stdout] 114 | / Error { [INFO] [stdout] 115 | | A: PathBuf::from("..."), [INFO] [stdout] 116 | | }, [INFO] [stdout] | |_________^ the trait `std::fmt::Display` is not implemented for `test_assoc_type_equality_constraint::Error` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `assert` [INFO] [stdout] --> tests/test_expr.rs:56:14 [INFO] [stdout] | [INFO] [stdout] 56 | fn assert(expected: &str, value: T) { [INFO] [stdout] | ^^^^^^^ required by this bound in `assert` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> tests/test_lints.rs:67:11 [INFO] [stdout] | [INFO] [stdout] 67 | #[error("...")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> tests/test_lints.rs:74:11 [INFO] [stdout] | [INFO] [stdout] 74 | #[error("...")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `error` in this scope [INFO] [stdout] --> tests/test_lints.rs:80:11 [INFO] [stdout] | [INFO] [stdout] 80 | #[error(transparent)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `from` in this scope [INFO] [stdout] --> tests/test_lints.rs:82:15 [INFO] [stdout] | [INFO] [stdout] 82 | #[from] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `test_transparent_struct::Error` doesn't implement `std::fmt::Display` [INFO] [stdout] --> tests/test_transparent.rs:21:28 [INFO] [stdout] | [INFO] [stdout] 10 | struct Error(ErrorKind); [INFO] [stdout] | ------------ method `to_string` not found for this struct because it doesn't satisfy `test_transparent_struct::Error: ToString` or `test_transparent_struct::Error: std::fmt::Display` [INFO] [stdout] ... [INFO] [stdout] 21 | assert_eq!("E0", error.to_string()); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `test_transparent_struct::Error` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `test_transparent_struct::Error: std::fmt::Display` [INFO] [stdout] which is required by `test_transparent_struct::Error: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/fmt/mod.rs:1006:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `EnumCompound` doesn't implement `std::fmt::Display` [INFO] [stdout] --> tests/test_generics.rs:94:30 [INFO] [stdout] | [INFO] [stdout] 94 | assert_eq!(format!("{}", instance), "display only DebugOnly"); [INFO] [stdout] | -- ^^^^^^^^ `EnumCompound` cannot be formatted with the default formatter [INFO] [stdout] | | [INFO] [stdout] | required by this formatting parameter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `EnumCompound` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::__export::format_args` which comes from the expansion of the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `EnumCompound` doesn't implement `std::fmt::Display` [INFO] [stdout] --> tests/test_generics.rs:97:30 [INFO] [stdout] | [INFO] [stdout] 97 | assert_eq!(format!("{}", instance), "display only"); [INFO] [stdout] | -- ^^^^^^^^ `EnumCompound` cannot be formatted with the default formatter [INFO] [stdout] | | [INFO] [stdout] | required by this formatting parameter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `EnumCompound` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::__export::format_args` which comes from the expansion of the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `EnumCompound` doesn't implement `std::fmt::Display` [INFO] [stdout] --> tests/test_generics.rs:100:30 [INFO] [stdout] | [INFO] [stdout] 100 | assert_eq!(format!("{}", instance), "DebugOnly"); [INFO] [stdout] | -- ^^^^^^^^ `EnumCompound` cannot be formatted with the default formatter [INFO] [stdout] | | [INFO] [stdout] | required by this formatting parameter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `EnumCompound` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::__export::format_args` which comes from the expansion of the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0599]: `test_no_bound_on_named_fmt::Error` doesn't implement `std::fmt::Display` [INFO] [stdout] --> tests/test_generics.rs:192:22 [INFO] [stdout] | [INFO] [stdout] 187 | struct Error { [INFO] [stdout] | --------------- method `to_string` not found for this struct because it doesn't satisfy `_: Display` or `_: ToString` [INFO] [stdout] ... [INFO] [stdout] 192 | assert_eq!(error.to_string(), "..."); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `test_no_bound_on_named_fmt::Error` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `test_no_bound_on_named_fmt::Error: std::fmt::Display` [INFO] [stdout] which is required by `test_no_bound_on_named_fmt::Error: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/fmt/mod.rs:1006:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `source` found for struct `test_transparent_struct::Error` in the current scope [INFO] [stdout] --> tests/test_transparent.rs:22:19 [INFO] [stdout] | [INFO] [stdout] 10 | struct Error(ErrorKind); [INFO] [stdout] | ------------ method `source` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 22 | assert!(error.source().is_none()); [INFO] [stdout] | ^^^^^^ method not found in `test_transparent_struct::Error` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `source`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `std::error::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `test_multiple_bound::Error` doesn't implement `std::fmt::Display` [INFO] [stdout] --> tests/test_generics.rs:204:22 [INFO] [stdout] | [INFO] [stdout] 199 | pub struct Error { [INFO] [stdout] | ------------------- method `to_string` not found for this struct because it doesn't satisfy `test_multiple_bound::Error: ToString` or `test_multiple_bound::Error: std::fmt::Display` [INFO] [stdout] ... [INFO] [stdout] 204 | assert_eq!(error.to_string(), "0xff 0xFF"); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `test_multiple_bound::Error` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `test_multiple_bound::Error: std::fmt::Display` [INFO] [stdout] which is required by `test_multiple_bound::Error: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/fmt/mod.rs:1006:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test_transparent.rs:25:39 [INFO] [stdout] | [INFO] [stdout] 25 | let error = Error(ErrorKind::from(io)); [INFO] [stdout] | --------------- ^^ expected `ErrorKind`, found `Error` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/convert/mod.rs:596:8 [INFO] [stdout] help: try wrapping the expression in `test_transparent_struct::ErrorKind::E1` [INFO] [stdout] | [INFO] [stdout] 25 | let error = Error(ErrorKind::from(test_transparent_struct::ErrorKind::E1(io))); [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `test_transparent_struct::Error` doesn't implement `std::fmt::Display` [INFO] [stdout] --> tests/test_transparent.rs:26:28 [INFO] [stdout] | [INFO] [stdout] 10 | struct Error(ErrorKind); [INFO] [stdout] | ------------ method `to_string` not found for this struct because it doesn't satisfy `test_transparent_struct::Error: ToString` or `test_transparent_struct::Error: std::fmt::Display` [INFO] [stdout] ... [INFO] [stdout] 26 | assert_eq!("E1", error.to_string()); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `test_transparent_struct::Error` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `test_transparent_struct::Error: std::fmt::Display` [INFO] [stdout] which is required by `test_transparent_struct::Error: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/fmt/mod.rs:1006:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `supply-chain-trust-example-crate-000038` (test "test_generics") due to 20 previous errors [INFO] [stdout] error[E0599]: no method named `source` found for struct `test_transparent_struct::Error` in the current scope [INFO] [stdout] --> tests/test_transparent.rs:27:11 [INFO] [stdout] | [INFO] [stdout] 10 | struct Error(ErrorKind); [INFO] [stdout] | ------------ method `source` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 27 | error.source().unwrap().downcast_ref::().unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `test_transparent_struct::Error` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `source`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `std::error::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `test_transparent_enum::Error` doesn't implement `std::fmt::Display` [INFO] [stdout] --> tests/test_transparent.rs:41:37 [INFO] [stdout] | [INFO] [stdout] 33 | enum Error { [INFO] [stdout] | ---------- method `to_string` not found for this enum because it doesn't satisfy `test_transparent_enum::Error: ToString` or `test_transparent_enum::Error: std::fmt::Display` [INFO] [stdout] ... [INFO] [stdout] 41 | assert_eq!("this failed", error.to_string()); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `test_transparent_enum::Error` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `test_transparent_enum::Error: std::fmt::Display` [INFO] [stdout] which is required by `test_transparent_enum::Error: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/fmt/mod.rs:1006:1 [INFO] [stdout] note: the method `to_string` exists on the type `anyhow::Error` [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/alloc/src/string.rs:2795:5 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `test_transparent_enum::Error` doesn't implement `std::fmt::Display` [INFO] [stdout] --> tests/test_transparent.rs:44:31 [INFO] [stdout] | [INFO] [stdout] 33 | enum Error { [INFO] [stdout] | ---------- method `to_string` not found for this enum because it doesn't satisfy `test_transparent_enum::Error: ToString` or `test_transparent_enum::Error: std::fmt::Display` [INFO] [stdout] ... [INFO] [stdout] 44 | assert_eq!("outer", error.to_string()); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `test_transparent_enum::Error` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `test_transparent_enum::Error: std::fmt::Display` [INFO] [stdout] which is required by `test_transparent_enum::Error: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/fmt/mod.rs:1006:1 [INFO] [stdout] note: the method `to_string` exists on the type `anyhow::Error` [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/alloc/src/string.rs:2795:5 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `source` found for enum `test_transparent_enum::Error` in the current scope [INFO] [stdout] --> tests/test_transparent.rs:45:31 [INFO] [stdout] | [INFO] [stdout] 33 | enum Error { [INFO] [stdout] | ---------- method `source` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 45 | assert_eq!("inner", error.source().unwrap().to_string()); [INFO] [stdout] | ^^^^^^ method not found in `test_transparent_enum::Error` [INFO] [stdout] | [INFO] [stdout] note: the method `source` exists on the type `anyhow::Error` [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/error.rs:105:5 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `source`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `std::error::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `test_transparent_enum_with_default_message::Error` doesn't implement `std::fmt::Display` [INFO] [stdout] --> tests/test_transparent.rs:59:44 [INFO] [stdout] | [INFO] [stdout] 52 | enum Error { [INFO] [stdout] | ---------- method `to_string` not found for this enum because it doesn't satisfy `_: Display` or `_: ToString` [INFO] [stdout] ... [INFO] [stdout] 59 | assert_eq!("this failed: -1_-1", error.to_string()); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `test_transparent_enum_with_default_message::Error` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `test_transparent_enum_with_default_message::Error: std::fmt::Display` [INFO] [stdout] which is required by `test_transparent_enum_with_default_message::Error: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/fmt/mod.rs:1006:1 [INFO] [stdout] note: the method `to_string` exists on the type `anyhow::Error` [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/alloc/src/string.rs:2795:5 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `test_transparent_enum_with_default_message::Error` doesn't implement `std::fmt::Display` [INFO] [stdout] --> tests/test_transparent.rs:62:31 [INFO] [stdout] | [INFO] [stdout] 52 | enum Error { [INFO] [stdout] | ---------- method `to_string` not found for this enum because it doesn't satisfy `_: Display` or `_: ToString` [INFO] [stdout] ... [INFO] [stdout] 62 | assert_eq!("outer", error.to_string()); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `test_transparent_enum_with_default_message::Error` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `test_transparent_enum_with_default_message::Error: std::fmt::Display` [INFO] [stdout] which is required by `test_transparent_enum_with_default_message::Error: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/fmt/mod.rs:1006:1 [INFO] [stdout] note: the method `to_string` exists on the type `anyhow::Error` [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/alloc/src/string.rs:2795:5 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `source` found for enum `test_transparent_enum_with_default_message::Error` in the current scope [INFO] [stdout] --> tests/test_transparent.rs:63:31 [INFO] [stdout] | [INFO] [stdout] 52 | enum Error { [INFO] [stdout] | ---------- method `source` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 63 | assert_eq!("inner", error.source().unwrap().to_string()); [INFO] [stdout] | ^^^^^^ method not found in `test_transparent_enum_with_default_message::Error` [INFO] [stdout] | [INFO] [stdout] note: the method `source` exists on the type `anyhow::Error` [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/error.rs:105:5 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `source`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `std::error::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/test_transparent.rs:72:27 [INFO] [stdout] | [INFO] [stdout] 72 | let error = Any::from(anyhow!("inner").context("outer")); [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Any`, found `Error` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/convert/mod.rs:596:8 [INFO] [stdout] help: try wrapping the expression in `test_anyhow::Any` [INFO] [stdout] | [INFO] [stdout] 72 | let error = Any::from(test_anyhow::Any(anyhow!("inner").context("outer"))); [INFO] [stdout] | +++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `test_anyhow::Any` doesn't implement `std::fmt::Display` [INFO] [stdout] --> tests/test_transparent.rs:73:31 [INFO] [stdout] | [INFO] [stdout] 70 | struct Any(#[from] anyhow::Error); [INFO] [stdout] | ---------- method `to_string` not found for this struct because it doesn't satisfy `test_anyhow::Any: ToString` or `test_anyhow::Any: std::fmt::Display` [INFO] [stdout] ... [INFO] [stdout] 73 | assert_eq!("outer", error.to_string()); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `test_anyhow::Any` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `test_anyhow::Any: std::fmt::Display` [INFO] [stdout] which is required by `test_anyhow::Any: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/fmt/mod.rs:1006:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `source` found for struct `test_anyhow::Any` in the current scope [INFO] [stdout] --> tests/test_transparent.rs:74:31 [INFO] [stdout] | [INFO] [stdout] 70 | struct Any(#[from] anyhow::Error); [INFO] [stdout] | ---------- method `source` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 74 | assert_eq!("inner", error.source().unwrap().to_string()); [INFO] [stdout] | ^^^^^^ method not found in `test_anyhow::Any` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `source`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `std::error::Error` [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 74 | assert_eq!("inner", error.0.source().unwrap().to_string()); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `to_string` exists for struct `test_non_static::Error<'_>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/test_transparent.rs:94:53 [INFO] [stdout] | [INFO] [stdout] 81 | struct Error<'a> { [INFO] [stdout] | ---------------- method `to_string` not found for this struct because it doesn't satisfy `test_non_static::Error<'_>: ToString` or `test_non_static::Error<'_>: std::fmt::Display` [INFO] [stdout] ... [INFO] [stdout] 94 | assert_eq!("unexpected token: \"error\"", error.to_string()); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `test_non_static::Error<'_>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `test_non_static::Error<'_>: std::fmt::Display` [INFO] [stdout] which is required by `test_non_static::Error<'_>: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/fmt/mod.rs:1006:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `source` found for struct `test_non_static::Error<'a>` in the current scope [INFO] [stdout] --> tests/test_transparent.rs:95:19 [INFO] [stdout] | [INFO] [stdout] 81 | struct Error<'a> { [INFO] [stdout] | ---------------- method `source` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 95 | assert!(error.source().is_none()); [INFO] [stdout] | ^^^^^^ method not found in `test_non_static::Error<'_>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `source`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `std::error::Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `supply-chain-trust-example-crate-000038` (test "test_transparent") due to 29 previous errors [INFO] running `Command { std: "docker" "inspect" "31ed72c7df8428f98e0692a5cc8068ef3dc1c6b6dd8414e512b204a51f03dbaa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "31ed72c7df8428f98e0692a5cc8068ef3dc1c6b6dd8414e512b204a51f03dbaa", kill_on_drop: false }` [INFO] [stdout] 31ed72c7df8428f98e0692a5cc8068ef3dc1c6b6dd8414e512b204a51f03dbaa