[INFO] cloning repository https://github.com/ipost/rust_lifetime_sample
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ipost/rust_lifetime_sample" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fipost%2Frust_lifetime_sample", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fipost%2Frust_lifetime_sample'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] fdd13068cc0c8f6aa42e1ccfdffabb3ea73a2ba7
[INFO] testing ipost/rust_lifetime_sample against 1.99.0-beta.1+cargoflags=--release for beta-release-1.99-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fipost%2Frust_lifetime_sample" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/ipost/rust_lifetime_sample
[INFO] finished tweaking git repo https://github.com/ipost/rust_lifetime_sample
[INFO] tweaked toml for git repo https://github.com/ipost/rust_lifetime_sample written to /workspace/builds/worker-1-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/ipost/rust_lifetime_sample on toolchain 1.99.0-beta.1
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.99.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/ipost/rust_lifetime_sample 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" "+1.99.0-beta.1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] a0a4a9355d43e94f59dbe73cd9300a48103a4f816674f2fa769d15506e5cdfd4
[INFO] running `Command { std: "docker" "start" "a0a4a9355d43e94f59dbe73cd9300a48103a4f816674f2fa769d15506e5cdfd4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "a0a4a9355d43e94f59dbe73cd9300a48103a4f816674f2fa769d15506e5cdfd4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "a0a4a9355d43e94f59dbe73cd9300a48103a4f816674f2fa769d15506e5cdfd4" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "a0a4a9355d43e94f59dbe73cd9300a48103a4f816674f2fa769d15506e5cdfd4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "a0a4a9355d43e94f59dbe73cd9300a48103a4f816674f2fa769d15506e5cdfd4" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.1" "build" "--frozen" "--message-format=json" "--release", kill_on_drop: false }`
[INFO] [stderr]    Compiling rust_lifetime_sample v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0499]: cannot borrow `self.library` as mutable more than once at a time
[INFO] [stdout]   --> src/main.rs:70:46
[INFO] [stdout]    |
[INFO] [stdout] 60 | impl<'a> ItemList<'a> {
[INFO] [stdout]    |      -- lifetime `'a` defined here
[INFO] [stdout] ...
[INFO] [stdout] 70 |             let item = Item::parse(item_str, &mut self.library);
[INFO] [stdout]    |                                              ^^^^^^^^^^^^^^^^^ `self.library` was mutably borrowed here in the previous iteration of the loop
[INFO] [stdout] 71 |             self.list.push(item);
[INFO] [stdout]    |             -------------------- argument requires that `self.library` is borrowed for `'a`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: lifetime may not live long enough
[INFO] [stdout]   --> src/main.rs:71:13
[INFO] [stdout]    |
[INFO] [stdout] 60 | impl<'a> ItemList<'a> {
[INFO] [stdout]    |      -- lifetime `'a` defined here
[INFO] [stdout] ...
[INFO] [stdout] 68 |     pub fn add_items(&mut self, item_strs: Vec<String>) {
[INFO] [stdout]    |                      - let's call the lifetime of this reference `'1`
[INFO] [stdout] ...
[INFO] [stdout] 71 |             self.list.push(item);
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^ argument requires that `'1` must outlive `'a`
[INFO] [stdout]    |
[INFO] [stdout]    = note: requirement occurs because of a mutable reference to `Vec<Item<'_>>`
[INFO] [stdout]    = note: mutable references are invariant over their type parameter
[INFO] [stdout]    = help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `*lib` as mutable because it is also borrowed as immutable
[INFO] [stdout]   --> src/main.rs:86:13
[INFO] [stdout]    |
[INFO] [stdout] 81 |   impl<'a> Item<'a> {
[INFO] [stdout]    |        -- lifetime `'a` defined here
[INFO] [stdout] ...
[INFO] [stdout] 86 |               lib.insert(template);
[INFO] [stdout]    |               ^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here
[INFO] [stdout] 87 |               let attribute = Attribute::new(lib.get(attr_str));
[INFO] [stdout]    |                                              --- immutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 90 | /         Self {
[INFO] [stdout] 91 | |             attributes: attributes,
[INFO] [stdout] 92 | |         }
[INFO] [stdout]    | |_________- returning this value requires that `*lib` is borrowed for `'a`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0499, E0502.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0499`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust_lifetime_sample` (bin "rust_lifetime_sample") due to 3 previous errors
[INFO] running `Command { std: "docker" "inspect" "a0a4a9355d43e94f59dbe73cd9300a48103a4f816674f2fa769d15506e5cdfd4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a0a4a9355d43e94f59dbe73cd9300a48103a4f816674f2fa769d15506e5cdfd4", kill_on_drop: false }`
[INFO] [stdout] a0a4a9355d43e94f59dbe73cd9300a48103a4f816674f2fa769d15506e5cdfd4
