[INFO] fetching crate Ygen 0.1.2... [INFO] testing Ygen-0.1.2 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate Ygen 0.1.2 into /workspace/builds/worker-3-tc1/source [INFO] started tweaking crates.io crate Ygen 0.1.2 [INFO] removed 0 missing examples [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate Ygen 0.1.2 [INFO] tweaked toml for crates.io crate Ygen 0.1.2 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate Ygen 0.1.2 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate Ygen 0.1.2 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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded logos-derive v0.14.2 [INFO] [stderr] Downloaded ygen_proc v0.1.0 [INFO] [stderr] Downloaded ruzstd v0.7.0 [INFO] [stderr] Downloaded logos-codegen v0.14.2 [INFO] [stderr] Downloaded gimli v0.31.0 [INFO] [stderr] Downloaded logos v0.14.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cf7a364739d39f0d7a4991fa7f2717bba3ae1301fb032f6f93c6a3db36cdd14c [INFO] running `Command { std: "docker" "start" "-a" "cf7a364739d39f0d7a4991fa7f2717bba3ae1301fb032f6f93c6a3db36cdd14c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cf7a364739d39f0d7a4991fa7f2717bba3ae1301fb032f6f93c6a3db36cdd14c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cf7a364739d39f0d7a4991fa7f2717bba3ae1301fb032f6f93c6a3db36cdd14c", kill_on_drop: false }` [INFO] [stdout] cf7a364739d39f0d7a4991fa7f2717bba3ae1301fb032f6f93c6a3db36cdd14c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] b6bf0c13d0f8ebd341e11a1ce487096037ea77762cd022e85117ae3e320e0e8f [INFO] running `Command { std: "docker" "start" "-a" "b6bf0c13d0f8ebd341e11a1ce487096037ea77762cd022e85117ae3e320e0e8f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling beef v0.5.2 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling miniz_oxide v0.7.4 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling fallible-iterator v0.3.0 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling twox-hash v1.6.3 [INFO] [stderr] Compiling flate2 v1.0.30 [INFO] [stderr] Compiling ruzstd v0.7.0 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Compiling object v0.36.4 [INFO] [stderr] Compiling gimli v0.31.0 [INFO] [stderr] Compiling logos-codegen v0.14.2 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling ygen_proc v0.1.0 [INFO] [stderr] Compiling logos-derive v0.14.2 [INFO] [stderr] Compiling logos v0.14.2 [INFO] [stderr] Compiling unescaper v0.1.5 [INFO] [stderr] Compiling Ygen v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/CodeGen/settings.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug, Clone, PartialEq, Eq)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] 6 | pub struct MCSettings { [INFO] [stdout] 7 | lowering: Option) -> Vec>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] = note: `#[warn(unpredictable_function_pointer_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/CodeGen/settings.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug, Clone, PartialEq, Eq)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 8 | prolog: Option Vec>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/CodeGen/settings.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug, Clone, PartialEq, Eq)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 9 | epilog: Option Vec>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/CodeGen/compilation/mod.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Debug, Clone, PartialEq, Eq)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 27 | pub(crate) lower: Option) -> Vec>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.92s [INFO] running `Command { std: "docker" "inspect" "b6bf0c13d0f8ebd341e11a1ce487096037ea77762cd022e85117ae3e320e0e8f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b6bf0c13d0f8ebd341e11a1ce487096037ea77762cd022e85117ae3e320e0e8f", kill_on_drop: false }` [INFO] [stdout] b6bf0c13d0f8ebd341e11a1ce487096037ea77762cd022e85117ae3e320e0e8f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 187488b8777bf07281ed87fee6ff1a4fad448e878a8dd88958bc531185f267f4 [INFO] running `Command { std: "docker" "start" "-a" "187488b8777bf07281ed87fee6ff1a4fad448e878a8dd88958bc531185f267f4", kill_on_drop: false }` [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/CodeGen/settings.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug, Clone, PartialEq, Eq)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] 6 | pub struct MCSettings { [INFO] [stdout] 7 | lowering: Option) -> Vec>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] = note: `#[warn(unpredictable_function_pointer_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/CodeGen/settings.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug, Clone, PartialEq, Eq)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 8 | prolog: Option Vec>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/CodeGen/settings.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug, Clone, PartialEq, Eq)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 9 | epilog: Option Vec>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling Ygen v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/CodeGen/compilation/mod.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Debug, Clone, PartialEq, Eq)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 27 | pub(crate) lower: Option) -> Vec>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `ygen` [INFO] [stdout] --> examples/debug_metadata.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use ygen::{debug::Lang, prelude::*, Support::ColorProfile, Target::initializeAllTargets}; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `ygen` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 2 - use ygen::{debug::Lang, prelude::*, Support::ColorProfile, Target::initializeAllTargets}; [INFO] [stdout] 2 + use Ygen::{debug::Lang, prelude::*, Support::ColorProfile, Target::initializeAllTargets}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `ygen::debug::Lang`, `ygen::Support::ColorProfile`, `ygen::Target::initializeAllTargets` [INFO] [stdout] --> examples/debug_metadata.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use ygen::{debug::Lang, prelude::*, Support::ColorProfile, Target::initializeAllTargets}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `ygen` [INFO] [stdout] --> examples/simple.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use ygen::{prelude::*, Support::ColorProfile, Target::initializeAllTargets}; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `ygen` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 2 - use ygen::{prelude::*, Support::ColorProfile, Target::initializeAllTargets}; [INFO] [stdout] 2 + use Ygen::{prelude::*, Support::ColorProfile, Target::initializeAllTargets}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `ygen::Support::ColorProfile`, `ygen::Target::initializeAllTargets` [INFO] [stdout] --> examples/simple.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use ygen::{prelude::*, Support::ColorProfile, Target::initializeAllTargets}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `ygen` [INFO] [stdout] --> tests/x64_instruction_encoding.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ygen::{Optimizations::auto_max_optimize, Target::{x64::instr::*, x64Reg}}; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `ygen` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 1 - use ygen::{Optimizations::auto_max_optimize, Target::{x64::instr::*, x64Reg}}; [INFO] [stdout] 1 + use Ygen::{Optimizations::auto_max_optimize, Target::{x64::instr::*, x64Reg}}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `ygen::Optimizations::auto_max_optimize`, `ygen::Target::x64Reg` [INFO] [stdout] --> tests/x64_instruction_encoding.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use ygen::{Optimizations::auto_max_optimize, Target::{x64::instr::*, x64Reg}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `ygen` [INFO] [stdout] --> tests/ir.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ygen::prelude::*; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `ygen` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 1 - use ygen::prelude::*; [INFO] [stdout] 1 + use Ygen::prelude::*; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `ygen` [INFO] [stdout] --> examples/helloworld.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use ygen::{prelude::*, Support::ColorProfile, Target::initializeAllTargets}; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `ygen` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 2 - use ygen::{prelude::*, Support::ColorProfile, Target::initializeAllTargets}; [INFO] [stdout] 2 + use Ygen::{prelude::*, Support::ColorProfile, Target::initializeAllTargets}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `ygen` [INFO] [stdout] --> examples/obj.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ygen::debug::{DebugLocation, DebugRegistry}; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `ygen` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 3 - use ygen::debug::{DebugLocation, DebugRegistry}; [INFO] [stdout] 3 + use Ygen::debug::{DebugLocation, DebugRegistry}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `ygen` [INFO] [stdout] --> examples/obj.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use ygen::{Obj::*, Target::Triple}; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `ygen` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 4 - use ygen::{Obj::*, Target::Triple}; [INFO] [stdout] 4 + use Ygen::{Obj::*, Target::Triple}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `ygen` [INFO] [stdout] --> examples/obj.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use ygen::Target::x64::{instr::*, x64Reg}; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `ygen` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name (notice the capitalization difference) [INFO] [stdout] | [INFO] [stdout] 5 - use ygen::Target::x64::{instr::*, x64Reg}; [INFO] [stdout] 5 + use Ygen::Target::x64::{instr::*, x64Reg}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `ygen::debug::DebugLocation`, `ygen::debug::DebugRegistry`, `ygen::Obj::*`, `ygen::Target::Triple`, `ygen::Target::x64::instr::*`, `ygen::Target::x64::x64Reg` [INFO] [stdout] --> examples/obj.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | use ygen::debug::{DebugLocation, DebugRegistry}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] 4 | use ygen::{Obj::*, Target::Triple}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] 5 | use ygen::Target::x64::{instr::*, x64Reg}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `ygen::Support::ColorProfile`, `ygen::Target::initializeAllTargets` [INFO] [stdout] --> examples/helloworld.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use ygen::{prelude::*, Support::ColorProfile, Target::initializeAllTargets}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Module` in this scope [INFO] [stdout] --> examples/helloworld.rs:6:22 [INFO] [stdout] | [INFO] [stdout] 6 | let mut module = Module(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::Module; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `IRBuilder` in this scope [INFO] [stdout] --> examples/helloworld.rs:8:23 [INFO] [stdout] | [INFO] [stdout] 8 | let mut builder = IRBuilder(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::IRBuilder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `FnTy` in this scope [INFO] [stdout] --> examples/helloworld.rs:10:39 [INFO] [stdout] | [INFO] [stdout] 10 | let other = module.add("printf", &FnTy(vec![TypeMetadata::ptr], TypeMetadata::Void)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::FnTy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TypeMetadata` [INFO] [stdout] --> examples/helloworld.rs:10:49 [INFO] [stdout] | [INFO] [stdout] 10 | let other = module.add("printf", &FnTy(vec![TypeMetadata::ptr], TypeMetadata::Void)); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `TypeMetadata` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::TypeMetadata; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TypeMetadata` [INFO] [stdout] --> examples/helloworld.rs:10:69 [INFO] [stdout] | [INFO] [stdout] 10 | let other = module.add("printf", &FnTy(vec![TypeMetadata::ptr], TypeMetadata::Void)); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `TypeMetadata` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::TypeMetadata; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `FnTy` in this scope [INFO] [stdout] --> examples/helloworld.rs:18:14 [INFO] [stdout] | [INFO] [stdout] 18 | let ty = FnTy(vec![], TypeMetadata::Void); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::FnTy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TypeMetadata` [INFO] [stdout] --> examples/helloworld.rs:18:27 [INFO] [stdout] | [INFO] [stdout] 18 | let ty = FnTy(vec![], TypeMetadata::Void); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `TypeMetadata` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::TypeMetadata; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Type` [INFO] [stdout] --> examples/helloworld.rs:32:23 [INFO] [stdout] | [INFO] [stdout] 32 | builder.BuildRet( Type::Void ); [INFO] [stdout] | ^^^^ use of undeclared type `Type` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::Type; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Triple` [INFO] [stdout] --> examples/helloworld.rs:40:18 [INFO] [stdout] | [INFO] [stdout] 40 | let triple = Triple::host(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Triple` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::Triple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Module` in this scope [INFO] [stdout] --> tests/ir.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | let mut module = Module(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::Module; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `IRBuilder` in this scope [INFO] [stdout] --> tests/ir.rs:7:23 [INFO] [stdout] | [INFO] [stdout] 7 | let mut builder = IRBuilder(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::IRBuilder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `FnTy` in this scope [INFO] [stdout] --> tests/ir.rs:9:38 [INFO] [stdout] | [INFO] [stdout] 9 | let other = module.add("cfunc", &FnTy(vec![TypeMetadata::i32, TypeMetadata::i32], TypeMetadata::i32)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::FnTy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TypeMetadata` [INFO] [stdout] --> tests/ir.rs:9:48 [INFO] [stdout] | [INFO] [stdout] 9 | let other = module.add("cfunc", &FnTy(vec![TypeMetadata::i32, TypeMetadata::i32], TypeMetadata::i32)); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `TypeMetadata` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::TypeMetadata; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TypeMetadata` [INFO] [stdout] --> tests/ir.rs:9:67 [INFO] [stdout] | [INFO] [stdout] 9 | let other = module.add("cfunc", &FnTy(vec![TypeMetadata::i32, TypeMetadata::i32], TypeMetadata::i32)); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `TypeMetadata` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::TypeMetadata; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TypeMetadata` [INFO] [stdout] --> tests/ir.rs:9:87 [INFO] [stdout] | [INFO] [stdout] 9 | let other = module.add("cfunc", &FnTy(vec![TypeMetadata::i32, TypeMetadata::i32], TypeMetadata::i32)); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `TypeMetadata` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::TypeMetadata; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `FnTy` in this scope [INFO] [stdout] --> tests/ir.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | let ty = FnTy(vec![TypeMetadata::i32, TypeMetadata::i32], TypeMetadata::i32); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::FnTy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TypeMetadata` [INFO] [stdout] --> tests/ir.rs:13:24 [INFO] [stdout] | [INFO] [stdout] 13 | let ty = FnTy(vec![TypeMetadata::i32, TypeMetadata::i32], TypeMetadata::i32); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `TypeMetadata` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::TypeMetadata; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TypeMetadata` [INFO] [stdout] --> tests/ir.rs:13:43 [INFO] [stdout] | [INFO] [stdout] 13 | let ty = FnTy(vec![TypeMetadata::i32, TypeMetadata::i32], TypeMetadata::i32); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `TypeMetadata` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::TypeMetadata; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Module` in this scope [INFO] [stdout] --> examples/simple.rs:6:22 [INFO] [stdout] | [INFO] [stdout] 6 | let mut module = Module(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::Module; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TypeMetadata` [INFO] [stdout] --> tests/ir.rs:13:63 [INFO] [stdout] | [INFO] [stdout] 13 | let ty = FnTy(vec![TypeMetadata::i32, TypeMetadata::i32], TypeMetadata::i32); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `TypeMetadata` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::TypeMetadata; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `IRBuilder` in this scope [INFO] [stdout] --> examples/simple.rs:8:23 [INFO] [stdout] | [INFO] [stdout] 8 | let mut builder = IRBuilder(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::IRBuilder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `FnTy` in this scope [INFO] [stdout] --> examples/simple.rs:10:38 [INFO] [stdout] | [INFO] [stdout] 10 | let other = module.add("cfunc", &FnTy(vec![TypeMetadata::i32, TypeMetadata::i32], TypeMetadata::i32)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::FnTy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TypeMetadata` [INFO] [stdout] --> examples/simple.rs:10:48 [INFO] [stdout] | [INFO] [stdout] 10 | let other = module.add("cfunc", &FnTy(vec![TypeMetadata::i32, TypeMetadata::i32], TypeMetadata::i32)); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `TypeMetadata` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::TypeMetadata; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TypeMetadata` [INFO] [stdout] --> examples/simple.rs:10:67 [INFO] [stdout] | [INFO] [stdout] 10 | let other = module.add("cfunc", &FnTy(vec![TypeMetadata::i32, TypeMetadata::i32], TypeMetadata::i32)); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `TypeMetadata` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::TypeMetadata; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TypeMetadata` [INFO] [stdout] --> examples/simple.rs:10:87 [INFO] [stdout] | [INFO] [stdout] 10 | let other = module.add("cfunc", &FnTy(vec![TypeMetadata::i32, TypeMetadata::i32], TypeMetadata::i32)); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `TypeMetadata` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::TypeMetadata; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `FnTy` in this scope [INFO] [stdout] --> examples/simple.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | let ty = FnTy(vec![TypeMetadata::i32, TypeMetadata::i32], TypeMetadata::i32); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::FnTy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TypeMetadata` [INFO] [stdout] --> examples/simple.rs:14:24 [INFO] [stdout] | [INFO] [stdout] 14 | let ty = FnTy(vec![TypeMetadata::i32, TypeMetadata::i32], TypeMetadata::i32); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `TypeMetadata` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::TypeMetadata; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TypeMetadata` [INFO] [stdout] --> examples/simple.rs:14:43 [INFO] [stdout] | [INFO] [stdout] 14 | let ty = FnTy(vec![TypeMetadata::i32, TypeMetadata::i32], TypeMetadata::i32); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `TypeMetadata` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::TypeMetadata; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TypeMetadata` [INFO] [stdout] --> examples/simple.rs:14:63 [INFO] [stdout] | [INFO] [stdout] 14 | let ty = FnTy(vec![TypeMetadata::i32, TypeMetadata::i32], TypeMetadata::i32); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `TypeMetadata` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::TypeMetadata; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Triple` [INFO] [stdout] --> examples/simple.rs:36:18 [INFO] [stdout] | [INFO] [stdout] 36 | let triple = Triple::host(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Triple` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::Triple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Module` in this scope [INFO] [stdout] --> examples/debug_metadata.rs:14:22 [INFO] [stdout] | [INFO] [stdout] 14 | let mut module = Module(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::Module; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `IRBuilder` in this scope [INFO] [stdout] --> examples/debug_metadata.rs:17:23 [INFO] [stdout] | [INFO] [stdout] 17 | let mut builder = IRBuilder(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::IRBuilder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `FnTy` in this scope [INFO] [stdout] --> examples/debug_metadata.rs:19:39 [INFO] [stdout] | [INFO] [stdout] 19 | let other = module.add("printf", &FnTy(vec![TypeMetadata::ptr], TypeMetadata::Void)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::FnTy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TypeMetadata` [INFO] [stdout] --> examples/debug_metadata.rs:19:49 [INFO] [stdout] | [INFO] [stdout] 19 | let other = module.add("printf", &FnTy(vec![TypeMetadata::ptr], TypeMetadata::Void)); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `TypeMetadata` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::TypeMetadata; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TypeMetadata` [INFO] [stdout] --> examples/debug_metadata.rs:19:69 [INFO] [stdout] | [INFO] [stdout] 19 | let other = module.add("printf", &FnTy(vec![TypeMetadata::ptr], TypeMetadata::Void)); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `TypeMetadata` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::TypeMetadata; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `FnTy` in this scope [INFO] [stdout] --> examples/debug_metadata.rs:27:14 [INFO] [stdout] | [INFO] [stdout] 27 | let ty = FnTy(vec![], TypeMetadata::Void); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::FnTy; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TypeMetadata` [INFO] [stdout] --> examples/debug_metadata.rs:27:27 [INFO] [stdout] | [INFO] [stdout] 27 | let ty = FnTy(vec![], TypeMetadata::Void); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `TypeMetadata` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::TypeMetadata; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Type` [INFO] [stdout] --> examples/debug_metadata.rs:43:23 [INFO] [stdout] | [INFO] [stdout] 43 | builder.BuildRet( Type::Void ); [INFO] [stdout] | ^^^^ use of undeclared type `Type` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::Type; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Triple` [INFO] [stdout] --> examples/debug_metadata.rs:51:18 [INFO] [stdout] | [INFO] [stdout] 51 | let triple = Triple::host(); [INFO] [stdout] | ^^^^^^ use of undeclared type `Triple` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::prelude::Triple; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [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 `Ygen` (example "helloworld") due to 11 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `Ygen` (example "simple") due to 13 previous errors [INFO] [stderr] error: could not compile `Ygen` (test "ir") due to 11 previous errors [INFO] [stderr] error: could not compile `Ygen` (example "debug_metadata") due to 11 previous errors [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `X64MCInstr` [INFO] [stdout] --> tests/x64_instruction_encoding.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | let instr = X64MCInstr::with2( [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `X64MCInstr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::X64MCInstr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mnemonic` [INFO] [stdout] --> tests/x64_instruction_encoding.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | Mnemonic::Mov, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Mnemonic` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Mnemonic; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> tests/x64_instruction_encoding.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | Operand::Reg(x64Reg::Rcx), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Operand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> tests/x64_instruction_encoding.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | Operand::Mem(MemOp { base: Some(x64Reg::R15), index: None, scale: 1, displ: 5, rip: false }) [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Operand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `MemOp` in this scope [INFO] [stdout] --> tests/x64_instruction_encoding.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | Operand::Mem(MemOp { base: Some(x64Reg::R15), index: None, scale: 1, displ: 5, rip: false }) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::MemOp; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `X64MCInstr` [INFO] [stdout] --> tests/x64_instruction_encoding.rs:13:17 [INFO] [stdout] | [INFO] [stdout] 13 | let instr = X64MCInstr::with2( [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `X64MCInstr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::X64MCInstr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mnemonic` [INFO] [stdout] --> tests/x64_instruction_encoding.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | Mnemonic::Mov, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Mnemonic` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Mnemonic; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> tests/x64_instruction_encoding.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | Operand::Reg(x64Reg::R12b), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Operand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> tests/x64_instruction_encoding.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | Operand::Imm(12) [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Operand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `X64MCInstr` [INFO] [stdout] --> tests/x64_instruction_encoding.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | let instr = X64MCInstr::with0(Mnemonic::Ret); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `X64MCInstr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::X64MCInstr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mnemonic` [INFO] [stdout] --> tests/x64_instruction_encoding.rs:24:35 [INFO] [stdout] | [INFO] [stdout] 24 | let instr = X64MCInstr::with0(Mnemonic::Ret); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Mnemonic` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Mnemonic; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `X64MCInstr` [INFO] [stdout] --> tests/x64_instruction_encoding.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | X64MCInstr::with0(Mnemonic::StartOptimization), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `X64MCInstr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::X64MCInstr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mnemonic` [INFO] [stdout] --> tests/x64_instruction_encoding.rs:32:27 [INFO] [stdout] | [INFO] [stdout] 32 | X64MCInstr::with0(Mnemonic::StartOptimization), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Mnemonic` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Mnemonic; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `X64MCInstr` [INFO] [stdout] --> tests/x64_instruction_encoding.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | X64MCInstr::with2(Mnemonic::Mov, Operand::Reg(x64Reg::Rax), Operand::Reg(x64Reg::Rcx)), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `X64MCInstr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::X64MCInstr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mnemonic` [INFO] [stdout] --> tests/x64_instruction_encoding.rs:33:27 [INFO] [stdout] | [INFO] [stdout] 33 | X64MCInstr::with2(Mnemonic::Mov, Operand::Reg(x64Reg::Rax), Operand::Reg(x64Reg::Rcx)), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Mnemonic` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Mnemonic; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> tests/x64_instruction_encoding.rs:33:42 [INFO] [stdout] | [INFO] [stdout] 33 | X64MCInstr::with2(Mnemonic::Mov, Operand::Reg(x64Reg::Rax), Operand::Reg(x64Reg::Rcx)), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Operand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> tests/x64_instruction_encoding.rs:33:69 [INFO] [stdout] | [INFO] [stdout] 33 | X64MCInstr::with2(Mnemonic::Mov, Operand::Reg(x64Reg::Rax), Operand::Reg(x64Reg::Rcx)), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Operand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `X64MCInstr` [INFO] [stdout] --> tests/x64_instruction_encoding.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | X64MCInstr::with2(Mnemonic::Add, Operand::Reg(x64Reg::Rax), Operand::Reg(x64Reg::Rdx)), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `X64MCInstr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::X64MCInstr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mnemonic` [INFO] [stdout] --> tests/x64_instruction_encoding.rs:34:27 [INFO] [stdout] | [INFO] [stdout] 34 | X64MCInstr::with2(Mnemonic::Add, Operand::Reg(x64Reg::Rax), Operand::Reg(x64Reg::Rdx)), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Mnemonic` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Mnemonic; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> tests/x64_instruction_encoding.rs:34:42 [INFO] [stdout] | [INFO] [stdout] 34 | X64MCInstr::with2(Mnemonic::Add, Operand::Reg(x64Reg::Rax), Operand::Reg(x64Reg::Rdx)), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Operand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> tests/x64_instruction_encoding.rs:34:69 [INFO] [stdout] | [INFO] [stdout] 34 | X64MCInstr::with2(Mnemonic::Add, Operand::Reg(x64Reg::Rax), Operand::Reg(x64Reg::Rdx)), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Operand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `X64MCInstr` [INFO] [stdout] --> tests/x64_instruction_encoding.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | X64MCInstr::with2(Mnemonic::Mov, Operand::Reg(x64Reg::Rcx), Operand::Reg(x64Reg::Rax)), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `X64MCInstr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::X64MCInstr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mnemonic` [INFO] [stdout] --> tests/x64_instruction_encoding.rs:35:27 [INFO] [stdout] | [INFO] [stdout] 35 | X64MCInstr::with2(Mnemonic::Mov, Operand::Reg(x64Reg::Rcx), Operand::Reg(x64Reg::Rax)), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Mnemonic` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Mnemonic; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> tests/x64_instruction_encoding.rs:35:42 [INFO] [stdout] | [INFO] [stdout] 35 | X64MCInstr::with2(Mnemonic::Mov, Operand::Reg(x64Reg::Rcx), Operand::Reg(x64Reg::Rax)), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Operand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> tests/x64_instruction_encoding.rs:35:69 [INFO] [stdout] | [INFO] [stdout] 35 | X64MCInstr::with2(Mnemonic::Mov, Operand::Reg(x64Reg::Rcx), Operand::Reg(x64Reg::Rax)), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Operand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `X64MCInstr` [INFO] [stdout] --> tests/x64_instruction_encoding.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | X64MCInstr::with0(Mnemonic::StartOptimization), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `X64MCInstr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::X64MCInstr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mnemonic` [INFO] [stdout] --> tests/x64_instruction_encoding.rs:39:27 [INFO] [stdout] | [INFO] [stdout] 39 | X64MCInstr::with0(Mnemonic::StartOptimization), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Mnemonic` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Mnemonic; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `X64MCInstr` [INFO] [stdout] --> tests/x64_instruction_encoding.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | X64MCInstr::with2(Mnemonic::Lea, Operand::Reg(x64Reg::Rax), Operand::Mem(x64Reg::Rcx + x64Reg::Rdx)), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `X64MCInstr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::X64MCInstr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mnemonic` [INFO] [stdout] --> tests/x64_instruction_encoding.rs:40:27 [INFO] [stdout] | [INFO] [stdout] 40 | X64MCInstr::with2(Mnemonic::Lea, Operand::Reg(x64Reg::Rax), Operand::Mem(x64Reg::Rcx + x64Reg::Rdx)), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Mnemonic` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Mnemonic; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> tests/x64_instruction_encoding.rs:40:42 [INFO] [stdout] | [INFO] [stdout] 40 | X64MCInstr::with2(Mnemonic::Lea, Operand::Reg(x64Reg::Rax), Operand::Mem(x64Reg::Rcx + x64Reg::Rdx)), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Operand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> tests/x64_instruction_encoding.rs:40:69 [INFO] [stdout] | [INFO] [stdout] 40 | X64MCInstr::with2(Mnemonic::Lea, Operand::Reg(x64Reg::Rax), Operand::Mem(x64Reg::Rcx + x64Reg::Rdx)), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Operand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `X64MCInstr` [INFO] [stdout] --> tests/x64_instruction_encoding.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | X64MCInstr::with2(Mnemonic::Mov, Operand::Reg(x64Reg::Rcx), Operand::Reg(x64Reg::Rax)), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `X64MCInstr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::X64MCInstr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mnemonic` [INFO] [stdout] --> tests/x64_instruction_encoding.rs:41:27 [INFO] [stdout] | [INFO] [stdout] 41 | X64MCInstr::with2(Mnemonic::Mov, Operand::Reg(x64Reg::Rcx), Operand::Reg(x64Reg::Rax)), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Mnemonic` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Mnemonic; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> tests/x64_instruction_encoding.rs:41:42 [INFO] [stdout] | [INFO] [stdout] 41 | X64MCInstr::with2(Mnemonic::Mov, Operand::Reg(x64Reg::Rcx), Operand::Reg(x64Reg::Rax)), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Operand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> tests/x64_instruction_encoding.rs:41:69 [INFO] [stdout] | [INFO] [stdout] 41 | X64MCInstr::with2(Mnemonic::Mov, Operand::Reg(x64Reg::Rcx), Operand::Reg(x64Reg::Rax)), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Operand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ObjectBuilder` [INFO] [stdout] --> examples/obj.rs:16:19 [INFO] [stdout] | [INFO] [stdout] 16 | let mut obj = ObjectBuilder::new( [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `ObjectBuilder` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Obj::ObjectBuilder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Decl` [INFO] [stdout] --> examples/obj.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | ("main", Decl::Function, Linkage::External), [INFO] [stdout] | ^^^^ use of undeclared type `Decl` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Obj::Decl; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Linkage` [INFO] [stdout] --> examples/obj.rs:21:34 [INFO] [stdout] | [INFO] [stdout] 21 | ("main", Decl::Function, Linkage::External), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Linkage` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Obj::Linkage; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Decl` [INFO] [stdout] --> examples/obj.rs:22:20 [INFO] [stdout] | [INFO] [stdout] 22 | ("string", Decl::Constant, Linkage::Internal), [INFO] [stdout] | ^^^^ use of undeclared type `Decl` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Obj::Decl; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Linkage` [INFO] [stdout] --> examples/obj.rs:22:36 [INFO] [stdout] | [INFO] [stdout] 22 | ("string", Decl::Constant, Linkage::Internal), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Linkage` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Obj::Linkage; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Decl` [INFO] [stdout] --> examples/obj.rs:23:20 [INFO] [stdout] | [INFO] [stdout] 23 | ("printf", Decl::Function, Linkage::Extern), [INFO] [stdout] | ^^^^ use of undeclared type `Decl` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Obj::Decl; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Linkage` [INFO] [stdout] --> examples/obj.rs:23:36 [INFO] [stdout] | [INFO] [stdout] 23 | ("printf", Decl::Function, Linkage::Extern), [INFO] [stdout] | ^^^^^^^ use of undeclared type `Linkage` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Obj::Linkage; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `X64MCInstr` [INFO] [stdout] --> examples/obj.rs:29:29 [INFO] [stdout] | [INFO] [stdout] 29 | data.extend_from_slice(&X64MCInstr::with1(Mnemonic::Push, Operand::Reg(x64Reg::Rbp)).compile()?); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `X64MCInstr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::X64MCInstr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mnemonic` [INFO] [stdout] --> examples/obj.rs:29:47 [INFO] [stdout] | [INFO] [stdout] 29 | data.extend_from_slice(&X64MCInstr::with1(Mnemonic::Push, Operand::Reg(x64Reg::Rbp)).compile()?); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Mnemonic` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Mnemonic; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> examples/obj.rs:29:63 [INFO] [stdout] | [INFO] [stdout] 29 | data.extend_from_slice(&X64MCInstr::with1(Mnemonic::Push, Operand::Reg(x64Reg::Rbp)).compile()?); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Operand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `X64MCInstr` [INFO] [stdout] --> examples/obj.rs:30:29 [INFO] [stdout] | [INFO] [stdout] 30 | data.extend_from_slice(&X64MCInstr::with2(Mnemonic::Sub, Operand::Reg(x64Reg::Rsp), Operand::Imm(40)).compile()?); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `X64MCInstr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::X64MCInstr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mnemonic` [INFO] [stdout] --> examples/obj.rs:30:47 [INFO] [stdout] | [INFO] [stdout] 30 | data.extend_from_slice(&X64MCInstr::with2(Mnemonic::Sub, Operand::Reg(x64Reg::Rsp), Operand::Imm(40)).compile()?); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Mnemonic` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Mnemonic; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> examples/obj.rs:30:62 [INFO] [stdout] | [INFO] [stdout] 30 | data.extend_from_slice(&X64MCInstr::with2(Mnemonic::Sub, Operand::Reg(x64Reg::Rsp), Operand::Imm(40)).compile()?); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Operand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> examples/obj.rs:30:89 [INFO] [stdout] | [INFO] [stdout] 30 | data.extend_from_slice(&X64MCInstr::with2(Mnemonic::Sub, Operand::Reg(x64Reg::Rsp), Operand::Imm(40)).compile()?); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Operand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> examples/obj.rs:34:23 [INFO] [stdout] | [INFO] [stdout] 34 | let rip_relativ = Operand::Mem(MemOp { base: None, index: None, scale: 1, displ: 0, rip: true }); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Operand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `MemOp` in this scope [INFO] [stdout] --> examples/obj.rs:34:36 [INFO] [stdout] | [INFO] [stdout] 34 | let rip_relativ = Operand::Mem(MemOp { base: None, index: None, scale: 1, displ: 0, rip: true }); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::MemOp; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `X64MCInstr` [INFO] [stdout] --> examples/obj.rs:36:29 [INFO] [stdout] | [INFO] [stdout] 36 | data.extend_from_slice(&X64MCInstr::with2(Mnemonic::Lea, Operand::Reg(x64Reg::Rax), rip_relativ).compile()?); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `X64MCInstr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::X64MCInstr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mnemonic` [INFO] [stdout] --> examples/obj.rs:36:47 [INFO] [stdout] | [INFO] [stdout] 36 | data.extend_from_slice(&X64MCInstr::with2(Mnemonic::Lea, Operand::Reg(x64Reg::Rax), rip_relativ).compile()?); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Mnemonic` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Mnemonic; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> examples/obj.rs:36:62 [INFO] [stdout] | [INFO] [stdout] 36 | data.extend_from_slice(&X64MCInstr::with2(Mnemonic::Lea, Operand::Reg(x64Reg::Rax), rip_relativ).compile()?); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Operand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Link` in this scope [INFO] [stdout] --> examples/obj.rs:38:15 [INFO] [stdout] | [INFO] [stdout] 38 | obj.link( Link { from: "main".into(), to: "string".into(), at: data.len(), addend: -4, special: false }); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Obj::Link; [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Mnemonic::Link; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `X64MCInstr` [INFO] [stdout] --> examples/obj.rs:41:33 [INFO] [stdout] | [INFO] [stdout] 41 | data.extend_from_slice(&X64MCInstr::with2(Mnemonic::Mov, Operand::Reg(x64Reg::Rcx), Operand::Reg(x64Reg::Rax)).compile()?); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `X64MCInstr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::X64MCInstr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mnemonic` [INFO] [stdout] --> examples/obj.rs:41:51 [INFO] [stdout] | [INFO] [stdout] 41 | data.extend_from_slice(&X64MCInstr::with2(Mnemonic::Mov, Operand::Reg(x64Reg::Rcx), Operand::Reg(x64Reg::Rax)).compile()?); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Mnemonic` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Mnemonic; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> examples/obj.rs:41:66 [INFO] [stdout] | [INFO] [stdout] 41 | data.extend_from_slice(&X64MCInstr::with2(Mnemonic::Mov, Operand::Reg(x64Reg::Rcx), Operand::Reg(x64Reg::Rax)).compile()?); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Operand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> examples/obj.rs:41:93 [INFO] [stdout] | [INFO] [stdout] 41 | data.extend_from_slice(&X64MCInstr::with2(Mnemonic::Mov, Operand::Reg(x64Reg::Rcx), Operand::Reg(x64Reg::Rax)).compile()?); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Operand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `X64MCInstr` [INFO] [stdout] --> examples/obj.rs:43:33 [INFO] [stdout] | [INFO] [stdout] 43 | data.extend_from_slice(&X64MCInstr::with2(Mnemonic::Mov, Operand::Reg(x64Reg::Rsi), Operand::Reg(x64Reg::Rax)).compile()?); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `X64MCInstr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::X64MCInstr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mnemonic` [INFO] [stdout] --> examples/obj.rs:43:51 [INFO] [stdout] | [INFO] [stdout] 43 | data.extend_from_slice(&X64MCInstr::with2(Mnemonic::Mov, Operand::Reg(x64Reg::Rsi), Operand::Reg(x64Reg::Rax)).compile()?); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Mnemonic` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Mnemonic; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> examples/obj.rs:43:66 [INFO] [stdout] | [INFO] [stdout] 43 | data.extend_from_slice(&X64MCInstr::with2(Mnemonic::Mov, Operand::Reg(x64Reg::Rsi), Operand::Reg(x64Reg::Rax)).compile()?); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Operand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> examples/obj.rs:43:93 [INFO] [stdout] | [INFO] [stdout] 43 | data.extend_from_slice(&X64MCInstr::with2(Mnemonic::Mov, Operand::Reg(x64Reg::Rsi), Operand::Reg(x64Reg::Rax)).compile()?); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Operand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `X64MCInstr` [INFO] [stdout] --> examples/obj.rs:48:29 [INFO] [stdout] | [INFO] [stdout] 48 | data.extend_from_slice(&X64MCInstr::with1(Mnemonic::Call, Operand::Imm(0)).compile()?); // call printf [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `X64MCInstr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::X64MCInstr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mnemonic` [INFO] [stdout] --> examples/obj.rs:48:47 [INFO] [stdout] | [INFO] [stdout] 48 | data.extend_from_slice(&X64MCInstr::with1(Mnemonic::Call, Operand::Imm(0)).compile()?); // call printf [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Mnemonic` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Mnemonic; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> examples/obj.rs:48:63 [INFO] [stdout] | [INFO] [stdout] 48 | data.extend_from_slice(&X64MCInstr::with1(Mnemonic::Call, Operand::Imm(0)).compile()?); // call printf [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Operand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Link` in this scope [INFO] [stdout] --> examples/obj.rs:50:15 [INFO] [stdout] | [INFO] [stdout] 50 | obj.link( Link { from: "main".into(), to: "printf".into(), at: data.len(), addend: -4, special: false }); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Obj::Link; [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Mnemonic::Link; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `X64MCInstr` [INFO] [stdout] --> examples/obj.rs:54:29 [INFO] [stdout] | [INFO] [stdout] 54 | data.extend_from_slice(&X64MCInstr::with2(Mnemonic::Xor, Operand::Reg(x64Reg::Eax), Operand::Reg(x64Reg::Eax)).compile()?); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `X64MCInstr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::X64MCInstr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mnemonic` [INFO] [stdout] --> examples/obj.rs:54:47 [INFO] [stdout] | [INFO] [stdout] 54 | data.extend_from_slice(&X64MCInstr::with2(Mnemonic::Xor, Operand::Reg(x64Reg::Eax), Operand::Reg(x64Reg::Eax)).compile()?); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Mnemonic` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Mnemonic; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> examples/obj.rs:54:62 [INFO] [stdout] | [INFO] [stdout] 54 | data.extend_from_slice(&X64MCInstr::with2(Mnemonic::Xor, Operand::Reg(x64Reg::Eax), Operand::Reg(x64Reg::Eax)).compile()?); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Operand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> examples/obj.rs:54:89 [INFO] [stdout] | [INFO] [stdout] 54 | data.extend_from_slice(&X64MCInstr::with2(Mnemonic::Xor, Operand::Reg(x64Reg::Eax), Operand::Reg(x64Reg::Eax)).compile()?); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Operand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `X64MCInstr` [INFO] [stdout] --> examples/obj.rs:57:29 [INFO] [stdout] | [INFO] [stdout] 57 | data.extend_from_slice(&X64MCInstr::with2(Mnemonic::Add, Operand::Reg(x64Reg::Rsp), Operand::Imm(40)).compile()?); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `X64MCInstr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::X64MCInstr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mnemonic` [INFO] [stdout] --> examples/obj.rs:57:47 [INFO] [stdout] | [INFO] [stdout] 57 | data.extend_from_slice(&X64MCInstr::with2(Mnemonic::Add, Operand::Reg(x64Reg::Rsp), Operand::Imm(40)).compile()?); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Mnemonic` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Mnemonic; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> examples/obj.rs:57:62 [INFO] [stdout] | [INFO] [stdout] 57 | data.extend_from_slice(&X64MCInstr::with2(Mnemonic::Add, Operand::Reg(x64Reg::Rsp), Operand::Imm(40)).compile()?); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Operand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand` [INFO] [stdout] --> examples/obj.rs:57:89 [INFO] [stdout] | [INFO] [stdout] 57 | data.extend_from_slice(&X64MCInstr::with2(Mnemonic::Add, Operand::Reg(x64Reg::Rsp), Operand::Imm(40)).compile()?); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Operand` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Operand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `X64MCInstr` [INFO] [stdout] --> examples/obj.rs:58:29 [INFO] [stdout] | [INFO] [stdout] 58 | data.extend_from_slice(&X64MCInstr::with0(Mnemonic::Ret).compile()?); // ret [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `X64MCInstr` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::X64MCInstr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mnemonic` [INFO] [stdout] --> examples/obj.rs:58:47 [INFO] [stdout] | [INFO] [stdout] 58 | data.extend_from_slice(&X64MCInstr::with0(Mnemonic::Ret).compile()?); // ret [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Mnemonic` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use Ygen::Target::x64::instr::Mnemonic; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] [INFO] [stderr] error: could not compile `Ygen` (test "x64_instruction_encoding") due to 37 previous errors [INFO] [stdout] Some errors have detailed explanations: E0422, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] [INFO] [stderr] error: could not compile `Ygen` (example "obj") due to 46 previous errors [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/CodeGen/settings.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug, Clone, PartialEq, Eq)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] 6 | pub struct MCSettings { [INFO] [stdout] 7 | lowering: Option) -> Vec>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] = note: `#[warn(unpredictable_function_pointer_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/CodeGen/settings.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug, Clone, PartialEq, Eq)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 8 | prolog: Option Vec>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/CodeGen/settings.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug, Clone, PartialEq, Eq)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 9 | epilog: Option Vec>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/CodeGen/compilation/mod.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 24 | #[derive(Debug, Clone, PartialEq, Eq)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 27 | pub(crate) lower: Option) -> Vec>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "187488b8777bf07281ed87fee6ff1a4fad448e878a8dd88958bc531185f267f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "187488b8777bf07281ed87fee6ff1a4fad448e878a8dd88958bc531185f267f4", kill_on_drop: false }` [INFO] [stdout] 187488b8777bf07281ed87fee6ff1a4fad448e878a8dd88958bc531185f267f4