[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#c919f490bbcd2b29b74016101f7ec71aaa24bdbb for pr-79073 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlexanderThaller%2Fbench-rs" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/AlexanderThaller/bench-rs on toolchain c919f490bbcd2b29b74016101f7ec71aaa24bdbb [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+c919f490bbcd2b29b74016101f7ec71aaa24bdbb" "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-8/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" "+c919f490bbcd2b29b74016101f7ec71aaa24bdbb" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+c919f490bbcd2b29b74016101f7ec71aaa24bdbb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0fba54635eb9aa8cfdf009501b0692def81d1e860e619e310776b00d27f05a60 [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" "0fba54635eb9aa8cfdf009501b0692def81d1e860e619e310776b00d27f05a60", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0fba54635eb9aa8cfdf009501b0692def81d1e860e619e310776b00d27f05a60", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0fba54635eb9aa8cfdf009501b0692def81d1e860e619e310776b00d27f05a60", kill_on_drop: false }` [INFO] [stdout] 0fba54635eb9aa8cfdf009501b0692def81d1e860e619e310776b00d27f05a60 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+c919f490bbcd2b29b74016101f7ec71aaa24bdbb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 833274bcc011783d4dde2790bc9355ae022635f7defd8671f0d8d83bc6974948 [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" "833274bcc011783d4dde2790bc9355ae022635f7defd8671f0d8d83bc6974948", kill_on_drop: false }` [INFO] [stderr] Checking num-traits v0.1.42 [INFO] [stderr] Checking lazy_static v1.0.0 [INFO] [stderr] Checking regex-syntax v0.4.2 [INFO] [stderr] Checking serde v1.0.27 [INFO] [stderr] Checking itoa v0.3.4 [INFO] [stderr] Checking either v1.4.0 [INFO] [stderr] Compiling pest v1.0.3 [INFO] [stderr] Checking dtoa v0.4.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] Checking thread_local v0.3.5 [INFO] [stderr] Compiling serde_derive_internals v0.19.0 [INFO] [stderr] Checking clap v2.29.3 [INFO] [stderr] Checking itertools v0.7.6 [INFO] [stderr] Checking aho-corasick v0.6.4 [INFO] [stderr] Checking log v0.3.9 [INFO] [stderr] Checking simplelog v0.4.4 [INFO] [stderr] Compiling pest_derive v1.0.3 [INFO] [stderr] Checking criterion-stats v0.2.0 [INFO] [stderr] Checking itertools-num v0.1.1 [INFO] [stderr] Checking regex v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.27 [INFO] [stderr] Checking criterion-plot v0.2.0 [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] [stderr] error: could not compile `bench` [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] [stderr] [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] [stderr] To learn more, run the command again with --verbose. [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] [stderr] warning: build failed, waiting for other jobs to finish... [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] [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" "833274bcc011783d4dde2790bc9355ae022635f7defd8671f0d8d83bc6974948", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "833274bcc011783d4dde2790bc9355ae022635f7defd8671f0d8d83bc6974948", kill_on_drop: false }` [INFO] [stdout] 833274bcc011783d4dde2790bc9355ae022635f7defd8671f0d8d83bc6974948