[INFO] fetching crate jasm-assembler 0.0.0... [INFO] testing jasm-assembler-0.0.0 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-7 [INFO] extracting crate jasm-assembler 0.0.0 into /workspace/builds/worker-3-tc1/source [INFO] started tweaking crates.io crate jasm-assembler 0.0.0 [INFO] finished tweaking crates.io crate jasm-assembler 0.0.0 [INFO] tweaked toml for crates.io crate jasm-assembler 0.0.0 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate jasm-assembler 0.0.0 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate jasm-assembler 0.0.0 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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tsify v0.4.5 [INFO] [stderr] Downloaded source-map v0.15.0 [INFO] [stderr] Downloaded gaia-types v0.0.3 [INFO] [stderr] Downloaded serde_derive_internals v0.28.0 [INFO] [stderr] Downloaded tsify-macros v0.4.5 [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d5d1723c6fa99a755ed7f95993dcc8134049002b5b1ee02ec58654d635c7e043 [INFO] running `Command { std: "docker" "start" "-a" "d5d1723c6fa99a755ed7f95993dcc8134049002b5b1ee02ec58654d635c7e043", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d5d1723c6fa99a755ed7f95993dcc8134049002b5b1ee02ec58654d635c7e043", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d5d1723c6fa99a755ed7f95993dcc8134049002b5b1ee02ec58654d635c7e043", kill_on_drop: false }` [INFO] [stdout] d5d1723c6fa99a755ed7f95993dcc8134049002b5b1ee02ec58654d635c7e043 [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b6b3a83e786a3bd4b610c76f3c6f22bc4fbc66036a6df44971218c3d787230c3 [INFO] running `Command { std: "docker" "start" "-a" "b6b3a83e786a3bd4b610c76f3c6f22bc4fbc66036a6df44971218c3d787230c3", kill_on_drop: false }` [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling source-map v0.15.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling gaia-types v0.0.3 [INFO] [stderr] Compiling jasm-assembler v0.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: method `resolve_constant_pool_symbol` is never used [INFO] [stdout] --> src/formats/jasm/ast/to_jasm.rs:188:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl JvmToJasmConverter { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 188 | fn resolve_constant_pool_symbol(&self, symbol: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_string_constant` is never used [INFO] [stdout] --> src/formats/jasm/ast/to_program.rs:338:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl JasmToJvmConverter { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 338 | fn add_string_constant(&mut self, value: String) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 22.81s [INFO] running `Command { std: "docker" "inspect" "b6b3a83e786a3bd4b610c76f3c6f22bc4fbc66036a6df44971218c3d787230c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b6b3a83e786a3bd4b610c76f3c6f22bc4fbc66036a6df44971218c3d787230c3", kill_on_drop: false }` [INFO] [stdout] b6b3a83e786a3bd4b610c76f3c6f22bc4fbc66036a6df44971218c3d787230c3 [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e17c7d5c6a83e9bc6ec305fbe11ef51ea37982a3a390cc5145485c83ed279885 [INFO] running `Command { std: "docker" "start" "-a" "e17c7d5c6a83e9bc6ec305fbe11ef51ea37982a3a390cc5145485c83ed279885", kill_on_drop: false }` [INFO] [stderr] Compiling gaia-types v0.0.3 [INFO] [stderr] Compiling jasm-assembler v0.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: method `resolve_constant_pool_symbol` is never used [INFO] [stdout] --> src/formats/jasm/ast/to_jasm.rs:188:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl JvmToJasmConverter { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 188 | fn resolve_constant_pool_symbol(&self, symbol: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_string_constant` is never used [INFO] [stdout] --> src/formats/jasm/ast/to_program.rs:338:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl JasmToJvmConverter { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 338 | fn add_string_constant(&mut self, value: String) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `resolve_constant_pool_symbol` is never used [INFO] [stdout] --> src/formats/jasm/ast/to_jasm.rs:188:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl JvmToJasmConverter { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 188 | fn resolve_constant_pool_symbol(&self, symbol: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_string_constant` is never used [INFO] [stdout] --> src/formats/jasm/ast/to_program.rs:338:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl JasmToJvmConverter { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 338 | fn add_string_constant(&mut self, value: String) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.48s [INFO] running `Command { std: "docker" "inspect" "e17c7d5c6a83e9bc6ec305fbe11ef51ea37982a3a390cc5145485c83ed279885", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e17c7d5c6a83e9bc6ec305fbe11ef51ea37982a3a390cc5145485c83ed279885", kill_on_drop: false }` [INFO] [stdout] e17c7d5c6a83e9bc6ec305fbe11ef51ea37982a3a390cc5145485c83ed279885 [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] ab198ae3655ace651a12f04b1c46b329835feb4f5201441f65c67b90dd819b4e [INFO] running `Command { std: "docker" "start" "-a" "ab198ae3655ace651a12f04b1c46b329835feb4f5201441f65c67b90dd819b4e", kill_on_drop: false }` [INFO] [stderr] warning: method `resolve_constant_pool_symbol` is never used [INFO] [stderr] --> src/formats/jasm/ast/to_jasm.rs:188:8 [INFO] [stderr] | [INFO] [stderr] 8 | impl JvmToJasmConverter { [INFO] [stderr] | ----------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 188 | fn resolve_constant_pool_symbol(&self, symbol: &str) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: method `add_string_constant` is never used [INFO] [stderr] --> src/formats/jasm/ast/to_program.rs:338:8 [INFO] [stderr] | [INFO] [stderr] 12 | impl JasmToJvmConverter { [INFO] [stderr] | ----------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 338 | fn add_string_constant(&mut self, value: String) -> u16 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `jasm-assembler` (lib) generated 2 warnings [INFO] [stderr] warning: `jasm-assembler` (lib test) generated 2 warnings (2 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.10s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/jvm_assembler-3a72370c44ce76d0) [INFO] [stdout] [INFO] [stderr] Doc-tests jvm_assembler [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 32 tests [INFO] [stdout] test src/../readme.md - (line 84) ... FAILED [INFO] [stdout] test src/../readme.md - (line 138) ... FAILED [INFO] [stdout] test src/formats/jasm/lexer/mod.rs - formats::jasm::lexer::JasmLexer::tokenize (line 45) ... FAILED [INFO] [stdout] test src/../readme.md - (line 107) ... FAILED [INFO] [stdout] test src/../readme.md - (line 28) ... FAILED [INFO] [stdout] test src/formats/class/readme.md - formats::class (line 19) ... FAILED [INFO] [stdout] test src/formats/jasm/lexer/token_type.rs - formats::jasm::lexer::token_type::JasmTokenType (line 10) ... FAILED [INFO] [stdout] test src/formats/class/readme.md - formats::class (line 114) ... FAILED [INFO] [stdout] test src/formats/class/readme.md - formats::class (line 146) ... FAILED [INFO] [stdout] test src/helpers/readme.md - helpers (line 315) ... FAILED [INFO] [stdout] test src/helpers/readme.md - helpers (line 246) ... FAILED [INFO] [stdout] test src/helpers/readme.md - helpers (line 141) ... FAILED [INFO] [stdout] test src/helpers/readme.md - helpers (line 297) ... FAILED [INFO] [stdout] test src/formats/jasm/lexer/mod.rs - formats::jasm::lexer::JasmLexer (line 12) ... ok [INFO] [stdout] test src/helpers/readme.md - helpers (line 201) ... FAILED [INFO] [stdout] test src/helpers/readme.md - helpers (line 382) ... ok [INFO] [stdout] test src/helpers/readme.md - helpers (line 333) ... FAILED [INFO] [stdout] test src/helpers/readme.md - helpers (line 20) ... FAILED [INFO] [stdout] test src/program/mod.rs - program (line 210) ... FAILED [INFO] [stdout] test src/helpers/readme.md - helpers (line 91) ... ok [INFO] [stdout] test src/program/mod.rs - program (line 140) ... FAILED [INFO] [stdout] test src/program/mod.rs - program (line 173) ... ok [INFO] [stdout] test src/helpers/readme.md - helpers (line 352) ... FAILED [INFO] [stdout] test src/program/mod.rs - program (line 151) ... ok [INFO] [stdout] test src/program/mod.rs - program (line 25) ... FAILED [INFO] [stdout] test src/program/mod.rs - program (line 195) ... ok [INFO] [stdout] test src/program/mod.rs - program (line 295) ... FAILED [INFO] [stdout] test src/program/mod.rs - program (line 61) ... FAILED [INFO] [stdout] test src/program/mod.rs - program (line 231) ... FAILED [INFO] [stdout] test src/program/mod.rs - program (line 77) ... FAILED [INFO] [stdout] test src/program/mod.rs - program (line 264) ... ok [INFO] [stdout] test src/program/mod.rs - program (line 44) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/../readme.md - (line 84) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `jvm_assembler::formats::jasm::converter` [INFO] [stdout] --> src/../readme.md:86:35 [INFO] [stdout] | [INFO] [stdout] 86 | use jvm_assembler::formats::jasm::converter::convert_jasm_to_jvm; [INFO] [stdout] | ^^^^^^^^^ could not find `converter` in `jasm` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/../readme.md - (line 138) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `jvm_assembler::formats::jasm::converter` [INFO] [stdout] --> src/../readme.md:140:35 [INFO] [stdout] | [INFO] [stdout] 140 | use jvm_assembler::formats::jasm::converter::convert_jasm_to_jvm; [INFO] [stdout] | ^^^^^^^^^ could not find `converter` in `jasm` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/formats/jasm/lexer/mod.rs - formats::jasm::lexer::JasmLexer::tokenize (line 45) stdout ---- [INFO] [stdout] error[E0599]: no method named `into_result` found for struct `gaia_types::errors::diagnostics::GaiaDiagnostics` in the current scope [INFO] [stdout] --> src/formats/jasm/lexer/mod.rs:52:34 [INFO] [stdout] | [INFO] [stdout] 52 | if let Ok(token_stream) = result.into_result() { [INFO] [stdout] | ^^^^^^^^^^^ method not found in `GaiaDiagnostics>` [INFO] [stdout] | [INFO] [stdout] = note: the full name for the type has been written to '/tmp/rustdoctestKLgQQx/rust_out.long-type-3902609361579787482.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/../readme.md - (line 107) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/../readme.md:123:36 [INFO] [stdout] | [INFO] [stdout] 123 | let class_bytes = writer.write(program)?; [INFO] [stdout] | ----- ^^^^^^^ expected `&JvmProgram`, found `JvmProgram` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/formats/class/writer/mod.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn write(mut self, program: &JvmProgram) -> GaiaDiagnostics { [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 123 | let class_bytes = writer.write(&program)?; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s in a function that returns `Result` [INFO] [stdout] --> src/../readme.md:123:44 [INFO] [stdout] | [INFO] [stdout] 112 | fn main() -> Result<(), Box> { [INFO] [stdout] | --------------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 123 | let class_bytes = writer.write(program)?; [INFO] [stdout] | ^ this `?` produces `gaia_types::errors::diagnostics::GaiaDiagnostics>`, which is incompatible with `Result<(), Box>` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/../readme.md - (line 28) stdout ---- [INFO] [stdout] error: reserved multi-hash token is forbidden [INFO] [stdout] --> src/../readme.md:52:1 [INFO] [stdout] | [INFO] [stdout] 52 | ### 高级用法 [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: sequences of two or more # are reserved for future use since Rust 2024 [INFO] [stdout] help: consider inserting whitespace here [INFO] [stdout] | [INFO] [stdout] 52 | # ## 高级用法 [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] error: unknown start of token: ` [INFO] [stdout] --> src/../readme.md:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | ```rust [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: character appears 2 more times [INFO] [stdout] help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not [INFO] [stdout] | [INFO] [stdout] 53 - ```rust [INFO] [stdout] 53 + '''rust [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: expected item, found keyword `let` [INFO] [stdout] --> src/../readme.md:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | let jasm_code = r#" [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | `let` cannot be used for global variables [INFO] [stdout] | help: consider using `static` or `const` instead of `let` [INFO] [stdout] | [INFO] [stdout] = note: for a full list of items that can appear in modules, see [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/formats/class/readme.md - formats::class (line 19) stdout ---- [INFO] [stdout] error: expected one of `,`, `:`, or `}`, found `magic` [INFO] [stdout] --> src/formats/class/readme.md:21:20 [INFO] [stdout] | [INFO] [stdout] 20 | ClassFile { [INFO] [stdout] | --------- while parsing this struct [INFO] [stdout] 21 | u4 magic; // 魔数: 0xCAFEBABE [INFO] [stdout] | -- ^^^^^ expected one of `,`, `:`, or `}` [INFO] [stdout] | | [INFO] [stdout] | while parsing this struct field [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ClassFile` in this scope [INFO] [stdout] --> src/formats/class/readme.md:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | ClassFile { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/formats/jasm/lexer/token_type.rs - formats::jasm::lexer::token_type::JasmTokenType (line 10) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `jvm_jasm` [INFO] [stdout] --> src/formats/jasm/lexer/token_type.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use jvm_jasm::lexer::JasmTokenType; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `jvm_jasm` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `jvm_jasm`, use `cargo add jvm_jasm` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/formats/class/readme.md - formats::class (line 114) stdout ---- [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/formats/class/readme.md:126:22 [INFO] [stdout] | [INFO] [stdout] 126 | let mut reader = ClassReader::new(cursor); [INFO] [stdout] | ^^^^^^^^^^^^^^^^-------- argument #2 of type `&ClassReadConfig` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/formats/class/reader/mod.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn new(reader: R, config: &'config ClassReadConfig) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 126 | let mut reader = ClassReader::new(cursor, /* &ClassReadConfig */); [INFO] [stdout] | ++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/formats/class/readme.md:130:9 [INFO] [stdout] | [INFO] [stdout] 129 | match result { [INFO] [stdout] | ------ this expression has type `gaia_types::errors::diagnostics::GaiaDiagnostics` [INFO] [stdout] 130 | Ok(program) => { [INFO] [stdout] | ^^^^^^^^^^^ expected `GaiaDiagnostics`, found `Result<_, _>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `gaia_types::errors::diagnostics::GaiaDiagnostics` [INFO] [stdout] found enum `Result<_, _>` [INFO] [stdout] help: you might have meant to use field `result` whose type is `Result` [INFO] [stdout] | [INFO] [stdout] 129 | match result.result { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/formats/class/readme.md:136:9 [INFO] [stdout] | [INFO] [stdout] 129 | match result { [INFO] [stdout] | ------ this expression has type `gaia_types::errors::diagnostics::GaiaDiagnostics` [INFO] [stdout] ... [INFO] [stdout] 136 | Err(error) => { [INFO] [stdout] | ^^^^^^^^^^ expected `GaiaDiagnostics`, found `Result<_, _>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `gaia_types::errors::diagnostics::GaiaDiagnostics` [INFO] [stdout] found enum `Result<_, _>` [INFO] [stdout] help: you might have meant to use field `result` whose type is `Result` [INFO] [stdout] | [INFO] [stdout] 129 | match result.result { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/formats/class/readme.md - formats::class (line 146) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/formats/class/readme.md:162:31 [INFO] [stdout] | [INFO] [stdout] 162 | let result = writer.write(program); [INFO] [stdout] | ----- ^^^^^^^ expected `&JvmProgram`, found `JvmProgram` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/formats/class/writer/mod.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn write(mut self, program: &JvmProgram) -> GaiaDiagnostics { [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 162 | let result = writer.write(&program); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/formats/class/readme.md:165:9 [INFO] [stdout] | [INFO] [stdout] 164 | match result { [INFO] [stdout] | ------ this expression has type `gaia_types::errors::diagnostics::GaiaDiagnostics>` [INFO] [stdout] 165 | Ok(buffer) => { [INFO] [stdout] | ^^^^^^^^^^ expected `GaiaDiagnostics>`, found `Result<_, _>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `gaia_types::errors::diagnostics::GaiaDiagnostics>` [INFO] [stdout] found enum `Result<_, _>` [INFO] [stdout] help: you might have meant to use field `result` whose type is `Result, GaiaError>` [INFO] [stdout] | [INFO] [stdout] 164 | match result.result { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/formats/class/readme.md:169:9 [INFO] [stdout] | [INFO] [stdout] 164 | match result { [INFO] [stdout] | ------ this expression has type `gaia_types::errors::diagnostics::GaiaDiagnostics>` [INFO] [stdout] ... [INFO] [stdout] 169 | Err(error) => { [INFO] [stdout] | ^^^^^^^^^^ expected `GaiaDiagnostics>`, found `Result<_, _>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `gaia_types::errors::diagnostics::GaiaDiagnostics>` [INFO] [stdout] found enum `Result<_, _>` [INFO] [stdout] help: you might have meant to use field `result` whose type is `Result, GaiaError>` [INFO] [stdout] | [INFO] [stdout] 164 | match result.result { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/helpers/readme.md - helpers (line 315) stdout ---- [INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/helpers/readme.md:319:14 [INFO] [stdout] | [INFO] [stdout] 319 | fn main() -> Result<()> { [INFO] [stdout] | ^^^^^^ -- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 319 | fn main() -> Result<(), E> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JvmStringUtils` [INFO] [stdout] --> src/helpers/readme.md:321:5 [INFO] [stdout] | [INFO] [stdout] 321 | JvmStringUtils::validate_class_name("java/lang/String")?; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `JvmStringUtils` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JvmStringUtils` [INFO] [stdout] --> src/helpers/readme.md:325:18 [INFO] [stdout] | [INFO] [stdout] 325 | let source = JvmStringUtils::internal_to_source_name(internal); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `JvmStringUtils` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/helpers/readme.md - helpers (line 246) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `JvmAccessFlags` in this scope [INFO] [stdout] --> src/helpers/readme.md:252:42 [INFO] [stdout] | [INFO] [stdout] 252 | pub fn validate_access_flags(flags: &JvmAccessFlags) -> Result<(), GaiaError> { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 246 + use jvm_assembler::program::JvmAccessFlags; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GaiaError` in this scope [INFO] [stdout] --> src/helpers/readme.md:252:72 [INFO] [stdout] | [INFO] [stdout] 252 | pub fn validate_access_flags(flags: &JvmAccessFlags) -> Result<(), GaiaError> { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 246 + use gaia_types::GaiaError; [INFO] [stdout] | [INFO] [stdout] 246 + use jvm_assembler::GaiaError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GaiaError` [INFO] [stdout] --> src/helpers/readme.md:255:24 [INFO] [stdout] | [INFO] [stdout] 255 | return Err(GaiaError::custom_error("Cannot be both public and private".to_string())); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `GaiaError` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 246 + use gaia_types::GaiaError; [INFO] [stdout] | [INFO] [stdout] 246 + use jvm_assembler::GaiaError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GaiaError` in this scope [INFO] [stdout] --> src/helpers/readme.md:261:82 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn validate_method_signature(name: &str, descriptor: &str) -> Result<(), GaiaError> { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 246 + use gaia_types::GaiaError; [INFO] [stdout] | [INFO] [stdout] 246 + use jvm_assembler::GaiaError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GaiaError` in this scope [INFO] [stdout] --> src/helpers/readme.md:268:81 [INFO] [stdout] | [INFO] [stdout] 268 | pub fn validate_field_signature(name: &str, descriptor: &str) -> Result<(), GaiaError> { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 246 + use gaia_types::GaiaError; [INFO] [stdout] | [INFO] [stdout] 246 + use jvm_assembler::GaiaError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JvmProgram` in this scope [INFO] [stdout] --> src/helpers/readme.md:275:47 [INFO] [stdout] | [INFO] [stdout] 275 | pub fn validate_class_hierarchy(program: &JvmProgram) -> Result<(), GaiaError> { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 246 + use jvm_assembler::program::JvmProgram; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GaiaError` in this scope [INFO] [stdout] --> src/helpers/readme.md:275:73 [INFO] [stdout] | [INFO] [stdout] 275 | pub fn validate_class_hierarchy(program: &JvmProgram) -> Result<(), GaiaError> { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 246 + use gaia_types::GaiaError; [INFO] [stdout] | [INFO] [stdout] 246 + use jvm_assembler::GaiaError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GaiaError` [INFO] [stdout] --> src/helpers/readme.md:278:24 [INFO] [stdout] | [INFO] [stdout] 278 | return Err(GaiaError::custom_error("Interface must be abstract".to_string())); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `GaiaError` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 246 + use gaia_types::GaiaError; [INFO] [stdout] | [INFO] [stdout] 246 + use jvm_assembler::GaiaError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JvmInstruction` in this scope [INFO] [stdout] --> src/helpers/readme.md:284:50 [INFO] [stdout] | [INFO] [stdout] 284 | pub fn validate_instructions(instructions: &[JvmInstruction]) -> Result<(), GaiaError> { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 246 + use jvm_assembler::JvmInstruction; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GaiaError` in this scope [INFO] [stdout] --> src/helpers/readme.md:284:81 [INFO] [stdout] | [INFO] [stdout] 284 | pub fn validate_instructions(instructions: &[JvmInstruction]) -> Result<(), GaiaError> { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 246 + use gaia_types::GaiaError; [INFO] [stdout] | [INFO] [stdout] 246 + use jvm_assembler::GaiaError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GaiaError` [INFO] [stdout] --> src/helpers/readme.md:286:24 [INFO] [stdout] | [INFO] [stdout] 286 | return Err(GaiaError::custom_error("Instruction sequence cannot be empty".to_string())); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `GaiaError` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 246 + use gaia_types::GaiaError; [INFO] [stdout] | [INFO] [stdout] 246 + use jvm_assembler::GaiaError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JvmStringUtils` [INFO] [stdout] --> src/helpers/readme.md:262:9 [INFO] [stdout] | [INFO] [stdout] 262 | JvmStringUtils::validate_method_name(name)?; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `JvmStringUtils` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JvmStringUtils` [INFO] [stdout] --> src/helpers/readme.md:263:9 [INFO] [stdout] | [INFO] [stdout] 263 | JvmStringUtils::validate_descriptor(descriptor)?; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `JvmStringUtils` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JvmStringUtils` [INFO] [stdout] --> src/helpers/readme.md:269:9 [INFO] [stdout] | [INFO] [stdout] 269 | JvmStringUtils::validate_field_name(name)?; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `JvmStringUtils` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JvmStringUtils` [INFO] [stdout] --> src/helpers/readme.md:270:9 [INFO] [stdout] | [INFO] [stdout] 270 | JvmStringUtils::validate_descriptor(descriptor)?; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `JvmStringUtils` [INFO] [stdout] [INFO] [stdout] error: aborting due to 15 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/helpers/readme.md - helpers (line 141) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `GaiaError` in this scope [INFO] [stdout] --> src/helpers/readme.md:147:58 [INFO] [stdout] | [INFO] [stdout] 147 | pub fn validate_class_name(name: &str) -> Result<(), GaiaError> { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 141 + use gaia_types::GaiaError; [INFO] [stdout] | [INFO] [stdout] 141 + use jvm_assembler::GaiaError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GaiaError` [INFO] [stdout] --> src/helpers/readme.md:149:24 [INFO] [stdout] | [INFO] [stdout] 149 | return Err(GaiaError::custom_error("Class name cannot be empty".to_string())); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `GaiaError` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 141 + use gaia_types::GaiaError; [INFO] [stdout] | [INFO] [stdout] 141 + use jvm_assembler::GaiaError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GaiaError` [INFO] [stdout] --> src/helpers/readme.md:153:24 [INFO] [stdout] | [INFO] [stdout] 153 | return Err(GaiaError::custom_error("Invalid class name format".to_string())); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `GaiaError` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 141 + use gaia_types::GaiaError; [INFO] [stdout] | [INFO] [stdout] 141 + use jvm_assembler::GaiaError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GaiaError` in this scope [INFO] [stdout] --> src/helpers/readme.md:159:59 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn validate_method_name(name: &str) -> Result<(), GaiaError> { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 141 + use gaia_types::GaiaError; [INFO] [stdout] | [INFO] [stdout] 141 + use jvm_assembler::GaiaError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GaiaError` [INFO] [stdout] --> src/helpers/readme.md:161:24 [INFO] [stdout] | [INFO] [stdout] 161 | return Err(GaiaError::custom_error("Method name cannot be empty".to_string())); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `GaiaError` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 141 + use gaia_types::GaiaError; [INFO] [stdout] | [INFO] [stdout] 141 + use jvm_assembler::GaiaError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GaiaError` in this scope [INFO] [stdout] --> src/helpers/readme.md:167:58 [INFO] [stdout] | [INFO] [stdout] 167 | pub fn validate_field_name(name: &str) -> Result<(), GaiaError> { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 141 + use gaia_types::GaiaError; [INFO] [stdout] | [INFO] [stdout] 141 + use jvm_assembler::GaiaError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GaiaError` [INFO] [stdout] --> src/helpers/readme.md:169:24 [INFO] [stdout] | [INFO] [stdout] 169 | return Err(GaiaError::custom_error("Field name cannot be empty".to_string())); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `GaiaError` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 141 + use gaia_types::GaiaError; [INFO] [stdout] | [INFO] [stdout] 141 + use jvm_assembler::GaiaError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GaiaError` in this scope [INFO] [stdout] --> src/helpers/readme.md:175:58 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn validate_descriptor(desc: &str) -> Result<(), GaiaError> { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 141 + use gaia_types::GaiaError; [INFO] [stdout] | [INFO] [stdout] 141 + use jvm_assembler::GaiaError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GaiaError` [INFO] [stdout] --> src/helpers/readme.md:177:24 [INFO] [stdout] | [INFO] [stdout] 177 | return Err(GaiaError::custom_error("Descriptor cannot be empty".to_string())); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `GaiaError` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 141 + use gaia_types::GaiaError; [INFO] [stdout] | [INFO] [stdout] 141 + use jvm_assembler::GaiaError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/helpers/readme.md - helpers (line 297) stdout ---- [INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/helpers/readme.md:301:14 [INFO] [stdout] | [INFO] [stdout] 301 | fn main() -> Result<()> { [INFO] [stdout] | ^^^^^^ -- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 301 | fn main() -> Result<(), E> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ByteReader` [INFO] [stdout] --> src/helpers/readme.md:304:22 [INFO] [stdout] | [INFO] [stdout] 304 | let mut reader = ByteReader::new(data); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `ByteReader` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/helpers/readme.md - helpers (line 201) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `GaiaError` in this scope [INFO] [stdout] --> src/helpers/readme.md:227:55 [INFO] [stdout] | [INFO] [stdout] 227 | pub fn safe_i64_to_i32(value: i64) -> Result { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 201 + use gaia_types::GaiaError; [INFO] [stdout] | [INFO] [stdout] 201 + use jvm_assembler::GaiaError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GaiaError` [INFO] [stdout] --> src/helpers/readme.md:229:24 [INFO] [stdout] | [INFO] [stdout] 229 | return Err(GaiaError::custom_error("i64 value out of i32 range".to_string())); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `GaiaError` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 201 + use gaia_types::GaiaError; [INFO] [stdout] | [INFO] [stdout] 201 + use jvm_assembler::GaiaError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GaiaError` in this scope [INFO] [stdout] --> src/helpers/readme.md:235:55 [INFO] [stdout] | [INFO] [stdout] 235 | pub fn safe_u64_to_u32(value: u64) -> Result { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 201 + use gaia_types::GaiaError; [INFO] [stdout] | [INFO] [stdout] 201 + use jvm_assembler::GaiaError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GaiaError` [INFO] [stdout] --> src/helpers/readme.md:237:24 [INFO] [stdout] | [INFO] [stdout] 237 | return Err(GaiaError::custom_error("u64 value out of u32 range".to_string())); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `GaiaError` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 201 + use gaia_types::GaiaError; [INFO] [stdout] | [INFO] [stdout] 201 + use jvm_assembler::GaiaError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/helpers/readme.md - helpers (line 333) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NumericUtils` [INFO] [stdout] --> src/helpers/readme.md:340:16 [INFO] [stdout] | [INFO] [stdout] 340 | let bits = NumericUtils::f32_to_bits(value); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `NumericUtils` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NumericUtils` [INFO] [stdout] --> src/helpers/readme.md:341:20 [INFO] [stdout] | [INFO] [stdout] 341 | let restored = NumericUtils::bits_to_f32(bits); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `NumericUtils` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NumericUtils` [INFO] [stdout] --> src/helpers/readme.md:346:23 [INFO] [stdout] | [INFO] [stdout] 346 | let small_value = NumericUtils::safe_i64_to_i32(big_value).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `NumericUtils` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/helpers/readme.md - helpers (line 20) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `GaiaError` in this scope [INFO] [stdout] --> src/helpers/readme.md:34:45 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn read_u8(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 20 + use gaia_types::GaiaError; [INFO] [stdout] | [INFO] [stdout] 20 + use jvm_assembler::GaiaError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GaiaError` [INFO] [stdout] --> src/helpers/readme.md:36:24 [INFO] [stdout] | [INFO] [stdout] 36 | return Err(GaiaError::custom_error("Buffer underflow".to_string())); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `GaiaError` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 20 + use gaia_types::GaiaError; [INFO] [stdout] | [INFO] [stdout] 20 + use jvm_assembler::GaiaError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GaiaError` in this scope [INFO] [stdout] --> src/helpers/readme.md:44:47 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn read_u16(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 20 + use gaia_types::GaiaError; [INFO] [stdout] | [INFO] [stdout] 20 + use jvm_assembler::GaiaError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GaiaError` [INFO] [stdout] --> src/helpers/readme.md:46:24 [INFO] [stdout] | [INFO] [stdout] 46 | return Err(GaiaError::custom_error("Buffer underflow".to_string())); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `GaiaError` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 20 + use gaia_types::GaiaError; [INFO] [stdout] | [INFO] [stdout] 20 + use jvm_assembler::GaiaError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GaiaError` in this scope [INFO] [stdout] --> src/helpers/readme.md:54:47 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn read_u32(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 20 + use gaia_types::GaiaError; [INFO] [stdout] | [INFO] [stdout] 20 + use jvm_assembler::GaiaError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GaiaError` [INFO] [stdout] --> src/helpers/readme.md:56:24 [INFO] [stdout] | [INFO] [stdout] 56 | return Err(GaiaError::custom_error("Buffer underflow".to_string())); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `GaiaError` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 20 + use gaia_types::GaiaError; [INFO] [stdout] | [INFO] [stdout] 20 + use jvm_assembler::GaiaError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GaiaError` in this scope [INFO] [stdout] --> src/helpers/readme.md:67:47 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn read_i32(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 20 + use gaia_types::GaiaError; [INFO] [stdout] | [INFO] [stdout] 20 + use jvm_assembler::GaiaError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GaiaError` in this scope [INFO] [stdout] --> src/helpers/readme.md:73:68 [INFO] [stdout] | [INFO] [stdout] 73 | pub fn read_bytes(&mut self, length: usize) -> Result, GaiaError> { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 20 + use gaia_types::GaiaError; [INFO] [stdout] | [INFO] [stdout] 20 + use jvm_assembler::GaiaError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GaiaError` [INFO] [stdout] --> src/helpers/readme.md:75:24 [INFO] [stdout] | [INFO] [stdout] 75 | return Err(GaiaError::custom_error("Buffer underflow".to_string())); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `GaiaError` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 20 + use gaia_types::GaiaError; [INFO] [stdout] | [INFO] [stdout] 20 + use jvm_assembler::GaiaError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/program/mod.rs - program (line 210) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `JvmExceptionHandler` in this scope [INFO] [stdout] --> src/program/mod.rs:217:30 [INFO] [stdout] | [INFO] [stdout] 217 | exception_table: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 210 + use jvm_assembler::program::JvmExceptionHandler; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JvmConstantPoolEntry` in this scope [INFO] [stdout] --> src/program/mod.rs:220:28 [INFO] [stdout] | [INFO] [stdout] 220 | ConstantValue { value: JvmConstantPoolEntry }, // 常量值属性 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 210 + use jvm_assembler::program::JvmConstantPoolEntry; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JvmLocalVariable` in this scope [INFO] [stdout] --> src/program/mod.rs:222:39 [INFO] [stdout] | [INFO] [stdout] 222 | LocalVariableTable { entries: Vec }, // 局部变量表属性 [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 210 + use jvm_assembler::program::JvmLocalVariable; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/program/mod.rs - program (line 140) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `HashMap` in this scope [INFO] [stdout] --> src/program/mod.rs:142:23 [INFO] [stdout] | [INFO] [stdout] 142 | pub symbol_table: HashMap, // 符号表,名称到索引的映射 [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 140 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JvmConstantPoolEntry` in this scope [INFO] [stdout] --> src/program/mod.rs:143:22 [INFO] [stdout] | [INFO] [stdout] 143 | pub entries: Vec, // 常量池条目 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 140 + use jvm_assembler::program::JvmConstantPoolEntry; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/helpers/readme.md - helpers (line 352) stdout ---- [INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/helpers/readme.md:357:14 [INFO] [stdout] | [INFO] [stdout] 357 | fn main() -> Result<()> { [INFO] [stdout] | ^^^^^^ -- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 357 | fn main() -> Result<(), E> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `jvm_assembler::program::JvmAccessFlags` in the current scope [INFO] [stdout] --> src/helpers/readme.md:359:37 [INFO] [stdout] | [INFO] [stdout] 359 | let mut flags = JvmAccessFlags::new(); [INFO] [stdout] | ^^^ function or associated item not found in `jvm_assembler::program::JvmAccessFlags` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `jvm_assembler::program::JvmAccessFlags` consider using one of the following associated functions: [INFO] [stdout] jvm_assembler::program::JvmAccessFlags::from_modifiers [INFO] [stdout] jvm_assembler::program::JvmAccessFlags::from_flags [INFO] [stdout] --> /opt/rustwide/workdir/src/program/mod.rs:1070:5 [INFO] [stdout] | [INFO] [stdout] 1070 | pub fn from_modifiers(modifiers: &[String]) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1096 | pub fn from_flags(flags: u16) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JvmValidator` [INFO] [stdout] --> src/helpers/readme.md:362:5 [INFO] [stdout] | [INFO] [stdout] 362 | JvmValidator::validate_access_flags(&flags)?; [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `JvmValidator` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JvmValidator` [INFO] [stdout] --> src/helpers/readme.md:365:5 [INFO] [stdout] | [INFO] [stdout] 365 | JvmValidator::validate_method_signature("main", "([Ljava/lang/String;)V")?; [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `JvmValidator` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/program/mod.rs - program (line 25) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `JvmAccessFlags` in this scope [INFO] [stdout] --> src/program/mod.rs:28:23 [INFO] [stdout] | [INFO] [stdout] 28 | pub access_flags: JvmAccessFlags, // 访问标志 [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 25 + use jvm_assembler::program::JvmAccessFlags; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JvmField` in this scope [INFO] [stdout] --> src/program/mod.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | pub fields: Vec, // 字段列表 [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 25 + use jvm_assembler::JvmField; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JvmMethod` in this scope [INFO] [stdout] --> src/program/mod.rs:32:22 [INFO] [stdout] | [INFO] [stdout] 32 | pub methods: Vec, // 方法列表 [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 25 + use jvm_assembler::JvmMethod; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JvmAttribute` in this scope [INFO] [stdout] --> src/program/mod.rs:33:25 [INFO] [stdout] | [INFO] [stdout] 33 | pub attributes: Vec, // 属性列表 [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 25 + use jvm_assembler::program::JvmAttribute; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JvmConstantPool` in this scope [INFO] [stdout] --> src/program/mod.rs:34:24 [INFO] [stdout] | [INFO] [stdout] 34 | pub constant_pool: JvmConstantPool, // 常量池 [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 25 + use jvm_assembler::program::JvmConstantPool; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JvmVersion` in this scope [INFO] [stdout] --> src/program/mod.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 35 | pub version: JvmVersion, // 版本信息 [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 25 + use jvm_assembler::program::JvmVersion; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/program/mod.rs - program (line 295) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `JvmProgram` in this scope [INFO] [stdout] --> src/program/mod.rs:296:6 [INFO] [stdout] | [INFO] [stdout] 296 | impl JvmProgram { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 295 + use jvm_assembler::program::JvmProgram; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GaiaError` [INFO] [stdout] --> src/program/mod.rs:300:24 [INFO] [stdout] | [INFO] [stdout] 300 | return Err(GaiaError::custom_error("Class name cannot be empty".to_string())); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `GaiaError` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 295 + use gaia_types::GaiaError; [INFO] [stdout] | [INFO] [stdout] 295 + use jvm_assembler::GaiaError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/program/mod.rs:297:31 [INFO] [stdout] | [INFO] [stdout] 297 | pub fn validate(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^ -- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 297 | pub fn validate(&self) -> Result<(), E> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/program/mod.rs:305:13 [INFO] [stdout] | [INFO] [stdout] 305 | method.validate()?; [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/program/mod.rs:310:13 [INFO] [stdout] | [INFO] [stdout] 310 | field.validate()?; [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0282, E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/program/mod.rs - program (line 61) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `JvmAccessFlags` in this scope [INFO] [stdout] --> src/program/mod.rs:65:23 [INFO] [stdout] | [INFO] [stdout] 65 | pub access_flags: JvmAccessFlags, // 访问标志 [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 61 + use jvm_assembler::program::JvmAccessFlags; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JvmConstantPoolEntry` in this scope [INFO] [stdout] --> src/program/mod.rs:66:32 [INFO] [stdout] | [INFO] [stdout] 66 | pub constant_value: Option, // 常量值 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 61 + use jvm_assembler::program::JvmConstantPoolEntry; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JvmAttribute` in this scope [INFO] [stdout] --> src/program/mod.rs:67:25 [INFO] [stdout] | [INFO] [stdout] 67 | pub attributes: Vec, // 属性列表 [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 61 + use jvm_assembler::program::JvmAttribute; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/program/mod.rs - program (line 231) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `GaiaError` in this scope [INFO] [stdout] --> src/program/mod.rs:235:25 [INFO] [stdout] | [INFO] [stdout] 235 | fn main() -> Result<(), GaiaError> { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 233 + use gaia_types::GaiaError; [INFO] [stdout] | [INFO] [stdout] 233 + use jvm_assembler::GaiaError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant named `Simple` found for enum `jvm_assembler::JvmInstruction` [INFO] [stdout] --> src/program/mod.rs:251:44 [INFO] [stdout] | [INFO] [stdout] 251 | method.add_instruction(JvmInstruction::Simple { opcode: JvmOpcode::Return }); [INFO] [stdout] | ^^^^^^ variant not found in `jvm_assembler::JvmInstruction` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `JvmOpcode` [INFO] [stdout] --> src/program/mod.rs:251:61 [INFO] [stdout] | [INFO] [stdout] 251 | method.add_instruction(JvmInstruction::Simple { opcode: JvmOpcode::Return }); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `JvmOpcode` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/program/mod.rs - program (line 77) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `JvmOpcode` in this scope [INFO] [stdout] --> src/program/mod.rs:79:22 [INFO] [stdout] | [INFO] [stdout] 79 | Simple { opcode: JvmOpcode }, // 无操作数指令 [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JvmOpcode` in this scope [INFO] [stdout] --> src/program/mod.rs:80:29 [INFO] [stdout] | [INFO] [stdout] 80 | WithImmediate { opcode: JvmOpcode, value: i32 }, // 带立即数的指令 [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JvmOpcode` in this scope [INFO] [stdout] --> src/program/mod.rs:81:28 [INFO] [stdout] | [INFO] [stdout] 81 | WithLocalVar { opcode: JvmOpcode, index: u16 }, // 带局部变量索引的指令 [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JvmOpcode` in this scope [INFO] [stdout] --> src/program/mod.rs:82:32 [INFO] [stdout] | [INFO] [stdout] 82 | WithConstantPool { opcode: JvmOpcode, symbol: String }, // 带常量池引用的指令 [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JvmOpcode` in this scope [INFO] [stdout] --> src/program/mod.rs:83:26 [INFO] [stdout] | [INFO] [stdout] 83 | MethodCall { opcode: JvmOpcode, class_name: String, method_name: String, descriptor: String }, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JvmOpcode` in this scope [INFO] [stdout] --> src/program/mod.rs:84:27 [INFO] [stdout] | [INFO] [stdout] 84 | FieldAccess { opcode: JvmOpcode, class_name: String, field_name: String, descriptor: String }, [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JvmOpcode` in this scope [INFO] [stdout] --> src/program/mod.rs:85:22 [INFO] [stdout] | [INFO] [stdout] 85 | Branch { opcode: JvmOpcode, target: String }, // 跳转指令 [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JvmOpcode` in this scope [INFO] [stdout] --> src/program/mod.rs:86:24 [INFO] [stdout] | [INFO] [stdout] 86 | TypeCast { opcode: JvmOpcode, target_type: String }, // 类型转换指令 [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/program/mod.rs - program (line 44) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `JvmAccessFlags` in this scope [INFO] [stdout] --> src/program/mod.rs:48:23 [INFO] [stdout] | [INFO] [stdout] 48 | pub access_flags: JvmAccessFlags, // 访问标志 [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 44 + use jvm_assembler::program::JvmAccessFlags; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JvmInstruction` in this scope [INFO] [stdout] --> src/program/mod.rs:49:27 [INFO] [stdout] | [INFO] [stdout] 49 | pub instructions: Vec, // 指令列表 [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 44 + use jvm_assembler::JvmInstruction; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JvmExceptionHandler` in this scope [INFO] [stdout] --> src/program/mod.rs:52:30 [INFO] [stdout] | [INFO] [stdout] 52 | pub exception_table: Vec, // 异常表 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 44 + use jvm_assembler::program::JvmExceptionHandler; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JvmAttribute` in this scope [INFO] [stdout] --> src/program/mod.rs:53:25 [INFO] [stdout] | [INFO] [stdout] 53 | pub attributes: Vec, // 属性列表 [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 44 + use jvm_assembler::program::JvmAttribute; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/../readme.md - (line 107) [INFO] [stdout] src/../readme.md - (line 138) [INFO] [stdout] src/../readme.md - (line 28) [INFO] [stdout] src/../readme.md - (line 84) [INFO] [stdout] src/formats/class/readme.md - formats::class (line 114) [INFO] [stdout] src/formats/class/readme.md - formats::class (line 146) [INFO] [stdout] src/formats/class/readme.md - formats::class (line 19) [INFO] [stdout] src/formats/jasm/lexer/mod.rs - formats::jasm::lexer::JasmLexer::tokenize (line 45) [INFO] [stdout] src/formats/jasm/lexer/token_type.rs - formats::jasm::lexer::token_type::JasmTokenType (line 10) [INFO] [stdout] src/helpers/readme.md - helpers (line 141) [INFO] [stdout] src/helpers/readme.md - helpers (line 20) [INFO] [stdout] src/helpers/readme.md - helpers (line 201) [INFO] [stdout] src/helpers/readme.md - helpers (line 246) [INFO] [stdout] src/helpers/readme.md - helpers (line 297) [INFO] [stdout] src/helpers/readme.md - helpers (line 315) [INFO] [stdout] src/helpers/readme.md - helpers (line 333) [INFO] [stdout] src/helpers/readme.md - helpers (line 352) [INFO] [stdout] src/program/mod.rs - program (line 140) [INFO] [stdout] src/program/mod.rs - program (line 210) [INFO] [stdout] src/program/mod.rs - program (line 231) [INFO] [stdout] src/program/mod.rs - program (line 25) [INFO] [stdout] src/program/mod.rs - program (line 295) [INFO] [stdout] src/program/mod.rs - program (line 44) [INFO] [stdout] src/program/mod.rs - program (line 61) [INFO] [stdout] src/program/mod.rs - program (line 77) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 7 passed; 25 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.15s [INFO] [stdout] [INFO] [stdout] all doctests ran in 2.52s; merged doctests compilation took 0.37s [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "ab198ae3655ace651a12f04b1c46b329835feb4f5201441f65c67b90dd819b4e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ab198ae3655ace651a12f04b1c46b329835feb4f5201441f65c67b90dd819b4e", kill_on_drop: false }` [INFO] [stdout] ab198ae3655ace651a12f04b1c46b329835feb4f5201441f65c67b90dd819b4e