[INFO] cloning repository https://github.com/kntt32/AsMacro-lang [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kntt32/AsMacro-lang" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkntt32%2FAsMacro-lang", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkntt32%2FAsMacro-lang'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 971ea0df0f2d8575c425f473968a596f57052568 [INFO] testing kntt32/AsMacro-lang against try#0abe69e6c16114311cc2700e972492e64d69c28f for pr-154065-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkntt32%2FAsMacro-lang" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/kntt32/AsMacro-lang [INFO] finished tweaking git repo https://github.com/kntt32/AsMacro-lang [INFO] tweaked toml for git repo https://github.com/kntt32/AsMacro-lang written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kntt32/AsMacro-lang on toolchain 0abe69e6c16114311cc2700e972492e64d69c28f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kntt32/AsMacro-lang 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" "+0abe69e6c16114311cc2700e972492e64d69c28f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 82b8adee6686cb13930f5535fb98220ff6dd4ba956bccd34328b89a0ba9c2319 [INFO] running `Command { std: "docker" "start" "-a" "82b8adee6686cb13930f5535fb98220ff6dd4ba956bccd34328b89a0ba9c2319", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "82b8adee6686cb13930f5535fb98220ff6dd4ba956bccd34328b89a0ba9c2319", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "82b8adee6686cb13930f5535fb98220ff6dd4ba956bccd34328b89a0ba9c2319", kill_on_drop: false }` [INFO] [stdout] 82b8adee6686cb13930f5535fb98220ff6dd4ba956bccd34328b89a0ba9c2319 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b15a9014846165accc56a4abae085f936fe885756c6d49cc45b3a2a61f94fa9b [INFO] running `Command { std: "docker" "start" "-a" "b15a9014846165accc56a4abae085f936fe885756c6d49cc45b3a2a61f94fa9b", kill_on_drop: false }` [INFO] [stderr] Compiling util v0.1.0 (/opt/rustwide/workdir/util) [INFO] [stderr] Compiling asm v0.1.0 (/opt/rustwide/workdir/asm) [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> asm/src/assembler/line.rs:110:59 [INFO] [stdout] | [INFO] [stdout] 110 | let value_u128 = unsafe { transmute::(value_i128) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | impl_data_pseudo!("db", i8::MIN, u8::MAX, 1) [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] = note: this warning originates in the macro `impl_data_pseudo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 110 - let value_u128 = unsafe { transmute::(value_i128) }; [INFO] [stdout] 110 + let value_u128 = unsafe { i128::cast_unsigned(value_i128) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> asm/src/assembler/line.rs:110:59 [INFO] [stdout] | [INFO] [stdout] 110 | let value_u128 = unsafe { transmute::(value_i128) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | impl_data_pseudo!("dw", i16::MIN, u16::MAX, 2) [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `impl_data_pseudo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 110 - let value_u128 = unsafe { transmute::(value_i128) }; [INFO] [stdout] 110 + let value_u128 = unsafe { i128::cast_unsigned(value_i128) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> asm/src/assembler/line.rs:110:59 [INFO] [stdout] | [INFO] [stdout] 110 | let value_u128 = unsafe { transmute::(value_i128) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | impl_data_pseudo!("dd", i32::MIN, u32::MAX, 4) [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `impl_data_pseudo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 110 - let value_u128 = unsafe { transmute::(value_i128) }; [INFO] [stdout] 110 + let value_u128 = unsafe { i128::cast_unsigned(value_i128) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> asm/src/assembler/line.rs:110:59 [INFO] [stdout] | [INFO] [stdout] 110 | let value_u128 = unsafe { transmute::(value_i128) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | impl_data_pseudo!("dq", i64::MIN, u64::MAX, 8) [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `impl_data_pseudo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 110 - let value_u128 = unsafe { transmute::(value_i128) }; [INFO] [stdout] 110 + let value_u128 = unsafe { i128::cast_unsigned(value_i128) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> asm/src/linker/object.rs:52:45 [INFO] [stdout] | [INFO] [stdout] 52 | let target_usize = unsafe { transmute::(target) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 52 - let target_usize = unsafe { transmute::(target) }; [INFO] [stdout] 52 + let target_usize = unsafe { isize::cast_unsigned(target) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> asm/src/functions.rs:23:39 [INFO] [stdout] | [INFO] [stdout] 23 | let value = (unsafe { transmute::(v) } & 0xffff_ffff_ffff_ffff) as u64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 23 - let value = (unsafe { transmute::(v) } & 0xffff_ffff_ffff_ffff) as u64; [INFO] [stdout] 23 + let value = (unsafe { i128::cast_unsigned(v) } & 0xffff_ffff_ffff_ffff) as u64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling compiler v0.1.0 (/opt/rustwide/workdir/compiler) [INFO] [stdout] warning: unused import: `Type` [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:2:44 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::types::{Data, Function, Object, Type}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `parser` [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use util::{Offset, parser, parser::Parser}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:105:20 [INFO] [stdout] | [INFO] [stdout] 105 | fn data(&self, state: Rc) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:253:20 [INFO] [stdout] | [INFO] [stdout] 253 | fn data(&self, state: Rc) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:350:26 [INFO] [stdout] | [INFO] [stdout] 350 | fn look_ahead(&self, state: Rc) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:354:20 [INFO] [stdout] | [INFO] [stdout] 354 | fn data(&self, state: Rc) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:397:26 [INFO] [stdout] | [INFO] [stdout] 397 | fn look_ahead(&self, state: Rc) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:405:23 [INFO] [stdout] | [INFO] [stdout] 405 | fn compile(&self, state: Rc) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:447:20 [INFO] [stdout] | [INFO] [stdout] 447 | fn data(&self, state: Rc) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:599:26 [INFO] [stdout] | [INFO] [stdout] 599 | fn look_ahead(&self, state: Rc) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:603:20 [INFO] [stdout] | [INFO] [stdout] 603 | fn data(&self, state: Rc) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:607:23 [INFO] [stdout] | [INFO] [stdout] 607 | fn compile(&self, state: Rc) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `object` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:91:35 [INFO] [stdout] | [INFO] [stdout] 91 | fn add_object(self: Rc, object: Object) -> SResult<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_object` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:95:43 [INFO] [stdout] | [INFO] [stdout] 95 | fn get_object_by_name(self: Rc, name: &str) -> Option { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `register` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:99:47 [INFO] [stdout] | [INFO] [stdout] 99 | fn get_object_by_register(self: Rc, register: Register) -> Option { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_register` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:103:36 [INFO] [stdout] | [INFO] [stdout] 103 | fn copy_object(self: Rc, from: Register, to: Object) -> SResult<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:103:52 [INFO] [stdout] | [INFO] [stdout] 103 | fn copy_object(self: Rc, from: Register, to: Object) -> SResult<()> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:107:36 [INFO] [stdout] | [INFO] [stdout] 107 | fn move_object(self: Rc, from: Register, to: Object) -> SResult<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:107:52 [INFO] [stdout] | [INFO] [stdout] 107 | fn move_object(self: Rc, from: Register, to: Object) -> SResult<()> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:111:38 [INFO] [stdout] | [INFO] [stdout] 111 | fn assgin_object(self: Rc, to: Register, object: Object) -> SResult<()> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `object` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:111:52 [INFO] [stdout] | [INFO] [stdout] 111 | fn assgin_object(self: Rc, to: Register, object: Object) -> SResult<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_object` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:115:44 [INFO] [stdout] | [INFO] [stdout] 115 | fn kill_object_by_name(self: Rc, name: &str) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `register` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:119:48 [INFO] [stdout] | [INFO] [stdout] 119 | fn kill_object_by_register(self: Rc, register: Register) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_register` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `register` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:123:44 [INFO] [stdout] | [INFO] [stdout] 123 | fn kill_object_without(self: Rc, register: Register) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_register` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `register` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:131:39 [INFO] [stdout] | [INFO] [stdout] 131 | fn consume_object(self: Rc, register: Register) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_register` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:162:37 [INFO] [stdout] | [INFO] [stdout] 162 | fn add_function(self: Rc, function: Function) -> SResult<()> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r#type` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:173:33 [INFO] [stdout] | [INFO] [stdout] 173 | fn add_type(self: Rc, r#type: Type) -> SResult<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r#type` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:297:18 [INFO] [stdout] | [INFO] [stdout] 297 | let Some(r#type) = self.clone().get_type(&to.data.r#type) else { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> compiler/src/syntax_tree.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let mut state = Rc::new(compiler_states::GlobalState::new()); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_type` and `clean_object` are never used [INFO] [stdout] --> compiler/src/syntax_tree.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 61 | trait CompilerState { [INFO] [stdout] | ------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 68 | fn add_type(self: Rc, r#type: Type) -> SResult<()>; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | fn clean_object(self: Rc); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `offset` is never read [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:381:5 [INFO] [stdout] | [INFO] [stdout] 379 | pub struct ReferVariableExpr { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 380 | name: String, [INFO] [stdout] 381 | offset: Offset, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ReferVariableExpr` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:472:13 [INFO] [stdout] | [INFO] [stdout] 472 | / state [INFO] [stdout] 473 | | .clone() [INFO] [stdout] 474 | | .assgin_object(left_data.register, right_object); [INFO] [stdout] | |________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 472 | let _ = state [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:587:13 [INFO] [stdout] | [INFO] [stdout] 587 | state.clone().add_object(object); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 587 | let _ = state.clone().add_object(object); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:321:17 [INFO] [stdout] | [INFO] [stdout] 321 | self.clone().add_object(to); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 321 | let _ = self.clone().add_object(to); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling main v0.1.0 (/opt/rustwide/workdir/main) [INFO] [stdout] warning: unused import: `register::Register` [INFO] [stdout] --> main/src/main.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | register::Register, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rc::Rc` [INFO] [stdout] --> main/src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | rc::Rc, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Offset` and `parser::Parser as UParser` [INFO] [stdout] --> main/src/main.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | use util::{parser::Parser as UParser, Offset}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.47s [INFO] running `Command { std: "docker" "inspect" "b15a9014846165accc56a4abae085f936fe885756c6d49cc45b3a2a61f94fa9b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b15a9014846165accc56a4abae085f936fe885756c6d49cc45b3a2a61f94fa9b", kill_on_drop: false }` [INFO] [stdout] b15a9014846165accc56a4abae085f936fe885756c6d49cc45b3a2a61f94fa9b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 461bb8750872777b4f7ea46c782bc694c1f977196232cc1c067690d6bd72a7d8 [INFO] running `Command { std: "docker" "start" "-a" "461bb8750872777b4f7ea46c782bc694c1f977196232cc1c067690d6bd72a7d8", kill_on_drop: false }` [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> asm/src/assembler/line.rs:110:59 [INFO] [stdout] | [INFO] [stdout] 110 | let value_u128 = unsafe { transmute::(value_i128) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | impl_data_pseudo!("db", i8::MIN, u8::MAX, 1) [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] = note: this warning originates in the macro `impl_data_pseudo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 110 - let value_u128 = unsafe { transmute::(value_i128) }; [INFO] [stdout] 110 + let value_u128 = unsafe { i128::cast_unsigned(value_i128) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> asm/src/assembler/line.rs:110:59 [INFO] [stdout] | [INFO] [stdout] 110 | let value_u128 = unsafe { transmute::(value_i128) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | impl_data_pseudo!("dw", i16::MIN, u16::MAX, 2) [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `impl_data_pseudo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 110 - let value_u128 = unsafe { transmute::(value_i128) }; [INFO] [stdout] 110 + let value_u128 = unsafe { i128::cast_unsigned(value_i128) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> asm/src/assembler/line.rs:110:59 [INFO] [stdout] | [INFO] [stdout] 110 | let value_u128 = unsafe { transmute::(value_i128) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | impl_data_pseudo!("dd", i32::MIN, u32::MAX, 4) [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `impl_data_pseudo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 110 - let value_u128 = unsafe { transmute::(value_i128) }; [INFO] [stdout] 110 + let value_u128 = unsafe { i128::cast_unsigned(value_i128) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> asm/src/assembler/line.rs:110:59 [INFO] [stdout] | [INFO] [stdout] 110 | let value_u128 = unsafe { transmute::(value_i128) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | impl_data_pseudo!("dq", i64::MIN, u64::MAX, 8) [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `impl_data_pseudo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 110 - let value_u128 = unsafe { transmute::(value_i128) }; [INFO] [stdout] 110 + let value_u128 = unsafe { i128::cast_unsigned(value_i128) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> asm/src/linker/object.rs:52:45 [INFO] [stdout] | [INFO] [stdout] 52 | let target_usize = unsafe { transmute::(target) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 52 - let target_usize = unsafe { transmute::(target) }; [INFO] [stdout] 52 + let target_usize = unsafe { isize::cast_unsigned(target) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> asm/src/functions.rs:23:39 [INFO] [stdout] | [INFO] [stdout] 23 | let value = (unsafe { transmute::(v) } & 0xffff_ffff_ffff_ffff) as u64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 23 - let value = (unsafe { transmute::(v) } & 0xffff_ffff_ffff_ffff) as u64; [INFO] [stdout] 23 + let value = (unsafe { i128::cast_unsigned(v) } & 0xffff_ffff_ffff_ffff) as u64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Type` [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:2:44 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::types::{Data, Function, Object, Type}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `parser` [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use util::{Offset, parser, parser::Parser}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:105:20 [INFO] [stdout] | [INFO] [stdout] 105 | fn data(&self, state: Rc) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:253:20 [INFO] [stdout] | [INFO] [stdout] 253 | fn data(&self, state: Rc) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:350:26 [INFO] [stdout] | [INFO] [stdout] 350 | fn look_ahead(&self, state: Rc) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:354:20 [INFO] [stdout] | [INFO] [stdout] 354 | fn data(&self, state: Rc) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:397:26 [INFO] [stdout] | [INFO] [stdout] 397 | fn look_ahead(&self, state: Rc) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:405:23 [INFO] [stdout] | [INFO] [stdout] 405 | fn compile(&self, state: Rc) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:447:20 [INFO] [stdout] | [INFO] [stdout] 447 | fn data(&self, state: Rc) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:599:26 [INFO] [stdout] | [INFO] [stdout] 599 | fn look_ahead(&self, state: Rc) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:603:20 [INFO] [stdout] | [INFO] [stdout] 603 | fn data(&self, state: Rc) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:607:23 [INFO] [stdout] | [INFO] [stdout] 607 | fn compile(&self, state: Rc) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `object` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:91:35 [INFO] [stdout] | [INFO] [stdout] 91 | fn add_object(self: Rc, object: Object) -> SResult<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_object` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:95:43 [INFO] [stdout] | [INFO] [stdout] 95 | fn get_object_by_name(self: Rc, name: &str) -> Option { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `register` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:99:47 [INFO] [stdout] | [INFO] [stdout] 99 | fn get_object_by_register(self: Rc, register: Register) -> Option { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_register` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:103:36 [INFO] [stdout] | [INFO] [stdout] 103 | fn copy_object(self: Rc, from: Register, to: Object) -> SResult<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:103:52 [INFO] [stdout] | [INFO] [stdout] 103 | fn copy_object(self: Rc, from: Register, to: Object) -> SResult<()> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:107:36 [INFO] [stdout] | [INFO] [stdout] 107 | fn move_object(self: Rc, from: Register, to: Object) -> SResult<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:107:52 [INFO] [stdout] | [INFO] [stdout] 107 | fn move_object(self: Rc, from: Register, to: Object) -> SResult<()> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:111:38 [INFO] [stdout] | [INFO] [stdout] 111 | fn assgin_object(self: Rc, to: Register, object: Object) -> SResult<()> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `object` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:111:52 [INFO] [stdout] | [INFO] [stdout] 111 | fn assgin_object(self: Rc, to: Register, object: Object) -> SResult<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_object` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:115:44 [INFO] [stdout] | [INFO] [stdout] 115 | fn kill_object_by_name(self: Rc, name: &str) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `register` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:119:48 [INFO] [stdout] | [INFO] [stdout] 119 | fn kill_object_by_register(self: Rc, register: Register) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_register` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `register` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:123:44 [INFO] [stdout] | [INFO] [stdout] 123 | fn kill_object_without(self: Rc, register: Register) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_register` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `register` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:131:39 [INFO] [stdout] | [INFO] [stdout] 131 | fn consume_object(self: Rc, register: Register) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_register` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:162:37 [INFO] [stdout] | [INFO] [stdout] 162 | fn add_function(self: Rc, function: Function) -> SResult<()> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r#type` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:173:33 [INFO] [stdout] | [INFO] [stdout] 173 | fn add_type(self: Rc, r#type: Type) -> SResult<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r#type` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:297:18 [INFO] [stdout] | [INFO] [stdout] 297 | let Some(r#type) = self.clone().get_type(&to.data.r#type) else { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> compiler/src/syntax_tree.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let mut state = Rc::new(compiler_states::GlobalState::new()); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_type` and `clean_object` are never used [INFO] [stdout] --> compiler/src/syntax_tree.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 61 | trait CompilerState { [INFO] [stdout] | ------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 68 | fn add_type(self: Rc, r#type: Type) -> SResult<()>; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | fn clean_object(self: Rc); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `offset` is never read [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:381:5 [INFO] [stdout] | [INFO] [stdout] 379 | pub struct ReferVariableExpr { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 380 | name: String, [INFO] [stdout] 381 | offset: Offset, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ReferVariableExpr` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:472:13 [INFO] [stdout] | [INFO] [stdout] 472 | / state [INFO] [stdout] 473 | | .clone() [INFO] [stdout] 474 | | .assgin_object(left_data.register, right_object); [INFO] [stdout] | |________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 472 | let _ = state [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:587:13 [INFO] [stdout] | [INFO] [stdout] 587 | state.clone().add_object(object); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 587 | let _ = state.clone().add_object(object); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:321:17 [INFO] [stdout] | [INFO] [stdout] 321 | self.clone().add_object(to); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 321 | let _ = self.clone().add_object(to); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling compiler v0.1.0 (/opt/rustwide/workdir/compiler) [INFO] [stderr] Compiling asm v0.1.0 (/opt/rustwide/workdir/asm) [INFO] [stderr] Compiling main v0.1.0 (/opt/rustwide/workdir/main) [INFO] [stderr] Compiling util v0.1.0 (/opt/rustwide/workdir/util) [INFO] [stdout] warning: unused import: `register::Register` [INFO] [stdout] --> main/src/main.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | register::Register, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rc::Rc` [INFO] [stdout] --> main/src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | rc::Rc, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Offset` and `parser::Parser as UParser` [INFO] [stdout] --> main/src/main.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | use util::{parser::Parser as UParser, Offset}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Type` [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:2:44 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::types::{Data, Function, Object, Type}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `parser` [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use util::{Offset, parser, parser::Parser}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:105:20 [INFO] [stdout] | [INFO] [stdout] 105 | fn data(&self, state: Rc) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:253:20 [INFO] [stdout] | [INFO] [stdout] 253 | fn data(&self, state: Rc) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:350:26 [INFO] [stdout] | [INFO] [stdout] 350 | fn look_ahead(&self, state: Rc) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:354:20 [INFO] [stdout] | [INFO] [stdout] 354 | fn data(&self, state: Rc) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:397:26 [INFO] [stdout] | [INFO] [stdout] 397 | fn look_ahead(&self, state: Rc) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:405:23 [INFO] [stdout] | [INFO] [stdout] 405 | fn compile(&self, state: Rc) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:447:20 [INFO] [stdout] | [INFO] [stdout] 447 | fn data(&self, state: Rc) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:599:26 [INFO] [stdout] | [INFO] [stdout] 599 | fn look_ahead(&self, state: Rc) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:603:20 [INFO] [stdout] | [INFO] [stdout] 603 | fn data(&self, state: Rc) -> Option { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:607:23 [INFO] [stdout] | [INFO] [stdout] 607 | fn compile(&self, state: Rc) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `object` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:91:35 [INFO] [stdout] | [INFO] [stdout] 91 | fn add_object(self: Rc, object: Object) -> SResult<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_object` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:95:43 [INFO] [stdout] | [INFO] [stdout] 95 | fn get_object_by_name(self: Rc, name: &str) -> Option { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `register` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:99:47 [INFO] [stdout] | [INFO] [stdout] 99 | fn get_object_by_register(self: Rc, register: Register) -> Option { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_register` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:103:36 [INFO] [stdout] | [INFO] [stdout] 103 | fn copy_object(self: Rc, from: Register, to: Object) -> SResult<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:103:52 [INFO] [stdout] | [INFO] [stdout] 103 | fn copy_object(self: Rc, from: Register, to: Object) -> SResult<()> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `from` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:107:36 [INFO] [stdout] | [INFO] [stdout] 107 | fn move_object(self: Rc, from: Register, to: Object) -> SResult<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:107:52 [INFO] [stdout] | [INFO] [stdout] 107 | fn move_object(self: Rc, from: Register, to: Object) -> SResult<()> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `to` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:111:38 [INFO] [stdout] | [INFO] [stdout] 111 | fn assgin_object(self: Rc, to: Register, object: Object) -> SResult<()> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `object` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:111:52 [INFO] [stdout] | [INFO] [stdout] 111 | fn assgin_object(self: Rc, to: Register, object: Object) -> SResult<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_object` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:115:44 [INFO] [stdout] | [INFO] [stdout] 115 | fn kill_object_by_name(self: Rc, name: &str) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `register` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:119:48 [INFO] [stdout] | [INFO] [stdout] 119 | fn kill_object_by_register(self: Rc, register: Register) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_register` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `register` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:123:44 [INFO] [stdout] | [INFO] [stdout] 123 | fn kill_object_without(self: Rc, register: Register) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_register` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `register` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:131:39 [INFO] [stdout] | [INFO] [stdout] 131 | fn consume_object(self: Rc, register: Register) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_register` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `function` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:162:37 [INFO] [stdout] | [INFO] [stdout] 162 | fn add_function(self: Rc, function: Function) -> SResult<()> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_function` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r#type` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:173:33 [INFO] [stdout] | [INFO] [stdout] 173 | fn add_type(self: Rc, r#type: Type) -> SResult<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r#type` [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:297:18 [INFO] [stdout] | [INFO] [stdout] 297 | let Some(r#type) = self.clone().get_type(&to.data.r#type) else { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> compiler/src/syntax_tree.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let mut state = Rc::new(compiler_states::GlobalState::new()); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_type` and `clean_object` are never used [INFO] [stdout] --> compiler/src/syntax_tree.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 61 | trait CompilerState { [INFO] [stdout] | ------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 68 | fn add_type(self: Rc, r#type: Type) -> SResult<()>; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | fn clean_object(self: Rc); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `offset` is never read [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:381:5 [INFO] [stdout] | [INFO] [stdout] 379 | pub struct ReferVariableExpr { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 380 | name: String, [INFO] [stdout] 381 | offset: Offset, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ReferVariableExpr` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:472:13 [INFO] [stdout] | [INFO] [stdout] 472 | / state [INFO] [stdout] 473 | | .clone() [INFO] [stdout] 474 | | .assgin_object(left_data.register, right_object); [INFO] [stdout] | |________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 472 | let _ = state [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> compiler/src/syntax_tree/syntax_nodes.rs:587:13 [INFO] [stdout] | [INFO] [stdout] 587 | state.clone().add_object(object); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 587 | let _ = state.clone().add_object(object); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> compiler/src/syntax_tree/compiler_states.rs:321:17 [INFO] [stdout] | [INFO] [stdout] 321 | self.clone().add_object(to); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 321 | let _ = self.clone().add_object(to); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> asm/src/assembler/line.rs:110:59 [INFO] [stdout] | [INFO] [stdout] 110 | let value_u128 = unsafe { transmute::(value_i128) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | impl_data_pseudo!("db", i8::MIN, u8::MAX, 1) [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] = note: this warning originates in the macro `impl_data_pseudo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 110 - let value_u128 = unsafe { transmute::(value_i128) }; [INFO] [stdout] 110 + let value_u128 = unsafe { i128::cast_unsigned(value_i128) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> asm/src/assembler/line.rs:110:59 [INFO] [stdout] | [INFO] [stdout] 110 | let value_u128 = unsafe { transmute::(value_i128) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | impl_data_pseudo!("dw", i16::MIN, u16::MAX, 2) [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `impl_data_pseudo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 110 - let value_u128 = unsafe { transmute::(value_i128) }; [INFO] [stdout] 110 + let value_u128 = unsafe { i128::cast_unsigned(value_i128) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> asm/src/assembler/line.rs:110:59 [INFO] [stdout] | [INFO] [stdout] 110 | let value_u128 = unsafe { transmute::(value_i128) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | impl_data_pseudo!("dd", i32::MIN, u32::MAX, 4) [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `impl_data_pseudo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 110 - let value_u128 = unsafe { transmute::(value_i128) }; [INFO] [stdout] 110 + let value_u128 = unsafe { i128::cast_unsigned(value_i128) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> asm/src/assembler/line.rs:110:59 [INFO] [stdout] | [INFO] [stdout] 110 | let value_u128 = unsafe { transmute::(value_i128) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | impl_data_pseudo!("dq", i64::MIN, u64::MAX, 8) [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `impl_data_pseudo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 110 - let value_u128 = unsafe { transmute::(value_i128) }; [INFO] [stdout] 110 + let value_u128 = unsafe { i128::cast_unsigned(value_i128) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> asm/src/linker/object.rs:52:45 [INFO] [stdout] | [INFO] [stdout] 52 | let target_usize = unsafe { transmute::(target) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 52 - let target_usize = unsafe { transmute::(target) }; [INFO] [stdout] 52 + let target_usize = unsafe { isize::cast_unsigned(target) }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> asm/src/functions.rs:23:39 [INFO] [stdout] | [INFO] [stdout] 23 | let value = (unsafe { transmute::(v) } & 0xffff_ffff_ffff_ffff) as u64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace this with [INFO] [stdout] | [INFO] [stdout] 23 - let value = (unsafe { transmute::(v) } & 0xffff_ffff_ffff_ffff) as u64; [INFO] [stdout] 23 + let value = (unsafe { i128::cast_unsigned(v) } & 0xffff_ffff_ffff_ffff) as u64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `MatchStr` in this scope [INFO] [stdout] --> util/src/lib.rs:615:21 [INFO] [stdout] | [INFO] [stdout] 615 | MatchStr::Char('['), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `MatchStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `MatchStr` in this scope [INFO] [stdout] --> util/src/lib.rs:616:21 [INFO] [stdout] | [INFO] [stdout] 616 | MatchStr::Str(&"rbp"), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `MatchStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `MatchStr` in this scope [INFO] [stdout] --> util/src/lib.rs:617:21 [INFO] [stdout] | [INFO] [stdout] 617 | MatchStr::Char('+'), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `MatchStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `MatchStr` in this scope [INFO] [stdout] --> util/src/lib.rs:618:21 [INFO] [stdout] | [INFO] [stdout] 618 | MatchStr::Str(&"rdi"), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `MatchStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `MatchStr` in this scope [INFO] [stdout] --> util/src/lib.rs:619:21 [INFO] [stdout] | [INFO] [stdout] 619 | MatchStr::Char('*'), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `MatchStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `MatchStr` in this scope [INFO] [stdout] --> util/src/lib.rs:620:21 [INFO] [stdout] | [INFO] [stdout] 620 | MatchStr::Number, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `MatchStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `MatchStr` in this scope [INFO] [stdout] --> util/src/lib.rs:621:21 [INFO] [stdout] | [INFO] [stdout] 621 | MatchStr::Char(']'), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `MatchStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `match_str` in this scope [INFO] [stdout] --> util/src/lib.rs:612:13 [INFO] [stdout] | [INFO] [stdout] 612 | match_str( [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `util` (lib test) due to 8 previous errors [INFO] running `Command { std: "docker" "inspect" "461bb8750872777b4f7ea46c782bc694c1f977196232cc1c067690d6bd72a7d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "461bb8750872777b4f7ea46c782bc694c1f977196232cc1c067690d6bd72a7d8", kill_on_drop: false }` [INFO] [stdout] 461bb8750872777b4f7ea46c782bc694c1f977196232cc1c067690d6bd72a7d8