[INFO] fetching crate siderite 0.1.2... [INFO] testing siderite-0.1.2 against master#99e3aef02079e9c10583638520cd0c134dc3a01d for pr-85530 [INFO] extracting crate siderite 0.1.2 into /workspace/builds/worker-2/source [INFO] validating manifest of crates.io crate siderite 0.1.2 on toolchain 99e3aef02079e9c10583638520cd0c134dc3a01d [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate siderite 0.1.2 [INFO] finished tweaking crates.io crate siderite 0.1.2 [INFO] tweaked toml for crates.io crate siderite 0.1.2 written to /workspace/builds/worker-2/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fd07e5c21611f5fa6807cd9940607cf7bafd93cdd37540fd3ba327399e8cf337 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "fd07e5c21611f5fa6807cd9940607cf7bafd93cdd37540fd3ba327399e8cf337", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fd07e5c21611f5fa6807cd9940607cf7bafd93cdd37540fd3ba327399e8cf337", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd07e5c21611f5fa6807cd9940607cf7bafd93cdd37540fd3ba327399e8cf337", kill_on_drop: false }` [INFO] [stdout] fd07e5c21611f5fa6807cd9940607cf7bafd93cdd37540fd3ba327399e8cf337 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1f6dbad94085375dfac59667c983114a0bd4743fb2ee220b360f40fa87a8368a [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "1f6dbad94085375dfac59667c983114a0bd4743fb2ee220b360f40fa87a8368a", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling cc v1.0.68 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling openssl-probe v0.1.4 [INFO] [stderr] Compiling fastrand v1.4.1 [INFO] [stderr] Compiling input_buffer v0.4.0 [INFO] [stderr] Compiling http v0.2.4 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling syn v1.0.72 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling rand_core v0.6.2 [INFO] [stderr] Compiling sha-1 v0.9.6 [INFO] [stderr] Compiling rand_chacha v0.3.0 [INFO] [stderr] Compiling futures-macro v0.3.15 [INFO] [stderr] Compiling futures-util v0.3.15 [INFO] [stderr] Compiling tokio v1.6.1 [INFO] [stderr] Compiling mio v0.7.11 [INFO] [stderr] Compiling rand v0.8.3 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling webpki v0.21.4 [INFO] [stderr] Compiling sct v0.6.1 [INFO] [stderr] Compiling rustls v0.19.1 [INFO] [stderr] Compiling webpki-roots v0.21.1 [INFO] [stderr] Compiling thiserror-impl v1.0.25 [INFO] [stderr] Compiling tokio-rustls v0.22.0 [INFO] [stderr] Compiling rustls-native-certs v0.5.0 [INFO] [stderr] Compiling thiserror v1.0.25 [INFO] [stderr] Compiling tungstenite v0.13.0 [INFO] [stderr] Compiling futures-executor v0.3.15 [INFO] [stderr] Compiling async-tungstenite v0.13.1 [INFO] [stderr] Compiling futures v0.3.15 [INFO] [stderr] Compiling siderite v0.1.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 32s [INFO] running `Command { std: "docker" "inspect" "1f6dbad94085375dfac59667c983114a0bd4743fb2ee220b360f40fa87a8368a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f6dbad94085375dfac59667c983114a0bd4743fb2ee220b360f40fa87a8368a", kill_on_drop: false }` [INFO] [stdout] 1f6dbad94085375dfac59667c983114a0bd4743fb2ee220b360f40fa87a8368a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] ea2e7d0ed59f0c20ebcd0798557a8ca8dab5cac8a9b05f27278e191c4c144ad4 [INFO] running `Command { std: "docker" "start" "-a" "ea2e7d0ed59f0c20ebcd0798557a8ca8dab5cac8a9b05f27278e191c4c144ad4", kill_on_drop: false }` [INFO] [stderr] Compiling siderite v0.1.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 6.36s [INFO] running `Command { std: "docker" "inspect" "ea2e7d0ed59f0c20ebcd0798557a8ca8dab5cac8a9b05f27278e191c4c144ad4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ea2e7d0ed59f0c20ebcd0798557a8ca8dab5cac8a9b05f27278e191c4c144ad4", kill_on_drop: false }` [INFO] [stdout] ea2e7d0ed59f0c20ebcd0798557a8ca8dab5cac8a9b05f27278e191c4c144ad4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] b189adefa799be0e09834000ecd7e271ee5541541cc485c21f802d7706115594 [INFO] running `Command { std: "docker" "start" "-a" "b189adefa799be0e09834000ecd7e271ee5541541cc485c21f802d7706115594", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.17s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/siderite-759ef709c14ff467) [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stderr] Doc-tests siderite [INFO] [stdout] test protocol::tests::test_method_error ... ok [INFO] [stdout] test protocol::tests::test_pingpong ... ok [INFO] [stdout] test protocol::tests::test_timestamp ... ok [INFO] [stdout] test randomslab::test_random_slab ... ok [INFO] [stdout] test protocol::tests::test_method_result ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test src/lib.rs - (line 4) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 4) stdout ---- [INFO] [stdout] error: expected expression, found `.` [INFO] [stdout] --> src/lib.rs:12:24 [INFO] [stdout] | [INFO] [stdout] 11 | .map_err(|e| eprintln!("Login failed with reason: {}", e))? [INFO] [stdout] | ^ expected expression [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/lib.rs:20:37 [INFO] [stdout] | [INFO] [stdout] 19 | ServerMessage::Added{..} => { ... } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 19 | ServerMessage::Added{..} => { .. } [INFO] [stdout] | ^^ [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 19 | ServerMessage::Added{..} => { ..= } [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/lib.rs:20:37 [INFO] [stdout] | [INFO] [stdout] 19 | ServerMessage::Added{..} => { ... } [INFO] [stdout] | ^^^ help: use `..` instead [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ServerMessage` [INFO] [stdout] --> src/lib.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 19 | ServerMessage::Added{..} => { ... } [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `ServerMessage` [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_4_0() { [INFO] [stdout] | ---------------------------- this is not `async` [INFO] [stdout] 4 | let connection = siderite::Connection::connect("wss://example.com/websocket").await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:18:23 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_4_0() { [INFO] [stdout] | ---------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 17 | while let Some(msg) = connection.recv().await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:5:84 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_4_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | let connection = siderite::Connection::connect("wss://example.com/websocket").await?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | // Make a RPC task in an independant task: [INFO] [stdout] ... | [INFO] [stdout] 21 | | } [INFO] [stdout] 22 | | } _doctest_main_src_lib_rs_4_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:10:25 [INFO] [stdout] | [INFO] [stdout] 9 | let r = handle.call("login", vec!["username".into(), "my-secret-token".into()]) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `String`, found `&str` [INFO] [stdout] | help: try using a conversion method: `"login".to_string()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0433, E0586, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 4) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.70s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "b189adefa799be0e09834000ecd7e271ee5541541cc485c21f802d7706115594", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b189adefa799be0e09834000ecd7e271ee5541541cc485c21f802d7706115594", kill_on_drop: false }` [INFO] [stdout] b189adefa799be0e09834000ecd7e271ee5541541cc485c21f802d7706115594