[INFO] fetching crate rydis 0.1.5...
[INFO] testing rydis-0.1.5 against master#1871252fc8bb672d40787e67404e6eaae7059369 for pr-125151
[INFO] extracting crate rydis 0.1.5 into /workspace/builds/worker-3-tc1/source
[INFO] validating manifest of crates.io crate rydis 0.1.5 on toolchain 1871252fc8bb672d40787e67404e6eaae7059369
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate rydis 0.1.5
[INFO] finished tweaking crates.io crate rydis 0.1.5
[INFO] tweaked toml for crates.io crate rydis 0.1.5 written to /workspace/builds/worker-3-tc1/source/Cargo.toml
[INFO] crate crates.io crate rydis 0.1.5 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" "+1871252fc8bb672d40787e67404e6eaae7059369" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded bitfield-struct v0.5.5
[INFO] [stderr]   Downloaded zydis-sys v0.1.0
[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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 4486db24adddac997590387bad9ce01ef38e197c25b954cc5085d53470cc8973
[INFO] running `Command { std: "docker" "start" "-a" "4486db24adddac997590387bad9ce01ef38e197c25b954cc5085d53470cc8973", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "4486db24adddac997590387bad9ce01ef38e197c25b954cc5085d53470cc8973", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4486db24adddac997590387bad9ce01ef38e197c25b954cc5085d53470cc8973", kill_on_drop: false }`
[INFO] [stdout] 4486db24adddac997590387bad9ce01ef38e197c25b954cc5085d53470cc8973
[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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] ccece635eb5033bcac24453e8ebfe251adf85e1e78d37757083047d010235ead
[INFO] running `Command { std: "docker" "start" "-a" "ccece635eb5033bcac24453e8ebfe251adf85e1e78d37757083047d010235ead", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.69
[INFO] [stderr]    Compiling libc v0.2.150
[INFO] [stderr]    Compiling glob v0.3.1
[INFO] [stderr]    Compiling prettyplease v0.2.15
[INFO] [stderr]    Compiling rustix v0.38.24
[INFO] [stderr]    Compiling cfg-if v1.0.0
[INFO] [stderr]    Compiling bitflags v2.4.1
[INFO] [stderr]    Compiling linux-raw-sys v0.4.11
[INFO] [stderr]    Compiling minimal-lexical v0.2.1
[INFO] [stderr]    Compiling regex-syntax v0.8.2
[INFO] [stderr]    Compiling memchr v2.6.4
[INFO] [stderr]    Compiling either v1.9.0
[INFO] [stderr]    Compiling hashbrown v0.14.2
[INFO] [stderr]    Compiling equivalent v1.0.1
[INFO] [stderr]    Compiling bindgen v0.69.1
[INFO] [stderr]    Compiling home v0.5.5
[INFO] [stderr]    Compiling libloading v0.7.4
[INFO] [stderr]    Compiling log v0.4.20
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling peeking_take_while v0.1.2
[INFO] [stderr]    Compiling lazy_static v1.4.0
[INFO] [stderr]    Compiling lazycell v1.3.0
[INFO] [stderr]    Compiling rustc-hash v1.1.0
[INFO] [stderr]    Compiling winnow v0.5.19
[INFO] [stderr]    Compiling shlex v1.2.0
[INFO] [stderr]    Compiling toml_datetime v0.6.5
[INFO] [stderr]    Compiling arrayvec v0.7.4
[INFO] [stderr]    Compiling clang-sys v1.6.1
[INFO] [stderr]    Compiling nom v7.1.3
[INFO] [stderr]    Compiling indexmap v2.1.0
[INFO] [stderr]    Compiling quote v1.0.33
[INFO] [stderr]    Compiling syn v2.0.39
[INFO] [stderr]    Compiling cc v1.0.83
[INFO] [stderr]    Compiling cmake v0.1.50
[INFO] [stderr]    Compiling regex-automata v0.4.3
[INFO] [stderr]    Compiling toml_edit v0.20.7
[INFO] [stderr]    Compiling which v4.4.2
[INFO] [stderr]    Compiling cexpr v0.6.0
[INFO] [stderr]    Compiling thiserror-impl-no-std v2.0.2
[INFO] [stderr]    Compiling regex v1.10.2
[INFO] [stderr]    Compiling proc-macro-crate v2.0.0
[INFO] [stderr]    Compiling thiserror-no-std v2.0.2
[INFO] [stderr]    Compiling num_enum_derive v0.7.1
[INFO] [stderr]    Compiling bitfield-struct v0.5.5
[INFO] [stderr]    Compiling num_enum v0.7.1
[INFO] [stderr]    Compiling zydis-sys v0.1.0
[INFO] [stderr]    Compiling rydis v0.1.5 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.32s
[INFO] running `Command { std: "docker" "inspect" "ccece635eb5033bcac24453e8ebfe251adf85e1e78d37757083047d010235ead", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ccece635eb5033bcac24453e8ebfe251adf85e1e78d37757083047d010235ead", kill_on_drop: false }`
[INFO] [stdout] ccece635eb5033bcac24453e8ebfe251adf85e1e78d37757083047d010235ead
[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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] d60a3eb09bca4ecbc62eb1f7c1083983aec5765f91fb25779f54bfdb604ecb2f
[INFO] running `Command { std: "docker" "start" "-a" "d60a3eb09bca4ecbc62eb1f7c1083983aec5765f91fb25779f54bfdb604ecb2f", kill_on_drop: false }`
[INFO] [stderr]    Compiling rydis v0.1.5 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.61s
[INFO] running `Command { std: "docker" "inspect" "d60a3eb09bca4ecbc62eb1f7c1083983aec5765f91fb25779f54bfdb604ecb2f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d60a3eb09bca4ecbc62eb1f7c1083983aec5765f91fb25779f54bfdb604ecb2f", kill_on_drop: false }`
[INFO] [stdout] d60a3eb09bca4ecbc62eb1f7c1083983aec5765f91fb25779f54bfdb604ecb2f
[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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] fcc55245a8ffac6dca022f8d1c937825e30614aac258eddac787b84ad137b3c5
[INFO] running `Command { std: "docker" "start" "-a" "fcc55245a8ffac6dca022f8d1c937825e30614aac258eddac787b84ad137b3c5", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rydis-490ced439c797c6f)
[INFO] [stdout] 
[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] [stderr]    Doc-tests rydis
[INFO] [stdout] 
[INFO] [stdout] running 1 test
[INFO] [stdout] test src/lib.rs - (line 7) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/lib.rs - (line 7) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MachineMode`
[INFO] [stdout]  --> src/lib.rs:9:36
[INFO] [stdout]   |
[INFO] [stdout] 5 | let state = rydis::RydisState::new(MachineMode::Long64, StackWidth::Width64)?;
[INFO] [stdout]   |                                    ^^^^^^^^^^^ use of undeclared type `MachineMode`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]   |
[INFO] [stdout] 2 + use rydis::MachineMode;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StackWidth`
[INFO] [stdout]  --> src/lib.rs:9:57
[INFO] [stdout]   |
[INFO] [stdout] 5 | let state = rydis::RydisState::new(MachineMode::Long64, StackWidth::Width64)?;
[INFO] [stdout]   |                                                         ^^^^^^^^^^ use of undeclared type `StackWidth`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]   |
[INFO] [stdout] 2 + use rydis::StackWidth;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Instruction` in this scope
[INFO] [stdout]  --> src/lib.rs:12:28
[INFO] [stdout]   |
[INFO] [stdout] 8 | let encoded = state.encode(Instruction {
[INFO] [stdout]   |                            ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use rydis::Instruction;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Prefixes`
[INFO] [stdout]  --> src/lib.rs:13:15
[INFO] [stdout]   |
[INFO] [stdout] 9 |     prefixes: Prefixes::empty(),
[INFO] [stdout]   |               ^^^^^^^^ use of undeclared type `Prefixes`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use rydis::Prefixes;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mnemonic`
[INFO] [stdout]   --> src/lib.rs:14:15
[INFO] [stdout]    |
[INFO] [stdout] 10 |     mnemonic: Mnemonic::XCHG,
[INFO] [stdout]    |               ^^^^^^^^ use of undeclared type `Mnemonic`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout] 2  + use rydis::Mnemonic;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand`
[INFO] [stdout]   --> src/lib.rs:15:16
[INFO] [stdout]    |
[INFO] [stdout] 11 |     operands: [Operand::Reg(Register::RAX), Operand::Reg(Register::RBX)]
[INFO] [stdout]    |                ^^^^^^^ use of undeclared type `Operand`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout] 2  + use rydis::Operand;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Register`
[INFO] [stdout]   --> src/lib.rs:15:29
[INFO] [stdout]    |
[INFO] [stdout] 11 |     operands: [Operand::Reg(Register::RAX), Operand::Reg(Register::RBX)]
[INFO] [stdout]    |                             ^^^^^^^^ use of undeclared type `Register`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout] 2  + use rydis::Register;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand`
[INFO] [stdout]   --> src/lib.rs:15:45
[INFO] [stdout]    |
[INFO] [stdout] 11 |     operands: [Operand::Reg(Register::RAX), Operand::Reg(Register::RBX)]
[INFO] [stdout]    |                                             ^^^^^^^ use of undeclared type `Operand`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout] 2  + use rydis::Operand;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Register`
[INFO] [stdout]   --> src/lib.rs:15:58
[INFO] [stdout]    |
[INFO] [stdout] 11 |     operands: [Operand::Reg(Register::RAX), Operand::Reg(Register::RBX)]
[INFO] [stdout]    |                                                          ^^^^^^^^ use of undeclared type `Register`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout] 2  + use rydis::Register;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand`
[INFO] [stdout]   --> src/lib.rs:25:36
[INFO] [stdout]    |
[INFO] [stdout] 21 | modified_instruction.operands[1] = Operand::Mem(MemOperand {
[INFO] [stdout]    |                                    ^^^^^^^ use of undeclared type `Operand`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout] 2  + use rydis::Operand;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `MemOperand` in this scope
[INFO] [stdout]   --> src/lib.rs:25:49
[INFO] [stdout]    |
[INFO] [stdout] 21 | modified_instruction.operands[1] = Operand::Mem(MemOperand {
[INFO] [stdout]    |                                                 ^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 2  + use rydis::MemOperand;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Register`
[INFO] [stdout]   --> src/lib.rs:26:16
[INFO] [stdout]    |
[INFO] [stdout] 22 |     base: Some(Register::RBP),
[INFO] [stdout]    |                ^^^^^^^^ use of undeclared type `Register`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout] 2  + use rydis::Register;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FormatStyle`
[INFO] [stdout]   --> src/lib.rs:36:41
[INFO] [stdout]    |
[INFO] [stdout] 32 |     modified_instruction.format(&state, FormatStyle::Intel, Some(0x123400))?
[INFO] [stdout]    |                                         ^^^^^^^^^^^ use of undeclared type `FormatStyle`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout] 2  + use rydis::FormatStyle;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]  --> src/lib.rs:9:77
[INFO] [stdout]   |
[INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_7_0() {
[INFO] [stdout]   |                                      --------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] 5 | let state = rydis::RydisState::new(MachineMode::Long64, StackWidth::Width64)?;
[INFO] [stdout]   |                                                                             ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]   |
[INFO] [stdout]   = help: the trait `FromResidual<Result<Infallible, rydis::Error>>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]   --> src/lib.rs:18:3
[INFO] [stdout]    |
[INFO] [stdout] 4  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_7_0() {
[INFO] [stdout]    |                                      --------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 14 | })?;
[INFO] [stdout]    |   ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `FromResidual<Result<Infallible, rydis::Error>>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]   --> src/lib.rs:21:63
[INFO] [stdout]    |
[INFO] [stdout] 4  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_7_0() {
[INFO] [stdout]    |                                      --------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 17 | let decoded_instruction = state.decode_one(encoded.as_slice())?;
[INFO] [stdout]    |                                                               ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `FromResidual<Result<Infallible, rydis::Error>>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]   --> src/lib.rs:36:76
[INFO] [stdout]    |
[INFO] [stdout] 4  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_7_0() {
[INFO] [stdout]    |                                      --------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 32 |     modified_instruction.format(&state, FormatStyle::Intel, Some(0x123400))?
[INFO] [stdout]    |                                                                            ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `FromResidual<Result<Infallible, rydis::Error>>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]   --> src/lib.rs:40:52
[INFO] [stdout]    |
[INFO] [stdout] 4  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_7_0() {
[INFO] [stdout]    |                                      --------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 36 | let re_encoded = state.encode(modified_instruction)?;
[INFO] [stdout]    |                                                    ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `FromResidual<Result<Infallible, rydis::Error>>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 18 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0422, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/lib.rs - (line 7)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "fcc55245a8ffac6dca022f8d1c937825e30614aac258eddac787b84ad137b3c5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "fcc55245a8ffac6dca022f8d1c937825e30614aac258eddac787b84ad137b3c5", kill_on_drop: false }`
[INFO] [stdout] fcc55245a8ffac6dca022f8d1c937825e30614aac258eddac787b84ad137b3c5
[INFO] testing rydis-0.1.5 against try#b642703cf9526da1e72c0b6755753b939a9c6b6d for pr-125151
[INFO] extracting crate rydis 0.1.5 into /workspace/builds/worker-3-tc2/source
[INFO] validating manifest of crates.io crate rydis 0.1.5 on toolchain b642703cf9526da1e72c0b6755753b939a9c6b6d
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate rydis 0.1.5
[INFO] finished tweaking crates.io crate rydis 0.1.5
[INFO] tweaked toml for crates.io crate rydis 0.1.5 written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] crate crates.io crate rydis 0.1.5 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" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 1fea9fc421b468a2a956ba90c53b5a19ee38ae5a99db07ef4decd1e6b8d3091b
[INFO] running `Command { std: "docker" "start" "-a" "1fea9fc421b468a2a956ba90c53b5a19ee38ae5a99db07ef4decd1e6b8d3091b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "1fea9fc421b468a2a956ba90c53b5a19ee38ae5a99db07ef4decd1e6b8d3091b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1fea9fc421b468a2a956ba90c53b5a19ee38ae5a99db07ef4decd1e6b8d3091b", kill_on_drop: false }`
[INFO] [stdout] 1fea9fc421b468a2a956ba90c53b5a19ee38ae5a99db07ef4decd1e6b8d3091b
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 156ba16a4450e5de65fa0393db57432d47cc2a57a66cda77886cf26e743ea7da
[INFO] running `Command { std: "docker" "start" "-a" "156ba16a4450e5de65fa0393db57432d47cc2a57a66cda77886cf26e743ea7da", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.69
[INFO] [stderr]    Compiling libc v0.2.150
[INFO] [stderr]    Compiling glob v0.3.1
[INFO] [stderr]    Compiling prettyplease v0.2.15
[INFO] [stderr]    Compiling rustix v0.38.24
[INFO] [stderr]    Compiling memchr v2.6.4
[INFO] [stderr]    Compiling regex-syntax v0.8.2
[INFO] [stderr]    Compiling bitflags v2.4.1
[INFO] [stderr]    Compiling linux-raw-sys v0.4.11
[INFO] [stderr]    Compiling cfg-if v1.0.0
[INFO] [stderr]    Compiling minimal-lexical v0.2.1
[INFO] [stderr]    Compiling home v0.5.5
[INFO] [stderr]    Compiling hashbrown v0.14.2
[INFO] [stderr]    Compiling bindgen v0.69.1
[INFO] [stderr]    Compiling either v1.9.0
[INFO] [stderr]    Compiling equivalent v1.0.1
[INFO] [stderr]    Compiling libloading v0.7.4
[INFO] [stderr]    Compiling winnow v0.5.19
[INFO] [stderr]    Compiling shlex v1.2.0
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling rustc-hash v1.1.0
[INFO] [stderr]    Compiling lazycell v1.3.0
[INFO] [stderr]    Compiling peeking_take_while v0.1.2
[INFO] [stderr]    Compiling log v0.4.20
[INFO] [stderr]    Compiling lazy_static v1.4.0
[INFO] [stderr]    Compiling toml_datetime v0.6.5
[INFO] [stderr]    Compiling arrayvec v0.7.4
[INFO] [stderr]    Compiling clang-sys v1.6.1
[INFO] [stderr]    Compiling nom v7.1.3
[INFO] [stderr]    Compiling indexmap v2.1.0
[INFO] [stderr]    Compiling quote v1.0.33
[INFO] [stderr]    Compiling syn v2.0.39
[INFO] [stderr]    Compiling cc v1.0.83
[INFO] [stderr]    Compiling cmake v0.1.50
[INFO] [stderr]    Compiling regex-automata v0.4.3
[INFO] [stderr]    Compiling toml_edit v0.20.7
[INFO] [stderr]    Compiling cexpr v0.6.0
[INFO] [stderr]    Compiling which v4.4.2
[INFO] [stderr]    Compiling thiserror-impl-no-std v2.0.2
[INFO] [stderr]    Compiling proc-macro-crate v2.0.0
[INFO] [stderr]    Compiling regex v1.10.2
[INFO] [stderr]    Compiling thiserror-no-std v2.0.2
[INFO] [stderr]    Compiling num_enum_derive v0.7.1
[INFO] [stderr]    Compiling bitfield-struct v0.5.5
[INFO] [stderr]    Compiling num_enum v0.7.1
[INFO] [stderr]    Compiling zydis-sys v0.1.0
[INFO] [stderr]    Compiling rydis v0.1.5 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 16.07s
[INFO] running `Command { std: "docker" "inspect" "156ba16a4450e5de65fa0393db57432d47cc2a57a66cda77886cf26e743ea7da", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "156ba16a4450e5de65fa0393db57432d47cc2a57a66cda77886cf26e743ea7da", kill_on_drop: false }`
[INFO] [stdout] 156ba16a4450e5de65fa0393db57432d47cc2a57a66cda77886cf26e743ea7da
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 53cbfd99f782ad388f3bd411c442731e217e98acc71baa89fc9e1940b27305a8
[INFO] running `Command { std: "docker" "start" "-a" "53cbfd99f782ad388f3bd411c442731e217e98acc71baa89fc9e1940b27305a8", kill_on_drop: false }`
[INFO] [stderr]    Compiling rydis v0.1.5 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.69s
[INFO] running `Command { std: "docker" "inspect" "53cbfd99f782ad388f3bd411c442731e217e98acc71baa89fc9e1940b27305a8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "53cbfd99f782ad388f3bd411c442731e217e98acc71baa89fc9e1940b27305a8", kill_on_drop: false }`
[INFO] [stdout] 53cbfd99f782ad388f3bd411c442731e217e98acc71baa89fc9e1940b27305a8
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 0a3c971988d17edd6d9b350c3328ccad814a15e5c4bc819d94ea7f16d382af65
[INFO] running `Command { std: "docker" "start" "-a" "0a3c971988d17edd6d9b350c3328ccad814a15e5c4bc819d94ea7f16d382af65", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.07s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rydis-490ced439c797c6f)
[INFO] [stdout] 
[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] [stderr]    Doc-tests rydis
[INFO] [stdout] 
[INFO] [stdout] running 1 test
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] [stdout] test src/lib.rs - (line 7) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/lib.rs - (line 7) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MachineMode`
[INFO] [stdout]  --> src/lib.rs:9:36
[INFO] [stdout]   |
[INFO] [stdout] 5 | let state = rydis::RydisState::new(MachineMode::Long64, StackWidth::Width64)?;
[INFO] [stdout]   |                                    ^^^^^^^^^^^ use of undeclared type `MachineMode`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]   |
[INFO] [stdout] 2 + use rydis::MachineMode;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StackWidth`
[INFO] [stdout]  --> src/lib.rs:9:57
[INFO] [stdout]   |
[INFO] [stdout] 5 | let state = rydis::RydisState::new(MachineMode::Long64, StackWidth::Width64)?;
[INFO] [stdout]   |                                                         ^^^^^^^^^^ use of undeclared type `StackWidth`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]   |
[INFO] [stdout] 2 + use rydis::StackWidth;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Instruction` in this scope
[INFO] [stdout]  --> src/lib.rs:12:28
[INFO] [stdout]   |
[INFO] [stdout] 8 | let encoded = state.encode(Instruction {
[INFO] [stdout]   |                            ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use rydis::Instruction;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Prefixes`
[INFO] [stdout]  --> src/lib.rs:13:15
[INFO] [stdout]   |
[INFO] [stdout] 9 |     prefixes: Prefixes::empty(),
[INFO] [stdout]   |               ^^^^^^^^ use of undeclared type `Prefixes`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use rydis::Prefixes;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mnemonic`
[INFO] [stdout]   --> src/lib.rs:14:15
[INFO] [stdout]    |
[INFO] [stdout] 10 |     mnemonic: Mnemonic::XCHG,
[INFO] [stdout]    |               ^^^^^^^^ use of undeclared type `Mnemonic`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout] 2  + use rydis::Mnemonic;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand`
[INFO] [stdout]   --> src/lib.rs:15:16
[INFO] [stdout]    |
[INFO] [stdout] 11 |     operands: [Operand::Reg(Register::RAX), Operand::Reg(Register::RBX)]
[INFO] [stdout]    |                ^^^^^^^ use of undeclared type `Operand`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout] 2  + use rydis::Operand;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Register`
[INFO] [stdout]   --> src/lib.rs:15:29
[INFO] [stdout]    |
[INFO] [stdout] 11 |     operands: [Operand::Reg(Register::RAX), Operand::Reg(Register::RBX)]
[INFO] [stdout]    |                             ^^^^^^^^ use of undeclared type `Register`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout] 2  + use rydis::Register;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand`
[INFO] [stdout]   --> src/lib.rs:15:45
[INFO] [stdout]    |
[INFO] [stdout] 11 |     operands: [Operand::Reg(Register::RAX), Operand::Reg(Register::RBX)]
[INFO] [stdout]    |                                             ^^^^^^^ use of undeclared type `Operand`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout] 2  + use rydis::Operand;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Register`
[INFO] [stdout]   --> src/lib.rs:15:58
[INFO] [stdout]    |
[INFO] [stdout] 11 |     operands: [Operand::Reg(Register::RAX), Operand::Reg(Register::RBX)]
[INFO] [stdout]    |                                                          ^^^^^^^^ use of undeclared type `Register`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout] 2  + use rydis::Register;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Operand`
[INFO] [stdout]   --> src/lib.rs:25:36
[INFO] [stdout]    |
[INFO] [stdout] 21 | modified_instruction.operands[1] = Operand::Mem(MemOperand {
[INFO] [stdout]    |                                    ^^^^^^^ use of undeclared type `Operand`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout] 2  + use rydis::Operand;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `MemOperand` in this scope
[INFO] [stdout]   --> src/lib.rs:25:49
[INFO] [stdout]    |
[INFO] [stdout] 21 | modified_instruction.operands[1] = Operand::Mem(MemOperand {
[INFO] [stdout]    |                                                 ^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 2  + use rydis::MemOperand;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Register`
[INFO] [stdout]   --> src/lib.rs:26:16
[INFO] [stdout]    |
[INFO] [stdout] 22 |     base: Some(Register::RBP),
[INFO] [stdout]    |                ^^^^^^^^ use of undeclared type `Register`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout] 2  + use rydis::Register;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FormatStyle`
[INFO] [stdout]   --> src/lib.rs:36:41
[INFO] [stdout]    |
[INFO] [stdout] 32 |     modified_instruction.format(&state, FormatStyle::Intel, Some(0x123400))?
[INFO] [stdout]    |                                         ^^^^^^^^^^^ use of undeclared type `FormatStyle`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout] 2  + use rydis::FormatStyle;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]  --> src/lib.rs:9:77
[INFO] [stdout]   |
[INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_7_0() {
[INFO] [stdout]   |                                      --------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] 5 | let state = rydis::RydisState::new(MachineMode::Long64, StackWidth::Width64)?;
[INFO] [stdout]   |                                                                             ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]   |
[INFO] [stdout]   = help: the trait `FromResidual<Result<Infallible, rydis::Error>>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]   --> src/lib.rs:18:3
[INFO] [stdout]    |
[INFO] [stdout] 4  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_7_0() {
[INFO] [stdout]    |                                      --------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 14 | })?;
[INFO] [stdout]    |   ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `FromResidual<Result<Infallible, rydis::Error>>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]   --> src/lib.rs:21:63
[INFO] [stdout]    |
[INFO] [stdout] 4  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_7_0() {
[INFO] [stdout]    |                                      --------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 17 | let decoded_instruction = state.decode_one(encoded.as_slice())?;
[INFO] [stdout]    |                                                               ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `FromResidual<Result<Infallible, rydis::Error>>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]   --> src/lib.rs:36:76
[INFO] [stdout]    |
[INFO] [stdout] 4  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_7_0() {
[INFO] [stdout]    |                                      --------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 32 |     modified_instruction.format(&state, FormatStyle::Intel, Some(0x123400))?
[INFO] [stdout]    |                                                                            ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `FromResidual<Result<Infallible, rydis::Error>>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]   --> src/lib.rs:40:52
[INFO] [stdout]    |
[INFO] [stdout] 4  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_7_0() {
[INFO] [stdout]    |                                      --------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 36 | let re_encoded = state.encode(modified_instruction)?;
[INFO] [stdout]    |                                                    ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `FromResidual<Result<Infallible, rydis::Error>>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 18 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0422, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/lib.rs - (line 7)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.10s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "0a3c971988d17edd6d9b350c3328ccad814a15e5c4bc819d94ea7f16d382af65", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0a3c971988d17edd6d9b350c3328ccad814a15e5c4bc819d94ea7f16d382af65", kill_on_drop: false }`
[INFO] [stdout] 0a3c971988d17edd6d9b350c3328ccad814a15e5c4bc819d94ea7f16d382af65
