[INFO] cloning repository https://github.com/omega-800/haessig [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/omega-800/haessig" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fomega-800%2Fhaessig", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fomega-800%2Fhaessig'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 83e82d8818eb072cba3939d016d83589ed09bddf [INFO] testing omega-800/haessig against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fomega-800%2Fhaessig" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/omega-800/haessig [INFO] finished tweaking git repo https://github.com/omega-800/haessig [INFO] tweaked toml for git repo https://github.com/omega-800/haessig written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/omega-800/haessig on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/omega-800/haessig 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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3014861bfecdb09bc999594e777a54238ff95545b806c6a1480a59dfcf5a104d [INFO] running `Command { std: "docker" "start" "-a" "3014861bfecdb09bc999594e777a54238ff95545b806c6a1480a59dfcf5a104d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3014861bfecdb09bc999594e777a54238ff95545b806c6a1480a59dfcf5a104d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3014861bfecdb09bc999594e777a54238ff95545b806c6a1480a59dfcf5a104d", kill_on_drop: false }` [INFO] [stdout] 3014861bfecdb09bc999594e777a54238ff95545b806c6a1480a59dfcf5a104d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0118bb07d0c6356186763dad1a50ff0cdd831c8945d70153f5665964f565c519 [INFO] running `Command { std: "docker" "start" "-a" "0118bb07d0c6356186763dad1a50ff0cdd831c8945d70153f5665964f565c519", kill_on_drop: false }` [INFO] [stderr] Compiling anstyle-parse v0.2.6 [INFO] [stderr] Compiling colorchoice v1.0.3 [INFO] [stderr] Compiling anstyle-query v1.1.2 [INFO] [stderr] Compiling anstyle v1.0.10 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling clap_lex v0.7.4 [INFO] [stderr] Compiling anstream v0.6.18 [INFO] [stderr] Compiling clap_builder v4.5.27 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling clap v4.5.28 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling haessig v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> src/compiler.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | fn generate_print(out: &str) -> String { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/parser.rs:195:13 [INFO] [stdout] | [INFO] [stdout] 195 | let id = expect_id_next!("FunAss".to_string(), self); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ret` is assigned to, but never used [INFO] [stdout] --> src/parser.rs:198:13 [INFO] [stdout] | [INFO] [stdout] 198 | let mut ret = None; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_ret` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/parser.rs:214:13 [INFO] [stdout] | [INFO] [stdout] 214 | let body = self.parse_block()?; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ret` is never read [INFO] [stdout] --> src/parser.rs:206:17 [INFO] [stdout] | [INFO] [stdout] 206 | ret = Some(prim_type); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/parser.rs:221:13 [INFO] [stdout] | [INFO] [stdout] 221 | let id = expect_id_next!("VarAss".to_string(), self); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/parser.rs:224:13 [INFO] [stdout] | [INFO] [stdout] 224 | let value = self.parse_expr()?; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `pt` is never read [INFO] [stdout] --> src/parser.rs:225:22 [INFO] [stdout] | [INFO] [stdout] 225 | let mut pt = None; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/parser.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 149 | let id_tok = $self.cur_tok()?; [INFO] [stdout] | ----- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 164 | $self.consume(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 173 | impl<'a> Parser<'a> { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 274 | consume_next_tok!("Call".to_string(), self, TT::Mit); [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] ... [INFO] [stdout] 289 | Ok(Call { id, args }) [INFO] [stdout] | --------------------- returning this value requires that `*self` is borrowed for `'a` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `consume_next_tok` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/parser.rs:273:9 [INFO] [stdout] | [INFO] [stdout] 149 | let id_tok = $self.cur_tok()?; [INFO] [stdout] | ----- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 173 | impl<'a> Parser<'a> { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 273 | self.consume(); [INFO] [stdout] | ^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 289 | Ok(Call { id, args }) [INFO] [stdout] | --------------------- returning this value requires that `*self` is borrowed for `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/parser.rs:278:28 [INFO] [stdout] | [INFO] [stdout] 149 | let id_tok = $self.cur_tok()?; [INFO] [stdout] | ----- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 173 | impl<'a> Parser<'a> { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 278 | if let Ok(a) = self.parse_expr() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 289 | Ok(Call { id, args }) [INFO] [stdout] | --------------------- returning this value requires that `*self` is borrowed for `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0506]: cannot assign to `self.pos` because it is borrowed [INFO] [stdout] --> src/parser.rs:282:17 [INFO] [stdout] | [INFO] [stdout] 149 | let id_tok = $self.cur_tok()?; [INFO] [stdout] | ----- `self.pos` is borrowed here [INFO] [stdout] ... [INFO] [stdout] 173 | impl<'a> Parser<'a> { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 282 | self.pos = prev; [INFO] [stdout] | ^^^^^^^^^^^^^^^ `self.pos` is assigned to here but it was already borrowed [INFO] [stdout] ... [INFO] [stdout] 289 | Ok(Call { id, args }) [INFO] [stdout] | --------------------- returning this value requires that `*self` is borrowed for `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/parser.rs:287:13 [INFO] [stdout] | [INFO] [stdout] 149 | let id_tok = $self.cur_tok()?; [INFO] [stdout] | ----- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 173 | impl<'a> Parser<'a> { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 287 | self.consume(); [INFO] [stdout] | ^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] 288 | } [INFO] [stdout] 289 | Ok(Call { id, args }) [INFO] [stdout] | --------------------- returning this value requires that `*self` is borrowed for `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/parser.rs:289:9 [INFO] [stdout] | [INFO] [stdout] 173 | impl<'a> Parser<'a> { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 271 | pub fn parse_call(&mut self) -> Result, ParseError> { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 289 | Ok(Call { id, args }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ method was supposed to return data with lifetime `'a` but it is returning data with lifetime `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0502, E0506. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `haessig` (lib) due to 6 previous errors; 8 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "0118bb07d0c6356186763dad1a50ff0cdd831c8945d70153f5665964f565c519", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0118bb07d0c6356186763dad1a50ff0cdd831c8945d70153f5665964f565c519", kill_on_drop: false }` [INFO] [stdout] 0118bb07d0c6356186763dad1a50ff0cdd831c8945d70153f5665964f565c519