[INFO] fetching crate mule 0.5.0... [INFO] checking mule-0.5.0 against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] extracting crate mule 0.5.0 into /workspace/builds/worker-7-tc2/source [INFO] validating manifest of crates.io crate mule 0.5.0 on toolchain 23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate mule 0.5.0 [INFO] finished tweaking crates.io crate mule 0.5.0 [INFO] tweaked toml for crates.io crate mule 0.5.0 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate crates.io crate mule 0.5.0 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" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9e24e6435c28aa1e4b378ec3cd0a0e0b8b5b1d3c50a61f300b7fb81e415559b7 [INFO] running `Command { std: "docker" "start" "-a" "9e24e6435c28aa1e4b378ec3cd0a0e0b8b5b1d3c50a61f300b7fb81e415559b7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9e24e6435c28aa1e4b378ec3cd0a0e0b8b5b1d3c50a61f300b7fb81e415559b7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9e24e6435c28aa1e4b378ec3cd0a0e0b8b5b1d3c50a61f300b7fb81e415559b7", kill_on_drop: false }` [INFO] [stdout] 9e24e6435c28aa1e4b378ec3cd0a0e0b8b5b1d3c50a61f300b7fb81e415559b7 [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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 75b7ef5a90f80332396cf771bf01046aa9f8094004952e9696d785a3ce889221 [INFO] running `Command { std: "docker" "start" "-a" "75b7ef5a90f80332396cf771bf01046aa9f8094004952e9696d785a3ce889221", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling proc-macro2 v1.0.26 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.68 [INFO] [stderr] Compiling libc v0.2.92 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling rayon-core v1.9.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking bytes v1.0.1 [INFO] [stderr] Checking pin-project-lite v0.2.6 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Checking futures-core v0.3.13 [INFO] [stderr] Checking maplit v1.0.2 [INFO] [stderr] Checking itertools v0.10.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.3 [INFO] [stderr] Compiling memoffset v0.6.3 [INFO] [stderr] Compiling tokio v1.4.0 [INFO] [stderr] Compiling rayon v1.5.0 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking crossbeam-epoch v0.9.3 [INFO] [stderr] Checking crossbeam-channel v0.5.1 [INFO] [stderr] Checking crossbeam-deque v0.8.0 [INFO] [stderr] Compiling tokio-macros v1.1.0 [INFO] [stderr] Compiling thiserror-impl v1.0.24 [INFO] [stderr] Compiling derive_more v0.99.13 [INFO] [stderr] Checking thiserror v1.0.24 [INFO] [stderr] Checking tokio-stream v0.1.5 [INFO] [stderr] Checking mule v0.5.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/dataset_batch.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 23 | let s = DatasetFile::new(&self.file_path) [INFO] [stdout] | --------------------------------- temporary value created here [INFO] [stdout] ... [INFO] [stdout] 28 | Ok(s) [INFO] [stdout] | ^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/dataset_batch.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 23 | let s = DatasetFile::new(&self.file_path) [INFO] [stdout] | --------------------------------- temporary value created here [INFO] [stdout] ... [INFO] [stdout] 28 | Ok(s) [INFO] [stdout] | ^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/separator_inference.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | let mut lines = DatasetFile::new(path).read_lines().await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] 14 | while let Some(line_res) = lines.next().await { [INFO] [stdout] | ----- borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/separator_inference.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | let mut lines = DatasetFile::new(path).read_lines().await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] 14 | while let Some(line_res) = lines.next().await { [INFO] [stdout] | ----- borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0373]: async block may outlive the current function, but it borrows `self`, which is owned by the current function [INFO] [stdout] --> src/dataset_batch.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | #[tokio::main(flavor = "current_thread")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ may outlive borrowed value `self` [INFO] [stdout] 32 | pub async fn read_lines_blocking(self) -> Result>> { [INFO] [stdout] 33 | let l = self.read_lines().await?; [INFO] [stdout] | ---- `self` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: async block is returned here [INFO] [stdout] --> src/dataset_batch.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | #[tokio::main(flavor = "current_thread")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the attribute macro `tokio::main` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: to force the async block to take ownership of `self` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 31 | move #[tokio::main(flavor = "current_thread")] [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0373]: async block may outlive the current function, but it borrows `self`, which is owned by the current function [INFO] [stdout] --> src/dataset_batch.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | #[tokio::main(flavor = "current_thread")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ may outlive borrowed value `self` [INFO] [stdout] 32 | pub async fn read_lines_blocking(self) -> Result>> { [INFO] [stdout] 33 | let l = self.read_lines().await?; [INFO] [stdout] | ---- `self` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: async block is returned here [INFO] [stdout] --> src/dataset_batch.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | #[tokio::main(flavor = "current_thread")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the attribute macro `tokio::main` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: to force the async block to take ownership of `self` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 31 | move #[tokio::main(flavor = "current_thread")] [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0373, E0515, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0373`. [INFO] [stdout] [INFO] [stderr] error: could not compile `mule` (lib) due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0373, E0515, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0373`. [INFO] [stdout] [INFO] [stderr] error: could not compile `mule` (lib test) due to 4 previous errors [INFO] running `Command { std: "docker" "inspect" "75b7ef5a90f80332396cf771bf01046aa9f8094004952e9696d785a3ce889221", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "75b7ef5a90f80332396cf771bf01046aa9f8094004952e9696d785a3ce889221", kill_on_drop: false }` [INFO] [stdout] 75b7ef5a90f80332396cf771bf01046aa9f8094004952e9696d785a3ce889221