[INFO] cloning repository https://github.com/AlexanderThaller/bench-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AlexanderThaller/bench-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlexanderThaller%2Fbench-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlexanderThaller%2Fbench-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4c183eaaad3b8198101c079fcdea328965a957a7 [INFO] checking AlexanderThaller/bench-rs against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlexanderThaller%2Fbench-rs" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/AlexanderThaller/bench-rs on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/AlexanderThaller/bench-rs [INFO] finished tweaking git repo https://github.com/AlexanderThaller/bench-rs [INFO] tweaked toml for git repo https://github.com/AlexanderThaller/bench-rs written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/AlexanderThaller/bench-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", 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] 6e1a97833cdc8e3ef772ab96bf0e94a2dcd3174d117700580a0cdfd29065a95a [INFO] running `Command { std: "docker" "start" "-a" "6e1a97833cdc8e3ef772ab96bf0e94a2dcd3174d117700580a0cdfd29065a95a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6e1a97833cdc8e3ef772ab96bf0e94a2dcd3174d117700580a0cdfd29065a95a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6e1a97833cdc8e3ef772ab96bf0e94a2dcd3174d117700580a0cdfd29065a95a", kill_on_drop: false }` [INFO] [stdout] 6e1a97833cdc8e3ef772ab96bf0e94a2dcd3174d117700580a0cdfd29065a95a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--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] aaddfda2c2c9ebf1b2812044c536b07ce993a1d0d74e34515fd5f4f93d43a466 [INFO] running `Command { std: "docker" "start" "-a" "aaddfda2c2c9ebf1b2812044c536b07ce993a1d0d74e34515fd5f4f93d43a466", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-xid v0.0.4 [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Checking cfg-if v0.1.2 [INFO] [stderr] Checking num-traits v0.1.42 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking unicode-width v0.1.4 [INFO] [stderr] Checking cast v0.2.2 [INFO] [stderr] Checking dtoa v0.4.2 [INFO] [stderr] Compiling pest v1.0.3 [INFO] [stderr] Checking rustc-demangle v0.1.5 [INFO] [stderr] Checking serde v1.0.27 [INFO] [stderr] Checking either v1.4.0 [INFO] [stderr] Checking itoa v0.3.4 [INFO] [stderr] Checking utf8-ranges v1.0.0 [INFO] [stderr] Checking vec_map v0.8.0 [INFO] [stderr] Checking bitflags v1.0.1 [INFO] [stderr] Checking thread-scoped v1.0.2 [INFO] [stderr] Checking strsim v0.7.0 [INFO] [stderr] Checking yaml-rust v0.3.5 [INFO] [stderr] Checking term v0.4.6 [INFO] [stderr] Checking ansi_term v0.10.2 [INFO] [stderr] Checking quick-error v1.2.1 [INFO] [stderr] Checking byteorder v1.2.1 [INFO] [stderr] Checking memchr v2.0.1 [INFO] [stderr] Checking atty v0.2.6 [INFO] [stderr] Checking isatty v0.1.6 [INFO] [stderr] Compiling backtrace-sys v0.1.16 [INFO] [stderr] Checking unreachable v1.0.0 [INFO] [stderr] Checking log v0.4.1 [INFO] [stderr] Compiling synom v0.11.3 [INFO] [stderr] Checking itertools v0.7.6 [INFO] [stderr] Checking textwrap v0.9.0 [INFO] [stderr] Checking aho-corasick v0.6.4 [INFO] [stderr] Checking thread_local v0.3.5 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Checking log v0.3.9 [INFO] [stderr] Checking clap v2.29.3 [INFO] [stderr] Checking regex v0.2.5 [INFO] [stderr] Checking simplelog v0.4.4 [INFO] [stderr] Checking criterion-stats v0.2.0 [INFO] [stderr] Checking itertools-num v0.1.1 [INFO] [stderr] Checking criterion-plot v0.2.0 [INFO] [stderr] Compiling synstructure v0.6.1 [INFO] [stderr] Compiling serde_derive_internals v0.19.0 [INFO] [stderr] Compiling pest_derive v1.0.3 [INFO] [stderr] Compiling failure_derive v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.27 [INFO] [stderr] Checking serde_json v1.0.9 [INFO] [stderr] Checking handlebars v0.30.1 [INFO] [stderr] Checking backtrace v0.3.5 [INFO] [stderr] Checking failure v0.1.1 [INFO] [stderr] Checking criterion v0.2.0 [INFO] [stderr] Checking bench v1.0.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0597]: `matches` does not live long enough [INFO] [stdout] --> src/main.rs:42:27 [INFO] [stdout] | [INFO] [stdout] 42 | let mut command = matches.values_of("command").unwrap(); [INFO] [stdout] | ^^^^^^^--------------------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `matches` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 63 | } [INFO] [stdout] | - `matches` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `command_args`, which is owned by the current function [INFO] [stdout] --> src/main.rs:58:38 [INFO] [stdout] | [INFO] [stdout] 58 | .bench_function(id.as_str(), |b| { [INFO] [stdout] | ^^^ may outlive borrowed value `command_args` [INFO] [stdout] 59 | b.iter(|| create_command(command_name, &command_args).output()) [INFO] [stdout] | ------------ `command_args` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: function requires argument type to outlive `'static` [INFO] [stdout] --> src/main.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | / Criterion::default() [INFO] [stdout] 57 | | .sample_size(sample_size) [INFO] [stdout] 58 | | .bench_function(id.as_str(), |b| { [INFO] [stdout] 59 | | b.iter(|| create_command(command_name, &command_args).output()) [INFO] [stdout] 60 | | }); [INFO] [stdout] | |__________^ [INFO] [stdout] help: to force the closure to take ownership of `command_args` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 58 | .bench_function(id.as_str(), move |b| { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `command_name`, which is owned by the current function [INFO] [stdout] --> src/main.rs:58:38 [INFO] [stdout] | [INFO] [stdout] 58 | .bench_function(id.as_str(), |b| { [INFO] [stdout] | ^^^ may outlive borrowed value `command_name` [INFO] [stdout] 59 | b.iter(|| create_command(command_name, &command_args).output()) [INFO] [stdout] | ------------ `command_name` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: function requires argument type to outlive `'static` [INFO] [stdout] --> src/main.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | / Criterion::default() [INFO] [stdout] 57 | | .sample_size(sample_size) [INFO] [stdout] 58 | | .bench_function(id.as_str(), |b| { [INFO] [stdout] 59 | | b.iter(|| create_command(command_name, &command_args).output()) [INFO] [stdout] 60 | | }); [INFO] [stdout] | |__________^ [INFO] [stdout] help: to force the closure to take ownership of `command_name` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 58 | .bench_function(id.as_str(), move |b| { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/main.rs:28:16 [INFO] [stdout] | [INFO] [stdout] 28 | let yaml = load_yaml!("cli.yml"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ creates a temporary which is freed while still in use [INFO] [stdout] 29 | let matches = App::from_yaml(yaml).version(crate_version!()).get_matches(); [INFO] [stdout] | -------------------- argument requires that borrow lasts for `'static` [INFO] [stdout] ... [INFO] [stdout] 63 | } [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0373, E0597, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0373`. [INFO] [stdout] [INFO] [stderr] error: could not compile `bench` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0597]: `matches` does not live long enough [INFO] [stdout] --> src/main.rs:42:27 [INFO] [stdout] | [INFO] [stdout] 42 | let mut command = matches.values_of("command").unwrap(); [INFO] [stdout] | ^^^^^^^--------------------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `matches` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 63 | } [INFO] [stdout] | - `matches` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `command_args`, which is owned by the current function [INFO] [stdout] --> src/main.rs:58:38 [INFO] [stdout] | [INFO] [stdout] 58 | .bench_function(id.as_str(), |b| { [INFO] [stdout] | ^^^ may outlive borrowed value `command_args` [INFO] [stdout] 59 | b.iter(|| create_command(command_name, &command_args).output()) [INFO] [stdout] | ------------ `command_args` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: function requires argument type to outlive `'static` [INFO] [stdout] --> src/main.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | / Criterion::default() [INFO] [stdout] 57 | | .sample_size(sample_size) [INFO] [stdout] 58 | | .bench_function(id.as_str(), |b| { [INFO] [stdout] 59 | | b.iter(|| create_command(command_name, &command_args).output()) [INFO] [stdout] 60 | | }); [INFO] [stdout] | |__________^ [INFO] [stdout] help: to force the closure to take ownership of `command_args` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 58 | .bench_function(id.as_str(), move |b| { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `command_name`, which is owned by the current function [INFO] [stdout] --> src/main.rs:58:38 [INFO] [stdout] | [INFO] [stdout] 58 | .bench_function(id.as_str(), |b| { [INFO] [stdout] | ^^^ may outlive borrowed value `command_name` [INFO] [stdout] 59 | b.iter(|| create_command(command_name, &command_args).output()) [INFO] [stdout] | ------------ `command_name` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: function requires argument type to outlive `'static` [INFO] [stdout] --> src/main.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | / Criterion::default() [INFO] [stdout] 57 | | .sample_size(sample_size) [INFO] [stdout] 58 | | .bench_function(id.as_str(), |b| { [INFO] [stdout] 59 | | b.iter(|| create_command(command_name, &command_args).output()) [INFO] [stdout] 60 | | }); [INFO] [stdout] | |__________^ [INFO] [stdout] help: to force the closure to take ownership of `command_name` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 58 | .bench_function(id.as_str(), move |b| { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/main.rs:28:16 [INFO] [stdout] | [INFO] [stdout] 28 | let yaml = load_yaml!("cli.yml"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ creates a temporary which is freed while still in use [INFO] [stdout] 29 | let matches = App::from_yaml(yaml).version(crate_version!()).get_matches(); [INFO] [stdout] | -------------------- argument requires that borrow lasts for `'static` [INFO] [stdout] ... [INFO] [stdout] 63 | } [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0373, E0597, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0373`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "aaddfda2c2c9ebf1b2812044c536b07ce993a1d0d74e34515fd5f4f93d43a466", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aaddfda2c2c9ebf1b2812044c536b07ce993a1d0d74e34515fd5f4f93d43a466", kill_on_drop: false }` [INFO] [stdout] aaddfda2c2c9ebf1b2812044c536b07ce993a1d0d74e34515fd5f4f93d43a466