[INFO] cloning repository https://github.com/clarkezone/simple_c_compiler [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/clarkezone/simple_c_compiler" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fclarkezone%2Fsimple_c_compiler", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fclarkezone%2Fsimple_c_compiler'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ac9db8f0fcfcef7153b9b0aa01d2dec72f59e1b3 [INFO] building clarkezone/simple_c_compiler against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fclarkezone%2Fsimple_c_compiler" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/clarkezone/simple_c_compiler on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/clarkezone/simple_c_compiler [INFO] finished tweaking git repo https://github.com/clarkezone/simple_c_compiler [INFO] tweaked toml for git repo https://github.com/clarkezone/simple_c_compiler written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/clarkezone/simple_c_compiler 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded regex v0.2.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d00daee781b2687299c0665776d81ab583cb48b7166b165fb8438f52fed27d33 [INFO] running `Command { std: "docker" "start" "-a" "d00daee781b2687299c0665776d81ab583cb48b7166b165fb8438f52fed27d33", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d00daee781b2687299c0665776d81ab583cb48b7166b165fb8438f52fed27d33", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d00daee781b2687299c0665776d81ab583cb48b7166b165fb8438f52fed27d33", kill_on_drop: false }` [INFO] [stdout] d00daee781b2687299c0665776d81ab583cb48b7166b165fb8438f52fed27d33 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 123f4aed058035981286a428c156e4e384d662c6215c661f7f65abec4519af57 [INFO] running `Command { std: "docker" "start" "-a" "123f4aed058035981286a428c156e4e384d662c6215c661f7f65abec4519af57", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling libc v0.2.34 [INFO] [stderr] Compiling utf8-ranges v1.0.0 [INFO] [stderr] Compiling regex-syntax v0.4.1 [INFO] [stderr] Compiling unreachable v1.0.0 [INFO] [stderr] Compiling thread_local v0.3.4 [INFO] [stderr] Compiling memchr v2.0.1 [INFO] [stderr] Compiling aho-corasick v0.6.4 [INFO] [stderr] Compiling regex v0.2.3 [INFO] [stderr] Compiling simple_c_compiler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/lexer.rs:285:13 [INFO] [stdout] | [INFO] [stdout] 285 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/ast.rs:65:60 [INFO] [stdout] | [INFO] [stdout] 65 | let mut boxed_node = Box::new(AstNode::new((AstNodeType::Function))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 65 - let mut boxed_node = Box::new(AstNode::new((AstNodeType::Function))); [INFO] [stdout] 65 + let mut boxed_node = Box::new(AstNode::new(AstNodeType::Function)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/ast.rs:116:60 [INFO] [stdout] | [INFO] [stdout] 116 | let mut boxed_node = Box::new(AstNode::new((AstNodeType::Statement))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 116 - let mut boxed_node = Box::new(AstNode::new((AstNodeType::Statement))); [INFO] [stdout] 116 + let mut boxed_node = Box::new(AstNode::new(AstNodeType::Statement)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/ast.rs:136:60 [INFO] [stdout] | [INFO] [stdout] 136 | let mut boxed_node = Box::new(AstNode::new((AstNodeType::Expression))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 136 - let mut boxed_node = Box::new(AstNode::new((AstNodeType::Expression))); [INFO] [stdout] 136 + let mut boxed_node = Box::new(AstNode::new(AstNodeType::Expression)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/ast.rs:165:13 [INFO] [stdout] | [INFO] [stdout] 165 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lexer::*` [INFO] [stdout] --> src/codegen.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | use lexer::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/codegen.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ast::*` [INFO] [stdout] --> src/codegen.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | use ast::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/codegen.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/codegen.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 66 | &mut emitstack.push(String::from("ret")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 66 | let _ = &mut emitstack.push(String::from("ret")); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/codegen.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | &mut emitstack.push(String::from(format!("mov ${}, %eax", ret_arg.unwrap()))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 67 | let _ = &mut emitstack.push(String::from(format!("mov ${}, %eax", ret_arg.unwrap()))); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/codegen.rs:70:21 [INFO] [stdout] | [INFO] [stdout] 70 | &mut emitstack.push(String::from("_main:")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 70 | let _ = &mut emitstack.push(String::from("_main:")); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/codegen.rs:71:21 [INFO] [stdout] | [INFO] [stdout] 71 | &mut emitstack.push(String::from(".globl _main")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 71 | let _ = &mut emitstack.push(String::from(".globl _main")); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.27s [INFO] running `Command { std: "docker" "inspect" "123f4aed058035981286a428c156e4e384d662c6215c661f7f65abec4519af57", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "123f4aed058035981286a428c156e4e384d662c6215c661f7f65abec4519af57", kill_on_drop: false }` [INFO] [stdout] 123f4aed058035981286a428c156e4e384d662c6215c661f7f65abec4519af57 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5ef5a90f52151397fae50411ee3d2cef3c7c5e0d98c4dcfbd38db4d4dff71b52 [INFO] running `Command { std: "docker" "start" "-a" "5ef5a90f52151397fae50411ee3d2cef3c7c5e0d98c4dcfbd38db4d4dff71b52", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling simple_c_compiler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/ast.rs:65:60 [INFO] [stdout] | [INFO] [stdout] 65 | let mut boxed_node = Box::new(AstNode::new((AstNodeType::Function))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 65 - let mut boxed_node = Box::new(AstNode::new((AstNodeType::Function))); [INFO] [stdout] 65 + let mut boxed_node = Box::new(AstNode::new(AstNodeType::Function)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/ast.rs:116:60 [INFO] [stdout] | [INFO] [stdout] 116 | let mut boxed_node = Box::new(AstNode::new((AstNodeType::Statement))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 116 - let mut boxed_node = Box::new(AstNode::new((AstNodeType::Statement))); [INFO] [stdout] 116 + let mut boxed_node = Box::new(AstNode::new(AstNodeType::Statement)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/ast.rs:136:60 [INFO] [stdout] | [INFO] [stdout] 136 | let mut boxed_node = Box::new(AstNode::new((AstNodeType::Expression))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 136 - let mut boxed_node = Box::new(AstNode::new((AstNodeType::Expression))); [INFO] [stdout] 136 + let mut boxed_node = Box::new(AstNode::new(AstNodeType::Expression)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/codegen.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/ast.rs:178:28 [INFO] [stdout] | [INFO] [stdout] 178 | panic!(x); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 178 | panic!("{}", x); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/codegen.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 66 | &mut emitstack.push(String::from("ret")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 66 | let _ = &mut emitstack.push(String::from("ret")); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/codegen.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | &mut emitstack.push(String::from(format!("mov ${}, %eax", ret_arg.unwrap()))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 67 | let _ = &mut emitstack.push(String::from(format!("mov ${}, %eax", ret_arg.unwrap()))); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/codegen.rs:70:21 [INFO] [stdout] | [INFO] [stdout] 70 | &mut emitstack.push(String::from("_main:")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 70 | let _ = &mut emitstack.push(String::from("_main:")); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/codegen.rs:71:21 [INFO] [stdout] | [INFO] [stdout] 71 | &mut emitstack.push(String::from(".globl _main")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 71 | let _ = &mut emitstack.push(String::from(".globl _main")); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.21s [INFO] running `Command { std: "docker" "inspect" "5ef5a90f52151397fae50411ee3d2cef3c7c5e0d98c4dcfbd38db4d4dff71b52", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5ef5a90f52151397fae50411ee3d2cef3c7c5e0d98c4dcfbd38db4d4dff71b52", kill_on_drop: false }` [INFO] [stdout] 5ef5a90f52151397fae50411ee3d2cef3c7c5e0d98c4dcfbd38db4d4dff71b52