[INFO] cloning repository https://github.com/JingtaoX/cs260_proj [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JingtaoX/cs260_proj" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJingtaoX%2Fcs260_proj", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJingtaoX%2Fcs260_proj'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bdec5bd9dea142843ddc8e77688148363c0d8135 [INFO] testing JingtaoX/cs260_proj/bdec5bd9dea142843ddc8e77688148363c0d8135 against master#9e136a30a965bf4e63f03095c57df7257bf96fd6 for pr-134530 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJingtaoX%2Fcs260_proj" "/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/JingtaoX/cs260_proj on toolchain 9e136a30a965bf4e63f03095c57df7257bf96fd6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9e136a30a965bf4e63f03095c57df7257bf96fd6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/JingtaoX/cs260_proj [INFO] finished tweaking git repo https://github.com/JingtaoX/cs260_proj [INFO] tweaked toml for git repo https://github.com/JingtaoX/cs260_proj written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/JingtaoX/cs260_proj 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" "+9e136a30a965bf4e63f03095c57df7257bf96fd6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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" "+9e136a30a965bf4e63f03095c57df7257bf96fd6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e9816741a11487bf48bc1bb94ab1f24bcf4e81880c6bf5f10931b447b080b8ac [INFO] running `Command { std: "docker" "start" "-a" "e9816741a11487bf48bc1bb94ab1f24bcf4e81880c6bf5f10931b447b080b8ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e9816741a11487bf48bc1bb94ab1f24bcf4e81880c6bf5f10931b447b080b8ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9816741a11487bf48bc1bb94ab1f24bcf4e81880c6bf5f10931b447b080b8ac", kill_on_drop: false }` [INFO] [stdout] e9816741a11487bf48bc1bb94ab1f24bcf4e81880c6bf5f10931b447b080b8ac [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" "-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" "+9e136a30a965bf4e63f03095c57df7257bf96fd6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 41a5ff2163d376384285ddde8f9ff7c0ba8d83d1a1b2654267c4dfb99b165177 [INFO] running `Command { std: "docker" "start" "-a" "41a5ff2163d376384285ddde8f9ff7c0ba8d83d1a1b2654267c4dfb99b165177", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling serde v1.0.196 [INFO] [stderr] Compiling serde_json v1.0.113 [INFO] [stderr] Compiling itoa v1.0.10 [INFO] [stderr] Compiling ryu v1.0.16 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling serde_derive v1.0.196 [INFO] [stderr] Compiling cs260_proj v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0583]: file not found for module `lir` [INFO] [stdout] --> src/constants.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod lir; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `lir`, create file "src/constants/lir.rs" or "src/constants/lir/mod.rs" [INFO] [stdout] = note: if there is a `mod lir` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `stats` [INFO] [stdout] --> src/constants.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | pub mod stats; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `stats`, create file "src/constants/stats.rs" or "src/constants/stats/mod.rs" [INFO] [stdout] = note: if there is a `mod stats` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `lir` [INFO] [stdout] --> src/test.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod lir; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `lir`, create file "src/test/lir.rs" or "src/test/lir/mod.rs" [INFO] [stdout] = note: if there is a `mod lir` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `stats` [INFO] [stdout] --> src/test.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | pub mod stats; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `stats`, create file "src/test/stats.rs" or "src/test/stats/mod.rs" [INFO] [stdout] = note: if there is a `mod stats` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `lir` [INFO] [stdout] --> src/intervals.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod lir; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `lir`, create file "src/intervals/lir.rs" or "src/intervals/lir/mod.rs" [INFO] [stdout] = note: if there is a `mod lir` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `stats` [INFO] [stdout] --> src/intervals.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | pub mod stats; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `stats`, create file "src/intervals/stats.rs" or "src/intervals/stats/mod.rs" [INFO] [stdout] = note: if there is a `mod stats` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `lir` [INFO] [stdout] --> src/rdef.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod lir; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `lir`, create file "src/rdef/lir.rs" or "src/rdef/lir/mod.rs" [INFO] [stdout] = note: if there is a `mod lir` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `stats` [INFO] [stdout] --> src/rdef.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | pub mod stats; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `stats`, create file "src/rdef/stats.rs" or "src/rdef/stats/mod.rs" [INFO] [stdout] = note: if there is a `mod stats` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `lir` [INFO] [stdout] --> src/control.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod lir; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `lir`, create file "src/control/lir.rs" or "src/control/lir/mod.rs" [INFO] [stdout] = note: if there is a `mod lir` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0583]: file not found for module `stats` [INFO] [stdout] --> src/control.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | pub mod stats; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `stats`, create file "src/control/stats.rs" or "src/control/stats/mod.rs" [INFO] [stdout] = note: if there is a `mod stats` elsewhere in the crate already, import it with `use crate::...` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/test.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | 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: `self` [INFO] [stdout] --> src/test.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::{self, Result}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PathBuf` and `Path` [INFO] [stdout] --> src/test.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::exit` [INFO] [stdout] --> src/test.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::process::exit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lir::Program` [INFO] [stdout] --> src/test.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use lir::Program; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stats::*` [INFO] [stdout] --> src/test.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use stats::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/rdef.rs:8:43 [INFO] [stdout] | [INFO] [stdout] 8 | use std::collections::{HashMap, VecDeque, HashSet}; [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/test.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | mod test; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/test.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::{self, Result}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | mod test; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PathBuf` and `Path` [INFO] [stdout] --> src/test.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | mod test; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::exit` [INFO] [stdout] --> src/test.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::process::exit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | mod test; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stats::*` [INFO] [stdout] --> src/test.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use stats::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | mod test; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/rdef.rs:8:43 [INFO] [stdout] | [INFO] [stdout] 8 | use std::collections::{HashMap, VecDeque, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::exit` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::process::exit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IntConstAbsVal` is never used [INFO] [stdout] --> src/control.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | enum IntConstAbsVal { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `as_string`, `arith`, and `cmp` are never used [INFO] [stdout] --> src/control.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 17 | impl IntConstAbsVal { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 18 | fn as_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn arith(op1: &IntConstAbsVal, op2: &IntConstAbsVal, aop: &ArithOp) -> IntConstAbsVal { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | fn cmp(op1: &IntConstAbsVal, op2: &IntConstAbsVal, rop: &RelaOp) -> IntConstAbsVal { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `join` is never used [INFO] [stdout] --> src/control.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 68 | impl IntConstAbsVal { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 69 | fn join(a: &IntConstAbsVal, b: &IntConstAbsVal) -> IntConstAbsVal { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AbstractStore` is never constructed [INFO] [stdout] --> src/control.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | struct AbstractStore { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `insert`, `join`, `resolve_operand`, and `execute` are never used [INFO] [stdout] --> src/control.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 91 | impl AbstractStore { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 92 | fn new() -> AbstractStore { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | fn insert(&mut self, bb: String, value: IntConstAbsVal) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | fn join(&mut self, store_to_join: &AbstractStore) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | fn resolve_operand(&self, operand: &Operand) -> IntConstAbsVal { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | fn execute(&mut self, inst: &Instruction) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_call` is never used [INFO] [stdout] --> src/control.rs:199:4 [INFO] [stdout] | [INFO] [stdout] 199 | fn solve_call(lhs: &Option, args: &Vec, store: &mut AbstractStore) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `int_const_analysis` is never used [INFO] [stdout] --> src/control.rs:224:4 [INFO] [stdout] | [INFO] [stdout] 224 | fn int_const_analysis(program: &Program, function_name: &str) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_store` is never used [INFO] [stdout] --> src/control.rs:294:4 [INFO] [stdout] | [INFO] [stdout] 294 | fn print_store(store: &HashMap) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/control.rs:177:17 [INFO] [stdout] | [INFO] [stdout] 177 | ADDR_TAKEN_INTS.iter().for_each(|v| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/control.rs:201:9 [INFO] [stdout] | [INFO] [stdout] 201 | GLOBAL_INTS.iter().for_each(|v| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/control.rs:217:13 [INFO] [stdout] | [INFO] [stdout] 217 | ADDR_TAKEN_INTS.iter().for_each(|v| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/control.rs:319:13 [INFO] [stdout] | [INFO] [stdout] 319 | GLOBAL_INTS.push(g.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/control.rs:329:29 [INFO] [stdout] | [INFO] [stdout] 329 | ... ADDR_TAKEN_INTS.push(rhs.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/control.rs:346:5 [INFO] [stdout] | [INFO] [stdout] 346 | ADDR_TAKEN_INTS.sort(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/control.rs:347:5 [INFO] [stdout] | [INFO] [stdout] 347 | ADDR_TAKEN_INTS.dedup(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0583`. [INFO] [stdout] [INFO] [stderr] error: could not compile `cs260_proj` (bin "cs260_proj") due to 10 previous errors; 8 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/intervals.rs:149:17 [INFO] [stdout] | [INFO] [stdout] 149 | ADDR_TAKEN_INTS.iter().for_each(|v| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/intervals.rs:173:9 [INFO] [stdout] | [INFO] [stdout] 173 | GLOBAL_INTS.iter().for_each(|v| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/intervals.rs:189:13 [INFO] [stdout] | [INFO] [stdout] 189 | ADDR_TAKEN_INTS.iter().for_each(|v| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/intervals.rs:290:13 [INFO] [stdout] | [INFO] [stdout] 290 | GLOBAL_INTS.push(g.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/intervals.rs:300:29 [INFO] [stdout] | [INFO] [stdout] 300 | ... ADDR_TAKEN_INTS.push(rhs.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/intervals.rs:317:5 [INFO] [stdout] | [INFO] [stdout] 317 | ADDR_TAKEN_INTS.sort(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/intervals.rs:318:5 [INFO] [stdout] | [INFO] [stdout] 318 | ADDR_TAKEN_INTS.dedup(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/constants.rs:177:17 [INFO] [stdout] | [INFO] [stdout] 177 | ADDR_TAKEN_INTS.iter().for_each(|v| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/constants.rs:201:9 [INFO] [stdout] | [INFO] [stdout] 201 | GLOBAL_INTS.iter().for_each(|v| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/constants.rs:217:13 [INFO] [stdout] | [INFO] [stdout] 217 | ADDR_TAKEN_INTS.iter().for_each(|v| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/constants.rs:319:13 [INFO] [stdout] | [INFO] [stdout] 319 | GLOBAL_INTS.push(g.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/constants.rs:329:29 [INFO] [stdout] | [INFO] [stdout] 329 | ... ADDR_TAKEN_INTS.push(rhs.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/constants.rs:346:5 [INFO] [stdout] | [INFO] [stdout] 346 | ADDR_TAKEN_INTS.sort(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/constants.rs:347:5 [INFO] [stdout] | [INFO] [stdout] 347 | ADDR_TAKEN_INTS.dedup(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IntConstAbsVal` is never used [INFO] [stdout] --> src/rdef.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | enum IntConstAbsVal { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `as_string`, `arith`, and `cmp` are never used [INFO] [stdout] --> src/rdef.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 17 | impl IntConstAbsVal { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 18 | fn as_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn arith(op1: &IntConstAbsVal, op2: &IntConstAbsVal, aop: &ArithOp) -> IntConstAbsVal { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | fn cmp(op1: &IntConstAbsVal, op2: &IntConstAbsVal, rop: &RelaOp) -> IntConstAbsVal { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `join` is never used [INFO] [stdout] --> src/rdef.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 68 | impl IntConstAbsVal { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 69 | fn join(a: &IntConstAbsVal, b: &IntConstAbsVal) -> IntConstAbsVal { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AbstractStore` is never constructed [INFO] [stdout] --> src/rdef.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | struct AbstractStore { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `insert`, `join`, `resolve_operand`, and `execute` are never used [INFO] [stdout] --> src/rdef.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 91 | impl AbstractStore { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 92 | fn new() -> AbstractStore { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | fn insert(&mut self, bb: String, value: IntConstAbsVal) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | fn join(&mut self, store_to_join: &AbstractStore) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | fn resolve_operand(&self, operand: &Operand) -> IntConstAbsVal { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | fn execute(&mut self, inst: &Instruction) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve_call` is never used [INFO] [stdout] --> src/rdef.rs:199:4 [INFO] [stdout] | [INFO] [stdout] 199 | fn solve_call(lhs: &Option, args: &Vec, store: &mut AbstractStore) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `int_const_analysis` is never used [INFO] [stdout] --> src/rdef.rs:224:4 [INFO] [stdout] | [INFO] [stdout] 224 | fn int_const_analysis(program: &Program, function_name: &str) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_store` is never used [INFO] [stdout] --> src/rdef.rs:294:4 [INFO] [stdout] | [INFO] [stdout] 294 | fn print_store(store: &HashMap) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/rdef.rs:177:17 [INFO] [stdout] | [INFO] [stdout] 177 | ADDR_TAKEN_INTS.iter().for_each(|v| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/rdef.rs:201:9 [INFO] [stdout] | [INFO] [stdout] 201 | GLOBAL_INTS.iter().for_each(|v| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/rdef.rs:217:13 [INFO] [stdout] | [INFO] [stdout] 217 | ADDR_TAKEN_INTS.iter().for_each(|v| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/rdef.rs:319:13 [INFO] [stdout] | [INFO] [stdout] 319 | GLOBAL_INTS.push(g.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/rdef.rs:329:29 [INFO] [stdout] | [INFO] [stdout] 329 | ... ADDR_TAKEN_INTS.push(rhs.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/rdef.rs:346:5 [INFO] [stdout] | [INFO] [stdout] 346 | ADDR_TAKEN_INTS.sort(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/rdef.rs:347:5 [INFO] [stdout] | [INFO] [stdout] 347 | ADDR_TAKEN_INTS.dedup(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "41a5ff2163d376384285ddde8f9ff7c0ba8d83d1a1b2654267c4dfb99b165177", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "41a5ff2163d376384285ddde8f9ff7c0ba8d83d1a1b2654267c4dfb99b165177", kill_on_drop: false }` [INFO] [stdout] 41a5ff2163d376384285ddde8f9ff7c0ba8d83d1a1b2654267c4dfb99b165177