[INFO] fetching crate sirius-macros 0.1.1... [INFO] testing sirius-macros-0.1.1 against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-1 [INFO] extracting crate sirius-macros 0.1.1 into /workspace/builds/worker-7-tc2/source [INFO] started tweaking crates.io crate sirius-macros 0.1.1 [INFO] finished tweaking crates.io crate sirius-macros 0.1.1 [INFO] tweaked toml for crates.io crate sirius-macros 0.1.1 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate sirius-macros 0.1.1 on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate sirius-macros 0.1.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 318715c9ee0beda605970e15be540b90970a27ab0dce90b7555d33946ac7cdd8 [INFO] running `Command { std: "docker" "start" "-a" "318715c9ee0beda605970e15be540b90970a27ab0dce90b7555d33946ac7cdd8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "318715c9ee0beda605970e15be540b90970a27ab0dce90b7555d33946ac7cdd8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "318715c9ee0beda605970e15be540b90970a27ab0dce90b7555d33946ac7cdd8", kill_on_drop: false }` [INFO] [stdout] 318715c9ee0beda605970e15be540b90970a27ab0dce90b7555d33946ac7cdd8 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 744d0bbda2304942d31121a12900a0bb4f685a3ab04ecad474f0ed7101649006 [INFO] running `Command { std: "docker" "start" "-a" "744d0bbda2304942d31121a12900a0bb4f685a3ab04ecad474f0ed7101649006", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling sirius-macros v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.03s [INFO] running `Command { std: "docker" "inspect" "744d0bbda2304942d31121a12900a0bb4f685a3ab04ecad474f0ed7101649006", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "744d0bbda2304942d31121a12900a0bb4f685a3ab04ecad474f0ed7101649006", kill_on_drop: false }` [INFO] [stdout] 744d0bbda2304942d31121a12900a0bb4f685a3ab04ecad474f0ed7101649006 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ef8a24af89b47a8e437ff7315d09c71093627e5b77b4fae7d3bae549f4149a03 [INFO] running `Command { std: "docker" "start" "-a" "ef8a24af89b47a8e437ff7315d09c71093627e5b77b4fae7d3bae549f4149a03", kill_on_drop: false }` [INFO] [stderr] Compiling sirius-macros v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.60s [INFO] running `Command { std: "docker" "inspect" "ef8a24af89b47a8e437ff7315d09c71093627e5b77b4fae7d3bae549f4149a03", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef8a24af89b47a8e437ff7315d09c71093627e5b77b4fae7d3bae549f4149a03", kill_on_drop: false }` [INFO] [stdout] ef8a24af89b47a8e437ff7315d09c71093627e5b77b4fae7d3bae549f4149a03 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b3ebe61e481739f4cfec3daa8114ac4ffc55fe865e8375baa0426c94d8332bde [INFO] running `Command { std: "docker" "start" "-a" "b3ebe61e481739f4cfec3daa8114ac4ffc55fe865e8375baa0426c94d8332bde", 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/sirius_macros-59a313e60df63362) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests sirius_macros [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/derive.rs - derive::impl_struct (line 33) - compile ... FAILED [INFO] [stdout] test src/derive.rs - derive::impl_struct (line 21) - compile ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/derive.rs - derive::impl_struct (line 33) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/derive.rs:36:59 [INFO] [stdout] | [INFO] [stdout] 36 | let field1 = T1::deserialize(data.get(offset..).ok_or(...)?)?; offset += field1.1; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 36 - let field1 = T1::deserialize(data.get(offset..).ok_or(...)?)?; offset += field1.1; [INFO] [stdout] 36 + let field1 = T1::deserialize(data.get(offset..).ok_or(..)?)?; offset += field1.1; [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 36 - let field1 = T1::deserialize(data.get(offset..).ok_or(...)?)?; offset += field1.1; [INFO] [stdout] 36 + let field1 = T1::deserialize(data.get(offset..).ok_or(..=)?)?; offset += field1.1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/derive.rs:36:59 [INFO] [stdout] | [INFO] [stdout] 36 | let field1 = T1::deserialize(data.get(offset..).ok_or(...)?)?; offset += field1.1; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 36 - let field1 = T1::deserialize(data.get(offset..).ok_or(...)?)?; offset += field1.1; [INFO] [stdout] 36 + let field1 = T1::deserialize(data.get(offset..).ok_or(..)?)?; offset += field1.1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/derive.rs:37:59 [INFO] [stdout] | [INFO] [stdout] 37 | let field2 = T2::deserialize(data.get(offset..).ok_or(...)?)?; offset += field2.1; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 37 - let field2 = T2::deserialize(data.get(offset..).ok_or(...)?)?; offset += field2.1; [INFO] [stdout] 37 + let field2 = T2::deserialize(data.get(offset..).ok_or(..)?)?; offset += field2.1; [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 37 - let field2 = T2::deserialize(data.get(offset..).ok_or(...)?)?; offset += field2.1; [INFO] [stdout] 37 + let field2 = T2::deserialize(data.get(offset..).ok_or(..=)?)?; offset += field2.1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/derive.rs:37:59 [INFO] [stdout] | [INFO] [stdout] 37 | let field2 = T2::deserialize(data.get(offset..).ok_or(...)?)?; offset += field2.1; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 37 - let field2 = T2::deserialize(data.get(offset..).ok_or(...)?)?; offset += field2.1; [INFO] [stdout] 37 + let field2 = T2::deserialize(data.get(offset..).ok_or(..)?)?; offset += field2.1; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0411]: cannot find type `Self` in this scope [INFO] [stdout] --> src/derive.rs:34:40 [INFO] [stdout] | [INFO] [stdout] 34 | fn deserialize(data: &[u8]) -> Result<(Self, usize), sirius::SiriusError> { [INFO] [stdout] | ----------- ^^^^ `Self` is only available in impls, traits, and type definitions [INFO] [stdout] | | [INFO] [stdout] | `Self` not allowed in a function [INFO] [stdout] [INFO] [stdout] error[E0411]: cannot find struct, variant or union type `Self` in this scope [INFO] [stdout] --> src/derive.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 34 | fn deserialize(data: &[u8]) -> Result<(Self, usize), sirius::SiriusError> { [INFO] [stdout] | ----------- `Self` not allowed in a function [INFO] [stdout] ... [INFO] [stdout] 39 | Ok((Self { field1: field1.0, field2: field2.0, /* ... */ }, offset)) [INFO] [stdout] | ^^^^ `Self` is only available in impls, traits, and type definitions [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `T1` in this scope [INFO] [stdout] --> src/derive.rs:36:18 [INFO] [stdout] | [INFO] [stdout] 36 | let field1 = T1::deserialize(data.get(offset..).ok_or(...)?)?; offset += field1.1; [INFO] [stdout] | ^^ use of undeclared type `T1` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `T2` in this scope [INFO] [stdout] --> src/derive.rs:37:18 [INFO] [stdout] | [INFO] [stdout] 37 | let field2 = T2::deserialize(data.get(offset..).ok_or(...)?)?; offset += field2.1; [INFO] [stdout] | ^^ use of undeclared type `T2` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `sirius` in this scope [INFO] [stdout] --> src/derive.rs:34:54 [INFO] [stdout] | [INFO] [stdout] 34 | fn deserialize(data: &[u8]) -> Result<(Self, usize), sirius::SiriusError> { [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `sirius` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `sirius`, use `cargo add sirius` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0411, E0433, E0586. [INFO] [stdout] For more information about an error, try `rustc --explain E0411`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/derive.rs - derive::impl_struct (line 21) stdout ---- [INFO] [stdout] error: `self` parameter is only allowed in associated functions [INFO] [stdout] --> src/derive.rs:22:14 [INFO] [stdout] | [INFO] [stdout] 22 | fn serialize(&self, output: &mut impl std::io::Write) -> usize { [INFO] [stdout] | ^^^^^ not semantically valid as function parameter [INFO] [stdout] | [INFO] [stdout] = note: associated functions are those in `impl` or `trait` definitions [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `sirius` in this scope [INFO] [stdout] --> src/derive.rs:24:22 [INFO] [stdout] | [INFO] [stdout] 24 | bytes_written += sirius::Sirius::serialize(&self.field1, output); [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `sirius` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `sirius`, use `cargo add sirius` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `sirius` in this scope [INFO] [stdout] --> src/derive.rs:25:22 [INFO] [stdout] | [INFO] [stdout] 25 | bytes_written += sirius::Sirius::serialize(&self.field2, output); [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `sirius` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `sirius`, use `cargo add sirius` to add it to your `Cargo.toml` [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] [INFO] [stdout] failures: [INFO] [stdout] src/derive.rs - derive::impl_struct (line 21) [INFO] [stdout] src/derive.rs - derive::impl_struct (line 33) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.17s [INFO] [stdout] [INFO] [stdout] all doctests ran in 0.31s; merged doctests compilation took 0.13s [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "b3ebe61e481739f4cfec3daa8114ac4ffc55fe865e8375baa0426c94d8332bde", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b3ebe61e481739f4cfec3daa8114ac4ffc55fe865e8375baa0426c94d8332bde", kill_on_drop: false }` [INFO] [stdout] b3ebe61e481739f4cfec3daa8114ac4ffc55fe865e8375baa0426c94d8332bde