[INFO] cloning repository https://github.com/ids1024/turls.rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ids1024/turls.rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fids1024%2Fturls.rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fids1024%2Fturls.rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 119c8dd88123fe5479dbd8eb5502b1231d508283 [INFO] checking ids1024/turls.rs against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fids1024%2Fturls.rs" "/workspace/builds/worker-11/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-11/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ids1024/turls.rs on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ids1024/turls.rs [INFO] finished tweaking git repo https://github.com/ids1024/turls.rs [INFO] tweaked toml for git repo https://github.com/ids1024/turls.rs written to /workspace/builds/worker-11/source/Cargo.toml [INFO] crate git repo https://github.com/ids1024/turls.rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] error: the lock file /workspace/builds/worker-11/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "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-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 74be072e9f547900771eb714eabe48841a9ab2816d897be4ffcbe6d5e5701e27 [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" "74be072e9f547900771eb714eabe48841a9ab2816d897be4ffcbe6d5e5701e27", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "74be072e9f547900771eb714eabe48841a9ab2816d897be4ffcbe6d5e5701e27", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "74be072e9f547900771eb714eabe48841a9ab2816d897be4ffcbe6d5e5701e27", kill_on_drop: false }` [INFO] [stdout] 74be072e9f547900771eb714eabe48841a9ab2816d897be4ffcbe6d5e5701e27 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9cfca40ef968a639dc6805e117192a7c09676d6c3d03cb074f4346d5fae41b32 [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" "9cfca40ef968a639dc6805e117192a7c09676d6c3d03cb074f4346d5fae41b32", kill_on_drop: false }` [INFO] [stderr] Checking serde v0.8.23 [INFO] [stderr] Checking bidir-map v0.3.3 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Checking toml v0.2.1 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking fastcgi v1.0.0 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Checking serde_json v0.8.6 [INFO] [stderr] Checking turls v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated function `std::env::home_dir`: This function's behavior is unexpected and probably not what you want. Consider using a crate from crates.io instead. [INFO] [stdout] --> src/main.rs:97:24 [INFO] [stdout] | [INFO] [stdout] 97 | let mut urlspath = std::env::home_dir().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::env::home_dir`: This function's behavior is unexpected and probably not what you want. Consider using a crate from crates.io instead. [INFO] [stdout] --> src/main.rs:99:26 [INFO] [stdout] | [INFO] [stdout] 99 | let mut configpath = std::env::home_dir().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `urlmap` as mutable, as it is a captured variable in a `Fn` closure [INFO] [stdout] --> src/main.rs:117:24 [INFO] [stdout] | [INFO] [stdout] 117 | let hash = urlmap.add_url(&query); [INFO] [stdout] | ^^^^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `config` does not live long enough [INFO] [stdout] --> src/main.rs:109:19 [INFO] [stdout] | [INFO] [stdout] 109 | let baseurl = config.get("baseurl").unwrap().as_str().unwrap(); [INFO] [stdout] | ^^^^^^--------------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `config` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 134 | } [INFO] [stdout] | - `config` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `baseurl`, which is owned by the current function [INFO] [stdout] --> src/main.rs:113:22 [INFO] [stdout] | [INFO] [stdout] 113 | fastcgi::run_tcp(|mut req| { [INFO] [stdout] | ^^^^^^^^^ may outlive borrowed value `baseurl` [INFO] [stdout] ... [INFO] [stdout] 120 | baseurl, [INFO] [stdout] | ------- `baseurl` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: function requires argument type to outlive `'static` [INFO] [stdout] --> src/main.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | / fastcgi::run_tcp(|mut req| { [INFO] [stdout] 114 | | let query = req.param("QUERY_STRING").unwrap(); [INFO] [stdout] 115 | | let uri = req.param("DOCUMENT_URI").unwrap(); [INFO] [stdout] 116 | | if uri == "/create" { [INFO] [stdout] ... | [INFO] [stdout] 132 | | }, [INFO] [stdout] 133 | | &listener); [INFO] [stdout] | |_______________________________^ [INFO] [stdout] help: to force the closure to take ownership of `baseurl` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 113 | fastcgi::run_tcp(move |mut req| { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `urlmap`, which is owned by the current function [INFO] [stdout] --> src/main.rs:113:22 [INFO] [stdout] | [INFO] [stdout] 113 | fastcgi::run_tcp(|mut req| { [INFO] [stdout] | ^^^^^^^^^ may outlive borrowed value `urlmap` [INFO] [stdout] ... [INFO] [stdout] 117 | let hash = urlmap.add_url(&query); [INFO] [stdout] | ------ `urlmap` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: function requires argument type to outlive `'static` [INFO] [stdout] --> src/main.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | / fastcgi::run_tcp(|mut req| { [INFO] [stdout] 114 | | let query = req.param("QUERY_STRING").unwrap(); [INFO] [stdout] 115 | | let uri = req.param("DOCUMENT_URI").unwrap(); [INFO] [stdout] 116 | | if uri == "/create" { [INFO] [stdout] ... | [INFO] [stdout] 132 | | }, [INFO] [stdout] 133 | | &listener); [INFO] [stdout] | |_______________________________^ [INFO] [stdout] help: to force the closure to take ownership of `urlmap` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 113 | fastcgi::run_tcp(move |mut req| { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0373, E0596, E0597. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0373`. [INFO] [stdout] [INFO] [stderr] error: could not compile `turls` [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] warning: use of deprecated function `std::env::home_dir`: This function's behavior is unexpected and probably not what you want. Consider using a crate from crates.io instead. [INFO] [stdout] --> src/main.rs:97:24 [INFO] [stdout] | [INFO] [stdout] 97 | let mut urlspath = std::env::home_dir().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::env::home_dir`: This function's behavior is unexpected and probably not what you want. Consider using a crate from crates.io instead. [INFO] [stdout] --> src/main.rs:99:26 [INFO] [stdout] | [INFO] [stdout] 99 | let mut configpath = std::env::home_dir().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `urlmap` as mutable, as it is a captured variable in a `Fn` closure [INFO] [stdout] --> src/main.rs:117:24 [INFO] [stdout] | [INFO] [stdout] 117 | let hash = urlmap.add_url(&query); [INFO] [stdout] | ^^^^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `config` does not live long enough [INFO] [stdout] --> src/main.rs:109:19 [INFO] [stdout] | [INFO] [stdout] 109 | let baseurl = config.get("baseurl").unwrap().as_str().unwrap(); [INFO] [stdout] | ^^^^^^--------------- [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | argument requires that `config` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 134 | } [INFO] [stdout] | - `config` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `baseurl`, which is owned by the current function [INFO] [stdout] --> src/main.rs:113:22 [INFO] [stdout] | [INFO] [stdout] 113 | fastcgi::run_tcp(|mut req| { [INFO] [stdout] | ^^^^^^^^^ may outlive borrowed value `baseurl` [INFO] [stdout] ... [INFO] [stdout] 120 | baseurl, [INFO] [stdout] | ------- `baseurl` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: function requires argument type to outlive `'static` [INFO] [stdout] --> src/main.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | / fastcgi::run_tcp(|mut req| { [INFO] [stdout] 114 | | let query = req.param("QUERY_STRING").unwrap(); [INFO] [stdout] 115 | | let uri = req.param("DOCUMENT_URI").unwrap(); [INFO] [stdout] 116 | | if uri == "/create" { [INFO] [stdout] ... | [INFO] [stdout] 132 | | }, [INFO] [stdout] 133 | | &listener); [INFO] [stdout] | |_______________________________^ [INFO] [stdout] help: to force the closure to take ownership of `baseurl` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 113 | fastcgi::run_tcp(move |mut req| { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `urlmap`, which is owned by the current function [INFO] [stdout] --> src/main.rs:113:22 [INFO] [stdout] | [INFO] [stdout] 113 | fastcgi::run_tcp(|mut req| { [INFO] [stdout] | ^^^^^^^^^ may outlive borrowed value `urlmap` [INFO] [stdout] ... [INFO] [stdout] 117 | let hash = urlmap.add_url(&query); [INFO] [stdout] | ------ `urlmap` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: function requires argument type to outlive `'static` [INFO] [stdout] --> src/main.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | / fastcgi::run_tcp(|mut req| { [INFO] [stdout] 114 | | let query = req.param("QUERY_STRING").unwrap(); [INFO] [stdout] 115 | | let uri = req.param("DOCUMENT_URI").unwrap(); [INFO] [stdout] 116 | | if uri == "/create" { [INFO] [stdout] ... | [INFO] [stdout] 132 | | }, [INFO] [stdout] 133 | | &listener); [INFO] [stdout] | |_______________________________^ [INFO] [stdout] help: to force the closure to take ownership of `urlmap` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 113 | fastcgi::run_tcp(move |mut req| { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0373, E0596, E0597. [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" "9cfca40ef968a639dc6805e117192a7c09676d6c3d03cb074f4346d5fae41b32", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9cfca40ef968a639dc6805e117192a7c09676d6c3d03cb074f4346d5fae41b32", kill_on_drop: false }` [INFO] [stdout] 9cfca40ef968a639dc6805e117192a7c09676d6c3d03cb074f4346d5fae41b32