[INFO] updating cached repository ids1024/turls.rs [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/ids1024/turls.rs [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/ids1024/turls.rs" "work/ex/pr-59199/sources/master#bc44841ad2a2ad5f6c5e67b9e35ed8e7e71d4dc7/gh/ids1024/turls.rs"` [INFO] [stderr] Cloning into 'work/ex/pr-59199/sources/master#bc44841ad2a2ad5f6c5e67b9e35ed8e7e71d4dc7/gh/ids1024/turls.rs'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/ids1024/turls.rs" "work/ex/pr-59199/sources/try#68fcf881bd1e4dbfc21e22f8c7a56b8a5d8e8f7b/gh/ids1024/turls.rs"` [INFO] [stderr] Cloning into 'work/ex/pr-59199/sources/try#68fcf881bd1e4dbfc21e22f8c7a56b8a5d8e8f7b/gh/ids1024/turls.rs'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 119c8dd88123fe5479dbd8eb5502b1231d508283 [INFO] sha for GitHub repo ids1024/turls.rs: 119c8dd88123fe5479dbd8eb5502b1231d508283 [INFO] validating manifest of ids1024/turls.rs on toolchain master#bc44841ad2a2ad5f6c5e67b9e35ed8e7e71d4dc7 [INFO] running `"/mnt/crater-raid/crater/work/local/cargo-home/bin/cargo" "+bc44841ad2a2ad5f6c5e67b9e35ed8e7e71d4dc7-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of ids1024/turls.rs on toolchain try#68fcf881bd1e4dbfc21e22f8c7a56b8a5d8e8f7b [INFO] running `"/mnt/crater-raid/crater/work/local/cargo-home/bin/cargo" "+68fcf881bd1e4dbfc21e22f8c7a56b8a5d8e8f7b-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing ids1024/turls.rs [INFO] finished frobbing ids1024/turls.rs [INFO] frobbed toml for ids1024/turls.rs written to work/ex/pr-59199/sources/master#bc44841ad2a2ad5f6c5e67b9e35ed8e7e71d4dc7/gh/ids1024/turls.rs/Cargo.toml [INFO] started frobbing ids1024/turls.rs [INFO] finished frobbing ids1024/turls.rs [INFO] frobbed toml for ids1024/turls.rs written to work/ex/pr-59199/sources/try#68fcf881bd1e4dbfc21e22f8c7a56b8a5d8e8f7b/gh/ids1024/turls.rs/Cargo.toml [INFO] crate ids1024/turls.rs already has a lockfile, it will not be regenerated [INFO] running `"/mnt/crater-raid/crater/work/local/cargo-home/bin/cargo" "+bc44841ad2a2ad5f6c5e67b9e35ed8e7e71d4dc7-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on the registry index [INFO] [stderr] error: the lock file /mnt/crater-raid/crater/work/ex/pr-59199/sources/master#bc44841ad2a2ad5f6c5e67b9e35ed8e7e71d4dc7/gh/ids1024/turls.rs/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] the lockfile is outdated, regenerating it [INFO] running `"/mnt/crater-raid/crater/work/local/cargo-home/bin/cargo" "+bc44841ad2a2ad5f6c5e67b9e35ed8e7e71d4dc7-alt" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/crater-raid/crater/work/local/cargo-home/bin/cargo" "+68fcf881bd1e4dbfc21e22f8c7a56b8a5d8e8f7b-alt" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/crater-raid/crater/work/local/cargo-home/bin/cargo" "+bc44841ad2a2ad5f6c5e67b9e35ed8e7e71d4dc7-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded fastcgi v1.0.0 [INFO] running `"/mnt/crater-raid/crater/work/local/cargo-home/bin/cargo" "+68fcf881bd1e4dbfc21e22f8c7a56b8a5d8e8f7b-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] checking ids1024/turls.rs against try#68fcf881bd1e4dbfc21e22f8c7a56b8a5d8e8f7b for pr-59199 [INFO] running `"docker" "create" "-v" "/mnt/crater-raid/crater/work/local/target-dirs/pr-59199/worker-6/try#68fcf881bd1e4dbfc21e22f8c7a56b8a5d8e8f7b:/opt/crater/target:rw,Z" "-v" "/mnt/crater-raid/crater/work/ex/pr-59199/sources/try#68fcf881bd1e4dbfc21e22f8c7a56b8a5d8e8f7b/gh/ids1024/turls.rs:/opt/crater/workdir:ro,Z" "-v" "/mnt/crater-raid/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/crater-raid/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+68fcf881bd1e4dbfc21e22f8c7a56b8a5d8e8f7b-alt" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] 5a145df3cc1d300aa458a58795a0347b898a903d61db0075b251357d2e997760 [INFO] running `"docker" "start" "-a" "5a145df3cc1d300aa458a58795a0347b898a903d61db0075b251357d2e997760"` [INFO] [stderr] Checking bidir-map v0.3.3 [INFO] [stderr] Checking fastcgi v1.0.0 [INFO] [stderr] Checking turls v0.0.1 (/opt/crater/workdir) [INFO] [stderr] warning: use of deprecated item 'std::env::home_dir': This function's behavior is unexpected and probably not what you want. Consider using the home_dir function from https://crates.io/crates/dirs instead. [INFO] [stderr] --> src/main.rs:97:24 [INFO] [stderr] | [INFO] [stderr] 97 | let mut urlspath = std::env::home_dir().unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(deprecated)] on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::env::home_dir': This function's behavior is unexpected and probably not what you want. Consider using the home_dir function from https://crates.io/crates/dirs instead. [INFO] [stderr] --> src/main.rs:99:26 [INFO] [stderr] | [INFO] [stderr] 99 | let mut configpath = std::env::home_dir().unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0597]: `config` does not live long enough [INFO] [stderr] --> src/main.rs:109:19 [INFO] [stderr] | [INFO] [stderr] 109 | let baseurl = config.get("baseurl").unwrap().as_str().unwrap(); [INFO] [stderr] | ^^^^^^ borrowed value does not live long enough [INFO] [stderr] ... [INFO] [stderr] 134 | } [INFO] [stderr] | - borrowed value only lives until here [INFO] [stderr] | [INFO] [stderr] = note: borrowed value must be valid for the static lifetime... [INFO] [stderr] [INFO] [stderr] error[E0373]: closure may outlive the current function, but it borrows `urlmap`, which is owned by the current function [INFO] [stderr] --> src/main.rs:113:22 [INFO] [stderr] | [INFO] [stderr] 113 | fastcgi::run_tcp(|mut req| { [INFO] [stderr] | ^^^^^^^^^ may outlive borrowed value `urlmap` [INFO] [stderr] ... [INFO] [stderr] 117 | let hash = urlmap.add_url(&query); [INFO] [stderr] | ------ `urlmap` is borrowed here [INFO] [stderr] help: to force the closure to take ownership of `urlmap` (and any other referenced variables), use the `move` keyword [INFO] [stderr] | [INFO] [stderr] 113 | fastcgi::run_tcp(move |mut req| { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0373]: closure may outlive the current function, but it borrows `baseurl`, which is owned by the current function [INFO] [stderr] --> src/main.rs:113:22 [INFO] [stderr] | [INFO] [stderr] 113 | fastcgi::run_tcp(|mut req| { [INFO] [stderr] | ^^^^^^^^^ may outlive borrowed value `baseurl` [INFO] [stderr] ... [INFO] [stderr] 120 | baseurl, [INFO] [stderr] | ------- `baseurl` is borrowed here [INFO] [stderr] help: to force the closure to take ownership of `baseurl` (and any other referenced variables), use the `move` keyword [INFO] [stderr] | [INFO] [stderr] 113 | fastcgi::run_tcp(move |mut req| { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0387]: cannot borrow data mutably in a captured outer variable in an `Fn` closure [INFO] [stderr] --> src/main.rs:117:24 [INFO] [stderr] | [INFO] [stderr] 117 | let hash = urlmap.add_url(&query); [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: consider changing this closure to take self by mutable reference [INFO] [stderr] --> src/main.rs:113:22 [INFO] [stderr] | [INFO] [stderr] 113 | fastcgi::run_tcp(|mut req| { [INFO] [stderr] | ______________________^ [INFO] [stderr] 114 | | let query = req.param("QUERY_STRING").unwrap(); [INFO] [stderr] 115 | | let uri = req.param("DOCUMENT_URI").unwrap(); [INFO] [stderr] 116 | | if uri == "/create" { [INFO] [stderr] ... | [INFO] [stderr] 131 | | } [INFO] [stderr] 132 | | }, [INFO] [stderr] | |_____^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:102:9 [INFO] [stderr] | [INFO] [stderr] 102 | let mut urlmap = UrlMap::new(urlspath.to_str().unwrap()); [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_mut)] on by default [INFO] [stderr] [INFO] [stderr] error: aborting due to 4 previous errors [INFO] [stderr] [INFO] [stderr] Some errors occurred: E0373, E0387, E0597. [INFO] [stderr] For more information about an error, try `rustc --explain E0373`. [INFO] [stderr] error: Could not compile `turls`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] warning: use of deprecated item 'std::env::home_dir': This function's behavior is unexpected and probably not what you want. Consider using the home_dir function from https://crates.io/crates/dirs instead. [INFO] [stderr] --> src/main.rs:97:24 [INFO] [stderr] | [INFO] [stderr] 97 | let mut urlspath = std::env::home_dir().unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(deprecated)] on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::env::home_dir': This function's behavior is unexpected and probably not what you want. Consider using the home_dir function from https://crates.io/crates/dirs instead. [INFO] [stderr] --> src/main.rs:99:26 [INFO] [stderr] | [INFO] [stderr] 99 | let mut configpath = std::env::home_dir().unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0597]: `config` does not live long enough [INFO] [stderr] --> src/main.rs:109:19 [INFO] [stderr] | [INFO] [stderr] 109 | let baseurl = config.get("baseurl").unwrap().as_str().unwrap(); [INFO] [stderr] | ^^^^^^ borrowed value does not live long enough [INFO] [stderr] ... [INFO] [stderr] 134 | } [INFO] [stderr] | - borrowed value only lives until here [INFO] [stderr] | [INFO] [stderr] = note: borrowed value must be valid for the static lifetime... [INFO] [stderr] [INFO] [stderr] error[E0373]: closure may outlive the current function, but it borrows `urlmap`, which is owned by the current function [INFO] [stderr] --> src/main.rs:113:22 [INFO] [stderr] | [INFO] [stderr] 113 | fastcgi::run_tcp(|mut req| { [INFO] [stderr] | ^^^^^^^^^ may outlive borrowed value `urlmap` [INFO] [stderr] ... [INFO] [stderr] 117 | let hash = urlmap.add_url(&query); [INFO] [stderr] | ------ `urlmap` is borrowed here [INFO] [stderr] help: to force the closure to take ownership of `urlmap` (and any other referenced variables), use the `move` keyword [INFO] [stderr] | [INFO] [stderr] 113 | fastcgi::run_tcp(move |mut req| { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0373]: closure may outlive the current function, but it borrows `baseurl`, which is owned by the current function [INFO] [stderr] --> src/main.rs:113:22 [INFO] [stderr] | [INFO] [stderr] 113 | fastcgi::run_tcp(|mut req| { [INFO] [stderr] | ^^^^^^^^^ may outlive borrowed value `baseurl` [INFO] [stderr] ... [INFO] [stderr] 120 | baseurl, [INFO] [stderr] | ------- `baseurl` is borrowed here [INFO] [stderr] help: to force the closure to take ownership of `baseurl` (and any other referenced variables), use the `move` keyword [INFO] [stderr] | [INFO] [stderr] 113 | fastcgi::run_tcp(move |mut req| { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0387]: cannot borrow data mutably in a captured outer variable in an `Fn` closure [INFO] [stderr] --> src/main.rs:117:24 [INFO] [stderr] | [INFO] [stderr] 117 | let hash = urlmap.add_url(&query); [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: consider changing this closure to take self by mutable reference [INFO] [stderr] --> src/main.rs:113:22 [INFO] [stderr] | [INFO] [stderr] 113 | fastcgi::run_tcp(|mut req| { [INFO] [stderr] | ______________________^ [INFO] [stderr] 114 | | let query = req.param("QUERY_STRING").unwrap(); [INFO] [stderr] 115 | | let uri = req.param("DOCUMENT_URI").unwrap(); [INFO] [stderr] 116 | | if uri == "/create" { [INFO] [stderr] ... | [INFO] [stderr] 131 | | } [INFO] [stderr] 132 | | }, [INFO] [stderr] | |_____^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:102:9 [INFO] [stderr] | [INFO] [stderr] 102 | let mut urlmap = UrlMap::new(urlspath.to_str().unwrap()); [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_mut)] on by default [INFO] [stderr] [INFO] [stderr] error: aborting due to 4 previous errors [INFO] [stderr] [INFO] [stderr] Some errors occurred: E0373, E0387, E0597. [INFO] [stderr] For more information about an error, try `rustc --explain E0373`. [INFO] [stderr] error: Could not compile `turls`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "5a145df3cc1d300aa458a58795a0347b898a903d61db0075b251357d2e997760"` [INFO] running `"docker" "rm" "-f" "5a145df3cc1d300aa458a58795a0347b898a903d61db0075b251357d2e997760"` [INFO] [stdout] 5a145df3cc1d300aa458a58795a0347b898a903d61db0075b251357d2e997760