[INFO] cloning repository https://github.com/JoshuaRadin37/modular_lang [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JoshuaRadin37/modular_lang" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJoshuaRadin37%2Fmodular_lang", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJoshuaRadin37%2Fmodular_lang'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6b3a5165042f23fa89755219dd049d9da2465e7c [INFO] checking JoshuaRadin37/modular_lang against try#7b3565da729099dbe807466fcd118fb2815986e0 for pr-81789 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJoshuaRadin37%2Fmodular_lang" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/JoshuaRadin37/modular_lang on toolchain 7b3565da729099dbe807466fcd118fb2815986e0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+7b3565da729099dbe807466fcd118fb2815986e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/JoshuaRadin37/modular_lang [INFO] finished tweaking git repo https://github.com/JoshuaRadin37/modular_lang [INFO] tweaked toml for git repo https://github.com/JoshuaRadin37/modular_lang written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/JoshuaRadin37/modular_lang already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+7b3565da729099dbe807466fcd118fb2815986e0" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded indexed v0.2.0 [INFO] [stderr] Downloaded trees v0.3.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+7b3565da729099dbe807466fcd118fb2815986e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7e9ccb1c0652c526eb38266b98cf6a1540541b1a32a38300a9eea72d3d61eef1 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "7e9ccb1c0652c526eb38266b98cf6a1540541b1a32a38300a9eea72d3d61eef1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7e9ccb1c0652c526eb38266b98cf6a1540541b1a32a38300a9eea72d3d61eef1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7e9ccb1c0652c526eb38266b98cf6a1540541b1a32a38300a9eea72d3d61eef1", kill_on_drop: false }` [INFO] [stdout] 7e9ccb1c0652c526eb38266b98cf6a1540541b1a32a38300a9eea72d3d61eef1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+7b3565da729099dbe807466fcd118fb2815986e0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 01ccb2f0118f4397fbecefcf479aaf566188b8465a3cc88029546aad2c797f27 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "01ccb2f0118f4397fbecefcf479aaf566188b8465a3cc88029546aad2c797f27", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Checking indexed v0.2.0 [INFO] [stderr] Checking regex-syntax v0.6.18 [INFO] [stderr] Checking modular_lang v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking core v0.1.0 (/opt/rustwide/workdir/core) [INFO] [stderr] Checking lexer v0.1.0 (/opt/rustwide/workdir/lexer) [INFO] [stdout] warning: unused import: `std::str::Chars` [INFO] [stdout] --> lexer/src/lexing.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::str::Chars; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> core/src/types/primitives.rs:24:37 [INFO] [stdout] | [INFO] [stdout] 24 | fn is_invariant(&self, other: &T) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> core/src/types/primitives.rs:28:37 [INFO] [stdout] | [INFO] [stdout] 28 | fn is_covariant(&self, other: &T) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> core/src/types/primitives.rs:32:41 [INFO] [stdout] | [INFO] [stdout] 32 | fn is_contravariant(&self, other: &T) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> core/src/types/primitives.rs:36:36 [INFO] [stdout] | [INFO] [stdout] 36 | fn can_cast_to(&self, other: &T) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> core/src/types/primitives.rs:24:37 [INFO] [stdout] | [INFO] [stdout] 24 | fn is_invariant(&self, other: &T) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> core/src/types/primitives.rs:28:37 [INFO] [stdout] | [INFO] [stdout] 28 | fn is_covariant(&self, other: &T) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> core/src/types/primitives.rs:32:41 [INFO] [stdout] | [INFO] [stdout] 32 | fn is_contravariant(&self, other: &T) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::Chars` [INFO] [stdout] --> lexer/src/lexing.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::str::Chars; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> core/src/types/primitives.rs:36:36 [INFO] [stdout] | [INFO] [stdout] 36 | fn can_cast_to(&self, other: &T) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private trait `Primitive` in public interface (error E0445) [INFO] [stdout] --> core/src/types/primitives.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | / impl Type for R { [INFO] [stdout] 8 | | fn get_size(&self) -> usize { [INFO] [stdout] 9 | | self.size() [INFO] [stdout] 10 | | } [INFO] [stdout] ... | [INFO] [stdout] 38 | | } [INFO] [stdout] 39 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(private_in_public)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private trait `Primitive` in public interface (error E0445) [INFO] [stdout] --> core/src/types/primitives.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | / impl Type for R { [INFO] [stdout] 8 | | fn get_size(&self) -> usize { [INFO] [stdout] 9 | | self.size() [INFO] [stdout] 10 | | } [INFO] [stdout] ... | [INFO] [stdout] 38 | | } [INFO] [stdout] 39 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(private_in_public)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `filename` [INFO] [stdout] --> lexer/src/tokenization.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | filename: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `line_number` [INFO] [stdout] --> lexer/src/tokenization.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | line_number: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `column` [INFO] [stdout] --> lexer/src/tokenization.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | column: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `filename` [INFO] [stdout] --> lexer/src/tokenization.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | filename: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `line_number` [INFO] [stdout] --> lexer/src/tokenization.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | line_number: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `column` [INFO] [stdout] --> lexer/src/tokenization.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | column: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> lexer/src/lexing.rs:437:9 [INFO] [stdout] | [INFO] [stdout] 437 | lexer.single_lex(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking trees v0.3.0 [INFO] [stderr] Checking aho-corasick v0.7.13 [INFO] [stderr] Checking regex v1.3.9 [INFO] [stderr] Checking virtual_machine v0.1.0 (/opt/rustwide/workdir/virtual_machine) [INFO] [stdout] error: casting pointer to `u8` [INFO] [stdout] --> virtual_machine/src/instruction_set/immediate.rs:58:38 [INFO] [stdout] | [INFO] [stdout] 58 | Pointer(d) => $dest_enum(d as $dest_type), [INFO] [stdout] | ^ help: to cast to `u8`, cast to `usize` first: `d as usize as u8` [INFO] [stdout] ... [INFO] [stdout] 72 | into_other_primitive!(self, U8, u8) [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(invalid_ptr_to_int_cast)]` on by default [INFO] [stdout] = help: pointers should only be cast to `usize` or `u64` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: casting pointer to `u16` [INFO] [stdout] --> virtual_machine/src/instruction_set/immediate.rs:58:38 [INFO] [stdout] | [INFO] [stdout] 58 | Pointer(d) => $dest_enum(d as $dest_type), [INFO] [stdout] | ^ help: to cast to `u16`, cast to `usize` first: `d as usize as u16` [INFO] [stdout] ... [INFO] [stdout] 76 | into_other_primitive!(self, U16, u16) [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: pointers should only be cast to `usize` or `u64` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: casting pointer to `u32` [INFO] [stdout] --> virtual_machine/src/instruction_set/immediate.rs:58:38 [INFO] [stdout] | [INFO] [stdout] 58 | Pointer(d) => $dest_enum(d as $dest_type), [INFO] [stdout] | ^ help: to cast to `u32`, cast to `usize` first: `d as usize as u32` [INFO] [stdout] ... [INFO] [stdout] 80 | into_other_primitive!(self, U32, u32) [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: pointers should only be cast to `usize` or `u64` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: casting pointer to `u8` [INFO] [stdout] --> virtual_machine/src/instruction_set/immediate.rs:58:38 [INFO] [stdout] | [INFO] [stdout] 58 | Pointer(d) => $dest_enum(d as $dest_type), [INFO] [stdout] | ^ help: to cast to `u8`, cast to `usize` first: `d as usize as u8` [INFO] [stdout] ... [INFO] [stdout] 72 | into_other_primitive!(self, U8, u8) [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(invalid_ptr_to_int_cast)]` on by default [INFO] [stdout] = help: pointers should only be cast to `usize` or `u64` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: casting pointer to `u16` [INFO] [stdout] --> virtual_machine/src/instruction_set/immediate.rs:58:38 [INFO] [stdout] | [INFO] [stdout] 58 | Pointer(d) => $dest_enum(d as $dest_type), [INFO] [stdout] | ^ help: to cast to `u16`, cast to `usize` first: `d as usize as u16` [INFO] [stdout] ... [INFO] [stdout] 76 | into_other_primitive!(self, U16, u16) [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: pointers should only be cast to `usize` or `u64` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: casting pointer to `u32` [INFO] [stdout] --> virtual_machine/src/instruction_set/immediate.rs:58:38 [INFO] [stdout] | [INFO] [stdout] 58 | Pointer(d) => $dest_enum(d as $dest_type), [INFO] [stdout] | ^ help: to cast to `u32`, cast to `usize` first: `d as usize as u32` [INFO] [stdout] ... [INFO] [stdout] 80 | into_other_primitive!(self, U32, u32) [INFO] [stdout] | ------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: pointers should only be cast to `usize` or `u64` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `virtual_machine` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "01ccb2f0118f4397fbecefcf479aaf566188b8465a3cc88029546aad2c797f27", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "01ccb2f0118f4397fbecefcf479aaf566188b8465a3cc88029546aad2c797f27", kill_on_drop: false }` [INFO] [stdout] 01ccb2f0118f4397fbecefcf479aaf566188b8465a3cc88029546aad2c797f27