[INFO] cloning repository https://github.com/yotiosoft/mprotect-rs
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yotiosoft/mprotect-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyotiosoft%2Fmprotect-rs", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyotiosoft%2Fmprotect-rs'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] bc7c13441e09685e17ea242417b51b4d97794a3e
[INFO] testing yotiosoft/mprotect-rs against 1.94.0 for beta-1.95-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyotiosoft%2Fmprotect-rs" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/yotiosoft/mprotect-rs
[INFO] finished tweaking git repo https://github.com/yotiosoft/mprotect-rs
[INFO] tweaked toml for git repo https://github.com/yotiosoft/mprotect-rs written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/yotiosoft/mprotect-rs on toolchain 1.94.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.94.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/yotiosoft/mprotect-rs 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" "+1.94.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded jemallocator v0.5.4
[INFO] [stderr]   Downloaded jemalloc-sys v0.5.4+5.3.0-patched
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.94.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] ad4dd9e82091a57fe93be98c6f6a8680b91314dcbe442fdbd8209da8800fd8e6
[INFO] running `Command { std: "docker" "start" "-a" "ad4dd9e82091a57fe93be98c6f6a8680b91314dcbe442fdbd8209da8800fd8e6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "ad4dd9e82091a57fe93be98c6f6a8680b91314dcbe442fdbd8209da8800fd8e6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ad4dd9e82091a57fe93be98c6f6a8680b91314dcbe442fdbd8209da8800fd8e6", kill_on_drop: false }`
[INFO] [stdout] ad4dd9e82091a57fe93be98c6f6a8680b91314dcbe442fdbd8209da8800fd8e6
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.94.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] a4defc9ff6879499afab7d44c6d3642ac47f6498b4f397231186e005260cff85
[INFO] running `Command { std: "docker" "start" "-a" "a4defc9ff6879499afab7d44c6d3642ac47f6498b4f397231186e005260cff85", kill_on_drop: false }`
[INFO] [stderr]    Compiling find-msvc-tools v0.1.2
[INFO] [stderr]    Compiling libc v0.2.176
[INFO] [stderr]    Compiling bitflags v2.9.4
[INFO] [stderr]    Compiling cc v1.2.39
[INFO] [stderr]    Compiling jemalloc-sys v0.5.4+5.3.0-patched
[INFO] [stderr]    Compiling jemallocator v0.5.4
[INFO] [stderr]    Compiling mprotect-rs v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 34s
[INFO] running `Command { std: "docker" "inspect" "a4defc9ff6879499afab7d44c6d3642ac47f6498b4f397231186e005260cff85", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a4defc9ff6879499afab7d44c6d3642ac47f6498b4f397231186e005260cff85", kill_on_drop: false }`
[INFO] [stdout] a4defc9ff6879499afab7d44c6d3642ac47f6498b4f397231186e005260cff85
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.94.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 8b0974d8672077dba10083dde46a97959b0a1da143c70bec41406c9b4831164e
[INFO] running `Command { std: "docker" "start" "-a" "8b0974d8672077dba10083dde46a97959b0a1da143c70bec41406c9b4831164e", kill_on_drop: false }`
[INFO] [stderr]    Compiling mprotect-rs v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.42s
[INFO] running `Command { std: "docker" "inspect" "8b0974d8672077dba10083dde46a97959b0a1da143c70bec41406c9b4831164e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "8b0974d8672077dba10083dde46a97959b0a1da143c70bec41406c9b4831164e", kill_on_drop: false }`
[INFO] [stdout] 8b0974d8672077dba10083dde46a97959b0a1da143c70bec41406c9b4831164e
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.94.0" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 30e561502c1b08d2dad4a346b70da2259aa363d0121816954a17abe0b89ed6a6
[INFO] running `Command { std: "docker" "start" "-a" "30e561502c1b08d2dad4a346b70da2259aa363d0121816954a17abe0b89ed6a6", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/mprotect_rs-39cae6ac0f667923)
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/mprotect_rs-5b8aba7d1b426507)
[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] [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 mprotect_rs
[INFO] [stdout] 
[INFO] [stdout] running 17 tests
[INFO] [stdout] test src/mpk.rs - mpk::PKey (line 54) - compile ... ok
[INFO] [stdout] test src/mpk.rs - mpk::PKey::new (line 103) - compile ... ok
[INFO] [stdout] test src/mprotect.rs - mprotect::UnsafeProtectedRegion (line 48) - compile ... ok
[INFO] [stdout] test src/mpk.rs - mpk::PKey::get_access_rights (line 145) - compile ... FAILED
[INFO] [stdout] test src/mpk.rs - mpk::PKey::associate (line 298) - compile ... FAILED
[INFO] [stdout] test src/mpk/pkru.rs - mpk::pkru::rdpkru (line 19) ... FAILED
[INFO] [stdout] test src/mpk/pkru.rs - mpk::pkru::wrpkru (line 52) ... FAILED
[INFO] [stdout] test src/mpk.rs - mpk::PKey::disassociate (line 336) - compile ... FAILED
[INFO] [stdout] test src/mpk.rs - mpk::PKey::set_access_rights (line 193) - compile ... FAILED
[INFO] [stdout] test src/mprotect.rs - mprotect::UnsafeProtectedRegion<A,T>::as_mut (line 236) - compile ... FAILED
[INFO] [stdout] test src/mprotect.rs - mprotect::UnsafeProtectedRegion<A,T>::new (line 103) - compile ... ok
[INFO] [stdout] test src/mprotect.rs - mprotect::UnsafeProtectedRegion<A,T>::set_access (line 154) - compile ... FAILED
[INFO] [stdout] test src/pkeyguard.rs - pkeyguard::AssociatedRegionHandler<'p,A,T,Rights>::set_access_rights (line 259) ... FAILED
[INFO] [stdout] test src/pkeyguard.rs - pkeyguard::AssociatedRegionHandler (line 201) ... FAILED
[INFO] [stdout] test src/mprotect.rs - mprotect::UnsafeProtectedRegion<A,T>::as_ref (line 264) - compile ... FAILED
[INFO] [stdout] test src/pkeyguard.rs - pkeyguard::PkeyGuard (line 309) ... FAILED
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] [stdout] test src/pkeyguard.rs - pkeyguard::AssociatedRegion (line 43) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/mpk.rs - mpk::PKey::get_access_rights (line 145) 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/mpk.rs:149:54
[INFO] [stdout]     |
[INFO] [stdout] 146 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mpk_rs_145_0() {
[INFO] [stdout]     |                                      ----------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 149 | let pkey = PKey::new(PkeyAccessRights::DisableAccess)?;
[INFO] [stdout]     |                                                      ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 146 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mpk_rs_145_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout]     |                                                                          +++++++++++++++++++++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/mpk.rs:152:1
[INFO] [stdout]     |
[INFO] [stdout] 146 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mpk_rs_145_0() {
[INFO] [stdout]     |                                                                         - help: try adding a return type: `-> Result<(), mprotect_rs::MprotectError>`
[INFO] [stdout] ...
[INFO] [stdout] 152 | Ok::<(), mprotect_rs::MprotectError>(())
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found `Result<(), MprotectError>`
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected unit type `()`
[INFO] [stdout]                     found enum `Result<(), mprotect_rs::MprotectError>`
[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/mpk.rs - mpk::PKey::associate (line 298) 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/mpk.rs:302:53
[INFO] [stdout]     |
[INFO] [stdout] 299 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mpk_rs_298_0() {
[INFO] [stdout]     |                                      ----------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 302 | let pkey = PKey::new(PkeyAccessRights::DisableWrite)?;
[INFO] [stdout]     |                                                     ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 299 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mpk_rs_298_0() -> Result<(), Box<dyn std::error::Error>> {
[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/mpk.rs:303:79
[INFO] [stdout]     |
[INFO] [stdout] 299 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mpk_rs_298_0() {
[INFO] [stdout]     |                                      ----------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 303 | let region = UnsafeProtectedRegion::<Mmap, i32>::new(AccessRights::READ_WRITE)?;
[INFO] [stdout]     |                                                                               ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 299 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mpk_rs_298_0() -> Result<(), Box<dyn std::error::Error>> {
[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/mpk.rs:304:50
[INFO] [stdout]     |
[INFO] [stdout] 299 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mpk_rs_298_0() {
[INFO] [stdout]     |                                      ----------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 304 | pkey.associate(&region, AccessRights::READ_WRITE)?;
[INFO] [stdout]     |                                                  ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 299 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mpk_rs_298_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout]     |                                                                          +++++++++++++++++++++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/mpk.rs:305:1
[INFO] [stdout]     |
[INFO] [stdout] 299 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mpk_rs_298_0() {
[INFO] [stdout]     |                                                                         - help: try adding a return type: `-> Result<(), mprotect_rs::MprotectError>`
[INFO] [stdout] ...
[INFO] [stdout] 305 | Ok::<(), mprotect_rs::MprotectError>(())
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found `Result<(), MprotectError>`
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected unit type `()`
[INFO] [stdout]                     found enum `Result<(), mprotect_rs::MprotectError>`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 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/mpk/pkru.rs - mpk::pkru::rdpkru (line 19) stdout ----
[INFO] [stdout] error[E0425]: cannot find function `rdpkru` in this scope
[INFO] [stdout]   --> src/mpk/pkru.rs:21:16
[INFO] [stdout]    |
[INFO] [stdout] 21 |     let pkru = rdpkru();
[INFO] [stdout]    |                ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/mpk/pkru.rs - mpk::pkru::wrpkru (line 52) stdout ----
[INFO] [stdout] error[E0425]: cannot find function `rdpkru` in this scope
[INFO] [stdout]   --> src/mpk/pkru.rs:54:15
[INFO] [stdout]    |
[INFO] [stdout] 54 |     let old = rdpkru();
[INFO] [stdout]    |               ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `wrpkru` in this scope
[INFO] [stdout]   --> src/mpk/pkru.rs:55:5
[INFO] [stdout]    |
[INFO] [stdout] 55 |     wrpkru(old | 0b10); // Disable write for key 0
[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 E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/mpk.rs - mpk::PKey::disassociate (line 336) 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/mpk.rs:340:53
[INFO] [stdout]     |
[INFO] [stdout] 337 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mpk_rs_336_0() {
[INFO] [stdout]     |                                      ----------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 340 | let pkey = PKey::new(PkeyAccessRights::DisableWrite)?;
[INFO] [stdout]     |                                                     ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 337 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mpk_rs_336_0() -> Result<(), Box<dyn std::error::Error>> {
[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/mpk.rs:341:79
[INFO] [stdout]     |
[INFO] [stdout] 337 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mpk_rs_336_0() {
[INFO] [stdout]     |                                      ----------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 341 | let region = UnsafeProtectedRegion::<Mmap, i32>::new(AccessRights::READ_WRITE)?;
[INFO] [stdout]     |                                                                               ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 337 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mpk_rs_336_0() -> Result<(), Box<dyn std::error::Error>> {
[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/mpk.rs:342:50
[INFO] [stdout]     |
[INFO] [stdout] 337 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mpk_rs_336_0() {
[INFO] [stdout]     |                                      ----------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 342 | pkey.associate(&region, AccessRights::READ_WRITE)?;
[INFO] [stdout]     |                                                  ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 337 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mpk_rs_336_0() -> Result<(), Box<dyn std::error::Error>> {
[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/mpk.rs:344:53
[INFO] [stdout]     |
[INFO] [stdout] 337 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mpk_rs_336_0() {
[INFO] [stdout]     |                                      ----------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 344 | pkey.disassociate(&region, AccessRights::READ_WRITE)?;
[INFO] [stdout]     |                                                     ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 337 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mpk_rs_336_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout]     |                                                                          +++++++++++++++++++++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/mpk.rs:345:1
[INFO] [stdout]     |
[INFO] [stdout] 337 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mpk_rs_336_0() {
[INFO] [stdout]     |                                                                         - help: try adding a return type: `-> Result<(), mprotect_rs::MprotectError>`
[INFO] [stdout] ...
[INFO] [stdout] 345 | Ok::<(), mprotect_rs::MprotectError>(())
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found `Result<(), MprotectError>`
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected unit type `()`
[INFO] [stdout]                     found enum `Result<(), mprotect_rs::MprotectError>`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 5 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/mpk.rs - mpk::PKey::set_access_rights (line 193) 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/mpk.rs:197:58
[INFO] [stdout]     |
[INFO] [stdout] 194 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mpk_rs_193_0() {
[INFO] [stdout]     |                                      ----------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 197 | let pkey = PKey::new(PkeyAccessRights::EnableAccessWrite)?;
[INFO] [stdout]     |                                                          ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 194 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mpk_rs_193_0() -> Result<(), Box<dyn std::error::Error>> {
[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/mpk.rs:199:55
[INFO] [stdout]     |
[INFO] [stdout] 194 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mpk_rs_193_0() {
[INFO] [stdout]     |                                      ----------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 199 | pkey.set_access_rights(PkeyAccessRights::DisableWrite)?;
[INFO] [stdout]     |                                                       ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 194 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mpk_rs_193_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout]     |                                                                          +++++++++++++++++++++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/mpk.rs:200:1
[INFO] [stdout]     |
[INFO] [stdout] 194 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mpk_rs_193_0() {
[INFO] [stdout]     |                                                                         - help: try adding a return type: `-> Result<(), mprotect_rs::MprotectError>`
[INFO] [stdout] ...
[INFO] [stdout] 200 | Ok::<(), mprotect_rs::MprotectError>(())
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found `Result<(), MprotectError>`
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected unit type `()`
[INFO] [stdout]                     found enum `Result<(), mprotect_rs::MprotectError>`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 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/mprotect.rs - mprotect::UnsafeProtectedRegion<A,T>::as_mut (line 236) 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/mprotect.rs:240:83
[INFO] [stdout]     |
[INFO] [stdout] 237 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mprotect_rs_236_0() {
[INFO] [stdout]     |                                      ---------------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 240 | let mut region = UnsafeProtectedRegion::<Mmap, i32>::new(AccessRights::READ_WRITE)?;
[INFO] [stdout]     |                                                                                   ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 237 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mprotect_rs_236_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout]     |                                                                               +++++++++++++++++++++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/mprotect.rs:242:1
[INFO] [stdout]     |
[INFO] [stdout] 237 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mprotect_rs_236_0() {
[INFO] [stdout]     |                                                                              - help: try adding a return type: `-> Result<(), mprotect_rs::MprotectError>`
[INFO] [stdout] ...
[INFO] [stdout] 242 | Ok::<(), mprotect_rs::MprotectError>(())
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found `Result<(), MprotectError>`
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected unit type `()`
[INFO] [stdout]                     found enum `Result<(), mprotect_rs::MprotectError>`
[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/mprotect.rs - mprotect::UnsafeProtectedRegion<A,T>::set_access (line 154) 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/mprotect.rs:158:79
[INFO] [stdout]     |
[INFO] [stdout] 155 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mprotect_rs_154_0() {
[INFO] [stdout]     |                                      ---------------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 158 | let region = UnsafeProtectedRegion::<Mmap, i32>::new(AccessRights::READ_WRITE)?;
[INFO] [stdout]     |                                                                               ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 155 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mprotect_rs_154_0() -> Result<(), Box<dyn std::error::Error>> {
[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/mprotect.rs:161:38
[INFO] [stdout]     |
[INFO] [stdout] 155 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mprotect_rs_154_0() {
[INFO] [stdout]     |                                      ---------------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 161 | region.set_access(AccessRights::READ)?;
[INFO] [stdout]     |                                      ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 155 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mprotect_rs_154_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout]     |                                                                               +++++++++++++++++++++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/mprotect.rs:162:1
[INFO] [stdout]     |
[INFO] [stdout] 155 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mprotect_rs_154_0() {
[INFO] [stdout]     |                                                                              - help: try adding a return type: `-> Result<(), mprotect_rs::MprotectError>`
[INFO] [stdout] ...
[INFO] [stdout] 162 | Ok::<(), mprotect_rs::MprotectError>(())
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found `Result<(), MprotectError>`
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected unit type `()`
[INFO] [stdout]                     found enum `Result<(), mprotect_rs::MprotectError>`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 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/pkeyguard.rs - pkeyguard::AssociatedRegionHandler<'p,A,T,Rights>::set_access_rights (line 259) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PkeyGuard`
[INFO] [stdout]    --> src/pkeyguard.rs:260:19
[INFO] [stdout]     |
[INFO] [stdout] 260 | let mut handler = PkeyGuard::associate::<ReadWrite>(&mut region)?;
[INFO] [stdout]     |                   ^^^^^^^^^ use of undeclared type `PkeyGuard`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 259 + use mprotect_rs::PkeyGuard;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `ReadWrite` in this scope
[INFO] [stdout]    --> src/pkeyguard.rs:260:42
[INFO] [stdout]     |
[INFO] [stdout] 260 | let mut handler = PkeyGuard::associate::<ReadWrite>(&mut region)?;
[INFO] [stdout]     |                                          ^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout] 259 + use mprotect_rs::AccessPermissions::ReadWrite;
[INFO] [stdout]     |
[INFO] [stdout] 259 + use mprotect_rs::ReadWrite;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `region` in this scope
[INFO] [stdout]    --> src/pkeyguard.rs:260:58
[INFO] [stdout]     |
[INFO] [stdout] 260 | let mut handler = PkeyGuard::associate::<ReadWrite>(&mut region)?;
[INFO] [stdout]     |                                                          ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `ReadOnly` in this scope
[INFO] [stdout]    --> src/pkeyguard.rs:261:44
[INFO] [stdout]     |
[INFO] [stdout] 261 | let readonly = handler.set_access_rights::<ReadOnly>()?;
[INFO] [stdout]     |                                            ^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout] 259 + use mprotect_rs::AccessPermissions::ReadOnly;
[INFO] [stdout]     |
[INFO] [stdout] 259 + use mprotect_rs::ReadOnly;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/pkeyguard.rs - pkeyguard::AssociatedRegionHandler (line 201) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `guard` in this scope
[INFO] [stdout]    --> src/pkeyguard.rs:203:15
[INFO] [stdout]     |
[INFO] [stdout] 203 | let handler = guard.associate::<ReadWrite>(&mut region)?;
[INFO] [stdout]     |               ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `region` in this scope
[INFO] [stdout]    --> src/pkeyguard.rs:203:49
[INFO] [stdout]     |
[INFO] [stdout] 203 | let handler = guard.associate::<ReadWrite>(&mut region)?;
[INFO] [stdout]     |                                                 ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `ReadWrite` in this scope
[INFO] [stdout]    --> src/pkeyguard.rs:203:33
[INFO] [stdout]     |
[INFO] [stdout] 203 | let handler = guard.associate::<ReadWrite>(&mut region)?;
[INFO] [stdout]     |                                 ^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout] 201 + use mprotect_rs::AccessPermissions::ReadWrite;
[INFO] [stdout]     |
[INFO] [stdout] 201 + use mprotect_rs::ReadWrite;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `ReadOnly` in this scope
[INFO] [stdout]    --> src/pkeyguard.rs:206:51
[INFO] [stdout]     |
[INFO] [stdout] 206 | let readonly_region = handler.set_access_rights::<ReadOnly>()?;
[INFO] [stdout]     |                                                   ^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout] 201 + use mprotect_rs::AccessPermissions::ReadOnly;
[INFO] [stdout]     |
[INFO] [stdout] 201 + use mprotect_rs::ReadOnly;
[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 E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/mprotect.rs - mprotect::UnsafeProtectedRegion<A,T>::as_ref (line 264) 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/mprotect.rs:268:73
[INFO] [stdout]     |
[INFO] [stdout] 265 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mprotect_rs_264_0() {
[INFO] [stdout]     |                                      ---------------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 268 | let region = UnsafeProtectedRegion::<Mmap, i32>::new(AccessRights::READ)?;
[INFO] [stdout]     |                                                                         ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]     |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]     |
[INFO] [stdout] 265 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mprotect_rs_264_0() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout]     |                                                                               +++++++++++++++++++++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/mprotect.rs:270:1
[INFO] [stdout]     |
[INFO] [stdout] 265 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mprotect_rs_264_0() {
[INFO] [stdout]     |                                                                              - help: try adding a return type: `-> Result<(), mprotect_rs::MprotectError>`
[INFO] [stdout] ...
[INFO] [stdout] 270 | Ok::<(), mprotect_rs::MprotectError>(())
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found `Result<(), MprotectError>`
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected unit type `()`
[INFO] [stdout]                     found enum `Result<(), mprotect_rs::MprotectError>`
[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/pkeyguard.rs - pkeyguard::PkeyGuard (line 309) stdout ----
[INFO] [stdout] error: unexpected token: `...`
[INFO] [stdout]    --> src/pkeyguard.rs:311:54
[INFO] [stdout]     |
[INFO] [stdout] 311 | let mut region = RegionGuard::<MyAllocator, u8>::new(...)?;
[INFO] [stdout]     |                                                      ^^^
[INFO] [stdout]     |
[INFO] [stdout] help: use `..` for an exclusive range
[INFO] [stdout]     |
[INFO] [stdout] 311 - let mut region = RegionGuard::<MyAllocator, u8>::new(...)?;
[INFO] [stdout] 311 + let mut region = RegionGuard::<MyAllocator, u8>::new(..)?;
[INFO] [stdout]     |
[INFO] [stdout] help: or `..=` for an inclusive range
[INFO] [stdout]     |
[INFO] [stdout] 311 - let mut region = RegionGuard::<MyAllocator, u8>::new(...)?;
[INFO] [stdout] 311 + let mut region = RegionGuard::<MyAllocator, u8>::new(..=)?;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0586]: inclusive range with no end
[INFO] [stdout]    --> src/pkeyguard.rs:311:54
[INFO] [stdout]     |
[INFO] [stdout] 311 | let mut region = RegionGuard::<MyAllocator, u8>::new(...)?;
[INFO] [stdout]     |                                                      ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
[INFO] [stdout] help: use `..` instead
[INFO] [stdout]     |
[INFO] [stdout] 311 - let mut region = RegionGuard::<MyAllocator, u8>::new(...)?;
[INFO] [stdout] 311 + let mut region = RegionGuard::<MyAllocator, u8>::new(..)?;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PkeyGuard`
[INFO] [stdout]    --> src/pkeyguard.rs:310:13
[INFO] [stdout]     |
[INFO] [stdout] 310 | let guard = PkeyGuard::<MyAllocator, u8>::new(ReadWrite)?;
[INFO] [stdout]     |             ^^^^^^^^^ use of undeclared type `PkeyGuard`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 309 + use mprotect_rs::PkeyGuard;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `MyAllocator` in this scope
[INFO] [stdout]    --> src/pkeyguard.rs:310:25
[INFO] [stdout]     |
[INFO] [stdout] 310 | let guard = PkeyGuard::<MyAllocator, u8>::new(ReadWrite)?;
[INFO] [stdout]     |                         ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 309 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_pkeyguard_rs_309_0<MyAllocator>() {
[INFO] [stdout]     |                                                                             +++++++++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `ReadWrite` in this scope
[INFO] [stdout]    --> src/pkeyguard.rs:310:47
[INFO] [stdout]     |
[INFO] [stdout] 310 | let guard = PkeyGuard::<MyAllocator, u8>::new(ReadWrite)?;
[INFO] [stdout]     |                                               ^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these unit structs
[INFO] [stdout]     |
[INFO] [stdout] 309 + use mprotect_rs::AccessPermissions::ReadWrite;
[INFO] [stdout]     |
[INFO] [stdout] 309 + use mprotect_rs::ReadWrite;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RegionGuard`
[INFO] [stdout]    --> src/pkeyguard.rs:311:18
[INFO] [stdout]     |
[INFO] [stdout] 311 | let mut region = RegionGuard::<MyAllocator, u8>::new(...)?;
[INFO] [stdout]     |                  ^^^^^^^^^^^ use of undeclared type `RegionGuard`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 309 + use mprotect_rs::RegionGuard;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `MyAllocator` in this scope
[INFO] [stdout]    --> src/pkeyguard.rs:311:32
[INFO] [stdout]     |
[INFO] [stdout] 311 | let mut region = RegionGuard::<MyAllocator, u8>::new(...)?;
[INFO] [stdout]     |                                ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 309 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_pkeyguard_rs_309_0<MyAllocator>() {
[INFO] [stdout]     |                                                                             +++++++++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `ReadOnly` in this scope
[INFO] [stdout]    --> src/pkeyguard.rs:314:33
[INFO] [stdout]     |
[INFO] [stdout] 314 | let handler = guard.associate::<ReadOnly>(&mut region)?;
[INFO] [stdout]     |                                 ^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout] 309 + use mprotect_rs::AccessPermissions::ReadOnly;
[INFO] [stdout]     |
[INFO] [stdout] 309 + use mprotect_rs::ReadOnly;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 8 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0586.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/pkeyguard.rs - pkeyguard::AssociatedRegion (line 43) stdout ----
[INFO] [stdout] error: unexpected token: `...`
[INFO] [stdout]   --> src/pkeyguard.rs:45:54
[INFO] [stdout]    |
[INFO] [stdout] 45 | let mut region = RegionGuard::<MyAllocator, u8>::new(...)?;
[INFO] [stdout]    |                                                      ^^^
[INFO] [stdout]    |
[INFO] [stdout] help: use `..` for an exclusive range
[INFO] [stdout]    |
[INFO] [stdout] 45 - let mut region = RegionGuard::<MyAllocator, u8>::new(...)?;
[INFO] [stdout] 45 + let mut region = RegionGuard::<MyAllocator, u8>::new(..)?;
[INFO] [stdout]    |
[INFO] [stdout] help: or `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout] 45 - let mut region = RegionGuard::<MyAllocator, u8>::new(...)?;
[INFO] [stdout] 45 + let mut region = RegionGuard::<MyAllocator, u8>::new(..=)?;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0586]: inclusive range with no end
[INFO] [stdout]   --> src/pkeyguard.rs:45:54
[INFO] [stdout]    |
[INFO] [stdout] 45 | let mut region = RegionGuard::<MyAllocator, u8>::new(...)?;
[INFO] [stdout]    |                                                      ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
[INFO] [stdout] help: use `..` instead
[INFO] [stdout]    |
[INFO] [stdout] 45 - let mut region = RegionGuard::<MyAllocator, u8>::new(...)?;
[INFO] [stdout] 45 + let mut region = RegionGuard::<MyAllocator, u8>::new(..)?;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PkeyGuard`
[INFO] [stdout]   --> src/pkeyguard.rs:44:13
[INFO] [stdout]    |
[INFO] [stdout] 44 | let guard = PkeyGuard::<MyAllocator, u8>::new(ReadWrite)?;
[INFO] [stdout]    |             ^^^^^^^^^ use of undeclared type `PkeyGuard`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 43 + use mprotect_rs::PkeyGuard;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `MyAllocator` in this scope
[INFO] [stdout]   --> src/pkeyguard.rs:44:25
[INFO] [stdout]    |
[INFO] [stdout] 44 | let guard = PkeyGuard::<MyAllocator, u8>::new(ReadWrite)?;
[INFO] [stdout]    |                         ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 43 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_pkeyguard_rs_43_0<MyAllocator>() {
[INFO] [stdout]    |                                                                            +++++++++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `ReadWrite` in this scope
[INFO] [stdout]   --> src/pkeyguard.rs:44:47
[INFO] [stdout]    |
[INFO] [stdout] 44 | let guard = PkeyGuard::<MyAllocator, u8>::new(ReadWrite)?;
[INFO] [stdout]    |                                               ^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these unit structs
[INFO] [stdout]    |
[INFO] [stdout] 43 + use mprotect_rs::AccessPermissions::ReadWrite;
[INFO] [stdout]    |
[INFO] [stdout] 43 + use mprotect_rs::ReadWrite;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RegionGuard`
[INFO] [stdout]   --> src/pkeyguard.rs:45:18
[INFO] [stdout]    |
[INFO] [stdout] 45 | let mut region = RegionGuard::<MyAllocator, u8>::new(...)?;
[INFO] [stdout]    |                  ^^^^^^^^^^^ use of undeclared type `RegionGuard`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 43 + use mprotect_rs::RegionGuard;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `MyAllocator` in this scope
[INFO] [stdout]   --> src/pkeyguard.rs:45:32
[INFO] [stdout]    |
[INFO] [stdout] 45 | let mut region = RegionGuard::<MyAllocator, u8>::new(...)?;
[INFO] [stdout]    |                                ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 43 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_pkeyguard_rs_43_0<MyAllocator>() {
[INFO] [stdout]    |                                                                            +++++++++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AssociatedRegion`
[INFO] [stdout]   --> src/pkeyguard.rs:48:18
[INFO] [stdout]    |
[INFO] [stdout] 48 | let associated = AssociatedRegion::<_, _, ReadOnly>::new(&mut region, &guard);
[INFO] [stdout]    |                  ^^^^^^^^^^^^^^^^ use of undeclared type `AssociatedRegion`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 43 + use mprotect_rs::AssociatedRegion;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `ReadOnly` in this scope
[INFO] [stdout]   --> src/pkeyguard.rs:48:43
[INFO] [stdout]    |
[INFO] [stdout] 48 | let associated = AssociatedRegion::<_, _, ReadOnly>::new(&mut region, &guard);
[INFO] [stdout]    |                                           ^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]    |
[INFO] [stdout] 43 + use mprotect_rs::AccessPermissions::ReadOnly;
[INFO] [stdout]    |
[INFO] [stdout] 43 + use mprotect_rs::ReadOnly;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 9 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0586.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/mpk.rs - mpk::PKey::associate (line 298)
[INFO] [stdout]     src/mpk.rs - mpk::PKey::disassociate (line 336)
[INFO] [stdout]     src/mpk.rs - mpk::PKey::get_access_rights (line 145)
[INFO] [stdout]     src/mpk.rs - mpk::PKey::set_access_rights (line 193)
[INFO] [stdout]     src/mpk/pkru.rs - mpk::pkru::rdpkru (line 19)
[INFO] [stdout]     src/mpk/pkru.rs - mpk::pkru::wrpkru (line 52)
[INFO] [stdout]     src/mprotect.rs - mprotect::UnsafeProtectedRegion<A,T>::as_mut (line 236)
[INFO] [stdout]     src/mprotect.rs - mprotect::UnsafeProtectedRegion<A,T>::as_ref (line 264)
[INFO] [stdout]     src/mprotect.rs - mprotect::UnsafeProtectedRegion<A,T>::set_access (line 154)
[INFO] [stdout]     src/pkeyguard.rs - pkeyguard::AssociatedRegion (line 43)
[INFO] [stdout]     src/pkeyguard.rs - pkeyguard::AssociatedRegionHandler (line 201)
[INFO] [stdout]     src/pkeyguard.rs - pkeyguard::AssociatedRegionHandler<'p,A,T,Rights>::set_access_rights (line 259)
[INFO] [stdout]     src/pkeyguard.rs - pkeyguard::PkeyGuard (line 309)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 4 passed; 13 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.16s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "30e561502c1b08d2dad4a346b70da2259aa363d0121816954a17abe0b89ed6a6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "30e561502c1b08d2dad4a346b70da2259aa363d0121816954a17abe0b89ed6a6", kill_on_drop: false }`
[INFO] [stdout] 30e561502c1b08d2dad4a346b70da2259aa363d0121816954a17abe0b89ed6a6
