[INFO] fetching crate box_raw_ptr 2.2.0... [INFO] testing box_raw_ptr-2.2.0 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] extracting crate box_raw_ptr 2.2.0 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate box_raw_ptr 2.2.0 [INFO] finished tweaking crates.io crate box_raw_ptr 2.2.0 [INFO] tweaked toml for crates.io crate box_raw_ptr 2.2.0 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate box_raw_ptr 2.2.0 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 3 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8d9feee42dbd9d46058b1eaa07eaca3f88c843d72a0e5240949cb37e6454d246 [INFO] running `Command { std: "docker" "start" "-a" "8d9feee42dbd9d46058b1eaa07eaca3f88c843d72a0e5240949cb37e6454d246", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8d9feee42dbd9d46058b1eaa07eaca3f88c843d72a0e5240949cb37e6454d246", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8d9feee42dbd9d46058b1eaa07eaca3f88c843d72a0e5240949cb37e6454d246", kill_on_drop: false }` [INFO] [stdout] 8d9feee42dbd9d46058b1eaa07eaca3f88c843d72a0e5240949cb37e6454d246 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 46b7557701e084e2275b010bb71c399ef61ae4b358650f340aa74223ed1d9891 [INFO] running `Command { std: "docker" "start" "-a" "46b7557701e084e2275b010bb71c399ef61ae4b358650f340aa74223ed1d9891", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling box_raw_ptr v2.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.84s [INFO] running `Command { std: "docker" "inspect" "46b7557701e084e2275b010bb71c399ef61ae4b358650f340aa74223ed1d9891", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "46b7557701e084e2275b010bb71c399ef61ae4b358650f340aa74223ed1d9891", kill_on_drop: false }` [INFO] [stdout] 46b7557701e084e2275b010bb71c399ef61ae4b358650f340aa74223ed1d9891 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1e9749ec58b4475aa86b4d1ae42d261cdd35ed78a8f53862336e5cec8e87c393 [INFO] running `Command { std: "docker" "start" "-a" "1e9749ec58b4475aa86b4d1ae42d261cdd35ed78a8f53862336e5cec8e87c393", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling box_raw_ptr v2.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.36s [INFO] running `Command { std: "docker" "inspect" "1e9749ec58b4475aa86b4d1ae42d261cdd35ed78a8f53862336e5cec8e87c393", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e9749ec58b4475aa86b4d1ae42d261cdd35ed78a8f53862336e5cec8e87c393", kill_on_drop: false }` [INFO] [stdout] 1e9749ec58b4475aa86b4d1ae42d261cdd35ed78a8f53862336e5cec8e87c393 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b2020d1bfa425363e970c1a39e579c889a3740532bc40fd789f4ffae10e6e6fc [INFO] running `Command { std: "docker" "start" "-a" "b2020d1bfa425363e970c1a39e579c889a3740532bc40fd789f4ffae10e6e6fc", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/box_raw_ptr-49503e4109bb11a8) [INFO] [stderr] Doc-tests box_raw_ptr [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test box_raw_ptr_tests::c_allocator_test ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 41 tests [INFO] [stdout] test src/lib.rs - const_raw_ptr::ConstRawPtr::change_memory_length (line 376) ... FAILED [INFO] [stdout] test src/lib.rs - const_raw_ptr::ConstRawPtr::check_ptr (line 301) ... FAILED [INFO] [stdout] test src/lib.rs - const_raw_ptr::ConstRawPtr::cast_ptr (line 531) ... FAILED [INFO] [stdout] test src/lib.rs - const_raw_ptr::ConstRawPtr::manual_drop (line 271) ... FAILED [INFO] [stdout] test src/lib.rs - const_raw_ptr::ConstRawPtr::access (line 466) ... FAILED [INFO] [stdout] test src/lib.rs - const_raw_ptr::ConstRawPtr::as_mut (line 451) ... FAILED [INFO] [stdout] test src/lib.rs - const_raw_ptr::ConstRawPtr::nullptr (line 254) ... FAILED [INFO] [stdout] test src/lib.rs - const_raw_ptr::ConstRawPtr::check_memory_length (line 331) ... FAILED [INFO] [stdout] test src/lib.rs - (line 48) ... FAILED [INFO] [stdout] test src/lib.rs - const_raw_ptr::ConstRawPtr::new (line 237) ... FAILED [INFO] [stdout] test src/lib.rs - const_raw_ptr::ConstRawPtr::change_offset (line 345) ... FAILED [INFO] [stdout] test src/lib.rs - mut_raw_ptr::MutRawPtr::cast_ptr (line 966) ... FAILED [INFO] [stdout] test src/lib.rs - mut_raw_ptr::MutRawPtr::c_malloc (line 621) ... FAILED [INFO] [stdout] test src/lib.rs - mut_raw_ptr::MutRawPtr::check_bounds (line 711) ... FAILED [INFO] [stdout] test src/lib.rs - const_raw_ptr::ConstRawPtr::check_bounds (line 287) ... FAILED [INFO] [stdout] test src/lib.rs - mut_raw_ptr::MutRawPtr::change_memory_length (line 795) ... FAILED [INFO] [stdout] test src/lib.rs - const_raw_ptr::ConstRawPtr::is_null (line 501) ... FAILED [INFO] [stdout] test src/lib.rs - const_raw_ptr::ConstRawPtr::release_ptr (line 397) ... FAILED [INFO] [stdout] test src/lib.rs - mut_raw_ptr::MutRawPtr::as_const (line 868) ... FAILED [INFO] [stdout] test src/lib.rs - const_raw_ptr::ConstRawPtr::check_offset (line 318) ... FAILED [INFO] [stdout] test src/lib.rs - const_raw_ptr::ConstRawPtr::size_of (line 516) ... FAILED [INFO] [stdout] test src/lib.rs - const_raw_ptr::ConstRawPtr::set_null (line 418) ... FAILED [INFO] [stdout] test src/lib.rs - mut_raw_ptr::MutRawPtr::check_offset (line 742) ... FAILED [INFO] [stdout] test src/lib.rs - mut_raw_ptr::MutRawPtr::check_ptr (line 725) ... FAILED [INFO] [stdout] test src/lib.rs - const_raw_ptr::ConstRawPtr::c_malloc (line 197) ... FAILED [INFO] [stdout] test src/lib.rs - const_raw_ptr::ConstRawPtr::ref_const (line 484) ... FAILED [INFO] [stdout] test src/lib.rs - mut_raw_ptr::MutRawPtr::change_offset (line 769) ... FAILED [INFO] [stdout] test src/lib.rs - const_raw_ptr::ConstRawPtr::memory_address (line 436) ... FAILED [INFO] [stdout] test src/lib.rs - mut_raw_ptr::MutRawPtr::check_memory_length (line 755) ... FAILED [INFO] [stdout] test src/lib.rs - mut_raw_ptr::MutRawPtr::new (line 661) ... FAILED [INFO] [stdout] test src/lib.rs - mut_raw_ptr::MutRawPtr::ref_mut (line 918) ... FAILED [INFO] [stdout] test src/lib.rs - mut_raw_ptr::MutRawPtr::manual_drop (line 695) ... FAILED [INFO] [stdout] test src/lib.rs - mut_raw_ptr::MutRawPtr::release_ptr (line 814) ... FAILED [INFO] [stdout] test src/lib.rs - mut_raw_ptr::MutRawPtr::set_null (line 835) ... FAILED [INFO] [stdout] test src/lib.rs - mut_raw_ptr::MutRawPtr::ref_const (line 900) ... FAILED [INFO] [stdout] test src/lib.rs - mut_raw_ptr::MutRawPtr::is_null (line 936) ... FAILED [INFO] [stdout] test src/lib.rs - mut_raw_ptr::MutRawPtr::access (line 882) ... FAILED [INFO] [stdout] test src/lib.rs - mut_raw_ptr::MutRawPtr::memory_address (line 853) ... FAILED [INFO] [stdout] test src/lib.rs - mut_raw_ptr::MutRawPtr::size_of (line 951) ... FAILED [INFO] [stdout] test src/lib.rs - mut_raw_ptr::MutRawPtr::nullptr (line 678) ... FAILED [INFO] [stdout] test src/lib.rs - mut_raw_ptr::MutRawPtr::write_ptr (line 988) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - const_raw_ptr::ConstRawPtr::change_memory_length (line 376) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `ptr` in this scope [INFO] [stdout] --> src/lib.rs:378:13 [INFO] [stdout] | [INFO] [stdout] 378 | assert!(ptr.change_memory_length(10).is_some()); [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/lib.rs - const_raw_ptr::ConstRawPtr::check_ptr (line 301) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `ptr` in this scope [INFO] [stdout] --> src/lib.rs:302:9 [INFO] [stdout] | [INFO] [stdout] 302 | assert!(ptr.check_ptr()); [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/lib.rs - const_raw_ptr::ConstRawPtr::cast_ptr (line 531) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `ptr` in this scope [INFO] [stdout] --> src/lib.rs:532:15 [INFO] [stdout] | [INFO] [stdout] 532 | let new_ptr = ptr.cast_ptr::().unwrap(); [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/lib.rs - const_raw_ptr::ConstRawPtr::manual_drop (line 271) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `ptr` in this scope [INFO] [stdout] --> src/lib.rs:273:5 [INFO] [stdout] | [INFO] [stdout] 273 | ptr.manual_drop(); [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/lib.rs - const_raw_ptr::ConstRawPtr::access (line 466) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `ptr` in this scope [INFO] [stdout] --> src/lib.rs:467:13 [INFO] [stdout] | [INFO] [stdout] 467 | let value = ptr.access().unwrap(); [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/lib.rs - const_raw_ptr::ConstRawPtr::as_mut (line 451) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `ptr` in this scope [INFO] [stdout] --> src/lib.rs:452:15 [INFO] [stdout] | [INFO] [stdout] 452 | let mut_ptr = ptr.as_mut(); [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/lib.rs - const_raw_ptr::ConstRawPtr::nullptr (line 254) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ConstRawPtr` [INFO] [stdout] --> src/lib.rs:255:16 [INFO] [stdout] | [INFO] [stdout] 255 | let null_ptr = ConstRawPtr::::nullptr(); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `ConstRawPtr` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - const_raw_ptr::ConstRawPtr::check_memory_length (line 331) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `ptr` in this scope [INFO] [stdout] --> src/lib.rs:332:14 [INFO] [stdout] | [INFO] [stdout] 332 | let length = ptr.check_memory_length(); [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/lib.rs - (line 48) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:80:31 [INFO] [stdout] | [INFO] [stdout] 80 | safeptr.change_offset(i * std::mem::size_of::()).unwrap(); [INFO] [stdout] | ------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `isize`, found `usize` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:772:16 [INFO] [stdout] | [INFO] [stdout] 772 | pub fn change_offset(&mut self, offset: isize) -> Option<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] help: you can convert a `usize` to an `isize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 80 | safeptr.change_offset((i * std::mem::size_of::()).try_into().unwrap()).unwrap(); [INFO] [stdout] | + +++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - const_raw_ptr::ConstRawPtr::new (line 237) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/lib.rs:238:29 [INFO] [stdout] | [INFO] [stdout] 238 | let alloc_ptr: *const i32 = ...; // Assume this is a properly allocated and aligned pointer either from C or using Rust's std::allo... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 238 - let alloc_ptr: *const i32 = ...; // Assume this is a properly allocated and aligned pointer either from C or using Rust's std::alloc::alloc and std::alloc::Layout otherwise it will panic. [INFO] [stdout] 238 + let alloc_ptr: *const i32 = ..; // Assume this is a properly allocated and aligned pointer either from C or using Rust's std::alloc::alloc and std::alloc::Layout otherwise it will panic. [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 238 - let alloc_ptr: *const i32 = ...; // Assume this is a properly allocated and aligned pointer either from C or using Rust's std::alloc::alloc and std::alloc::Layout otherwise it will panic. [INFO] [stdout] 238 + let alloc_ptr: *const i32 = ..=; // Assume this is a properly allocated and aligned pointer either from C or using Rust's std::alloc::alloc and std::alloc::Layout otherwise it will panic. [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/lib.rs:238:29 [INFO] [stdout] | [INFO] [stdout] 238 | let alloc_ptr: *const i32 = ...; // Assume this is a properly allocated and aligned pointer either from C or using Rust's std::allo... [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] 238 - let alloc_ptr: *const i32 = ...; // Assume this is a properly allocated and aligned pointer either from C or using Rust's std::alloc::alloc and std::alloc::Layout otherwise it will panic. [INFO] [stdout] 238 + let alloc_ptr: *const i32 = ..; // Assume this is a properly allocated and aligned pointer either from C or using Rust's std::alloc::alloc and std::alloc::Layout otherwise it will panic. [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ConstRawPtr` [INFO] [stdout] --> src/lib.rs:239:11 [INFO] [stdout] | [INFO] [stdout] 239 | let ptr = ConstRawPtr::new(alloc_ptr, 1, 1); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `ConstRawPtr` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0586. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - const_raw_ptr::ConstRawPtr::change_offset (line 345) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `ptr` in this scope [INFO] [stdout] --> src/lib.rs:346:9 [INFO] [stdout] | [INFO] [stdout] 346 | assert!(ptr.change_offset(2).is_some()); [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/lib.rs - mut_raw_ptr::MutRawPtr::cast_ptr (line 966) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `mut_ptr` in this scope [INFO] [stdout] --> src/lib.rs:967:15 [INFO] [stdout] | [INFO] [stdout] 967 | let new_ptr = mut_ptr.cast_ptr::().unwrap(); [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/lib.rs - mut_raw_ptr::MutRawPtr::c_malloc (line 621) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MutRawPtr` [INFO] [stdout] --> src/lib.rs:623:5 [INFO] [stdout] | [INFO] [stdout] 623 | MutRawPtr::c_malloc(vec![1, 2, 3], 5, 1).unwrap(); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `MutRawPtr` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:622:25 [INFO] [stdout] | [INFO] [stdout] 622 | let alloc: *const i32 = unsafe { [INFO] [stdout] | _________________________^ [INFO] [stdout] 623 | | MutRawPtr::c_malloc(vec![1, 2, 3], 5, 1).unwrap(); [INFO] [stdout] 624 | | }; [INFO] [stdout] | |_^ expected `*const i32`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected raw pointer `*const i32` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - mut_raw_ptr::MutRawPtr::check_bounds (line 711) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `mut_ptr` in this scope [INFO] [stdout] --> src/lib.rs:712:9 [INFO] [stdout] | [INFO] [stdout] 712 | assert!(mut_ptr.check_bounds()); [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/lib.rs - const_raw_ptr::ConstRawPtr::check_bounds (line 287) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `ptr` in this scope [INFO] [stdout] --> src/lib.rs:288:9 [INFO] [stdout] | [INFO] [stdout] 288 | assert!(ptr.check_bounds()); [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/lib.rs - mut_raw_ptr::MutRawPtr::change_memory_length (line 795) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `mut_ptr` in this scope [INFO] [stdout] --> src/lib.rs:796:9 [INFO] [stdout] | [INFO] [stdout] 796 | assert!(mut_ptr.change_memory_length(10).is_some()); [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/lib.rs - const_raw_ptr::ConstRawPtr::is_null (line 501) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `ptr` in this scope [INFO] [stdout] --> src/lib.rs:502:9 [INFO] [stdout] | [INFO] [stdout] 502 | assert!(ptr.is_null()); [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/lib.rs - const_raw_ptr::ConstRawPtr::release_ptr (line 397) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `ptr` in this scope [INFO] [stdout] --> src/lib.rs:398:13 [INFO] [stdout] | [INFO] [stdout] 398 | let value = ptr.release_ptr().unwrap(); [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/lib.rs - mut_raw_ptr::MutRawPtr::as_const (line 868) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `mut_ptr` in this scope [INFO] [stdout] --> src/lib.rs:869:17 [INFO] [stdout] | [INFO] [stdout] 869 | let const_ptr = mut_ptr.as_const(); [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/lib.rs - const_raw_ptr::ConstRawPtr::check_offset (line 318) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `ptr` in this scope [INFO] [stdout] --> src/lib.rs:319:14 [INFO] [stdout] | [INFO] [stdout] 319 | let offset = ptr.check_offset(); [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/lib.rs - const_raw_ptr::ConstRawPtr::size_of (line 516) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ConstRawPtr` [INFO] [stdout] --> src/lib.rs:517:12 [INFO] [stdout] | [INFO] [stdout] 517 | let size = ConstRawPtr::::size_of(); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `ConstRawPtr` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - const_raw_ptr::ConstRawPtr::set_null (line 418) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `ptr` in this scope [INFO] [stdout] --> src/lib.rs:419:1 [INFO] [stdout] | [INFO] [stdout] 419 | ptr.set_null(); [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/lib.rs - mut_raw_ptr::MutRawPtr::check_offset (line 742) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `mut_ptr` in this scope [INFO] [stdout] --> src/lib.rs:743:14 [INFO] [stdout] | [INFO] [stdout] 743 | let offset = mut_ptr.check_offset(); [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/lib.rs - mut_raw_ptr::MutRawPtr::check_ptr (line 725) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `mut_ptr` in this scope [INFO] [stdout] --> src/lib.rs:726:9 [INFO] [stdout] | [INFO] [stdout] 726 | assert!(mut_ptr.check_ptr()); [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/lib.rs - const_raw_ptr::ConstRawPtr::c_malloc (line 197) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ConstRawPtr` [INFO] [stdout] --> src/lib.rs:199:5 [INFO] [stdout] | [INFO] [stdout] 199 | ConstRawPtr::c_malloc(vec![1, 2, 3], 5, 1).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `ConstRawPtr` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:198:25 [INFO] [stdout] | [INFO] [stdout] 198 | let alloc: *const i32 = unsafe { [INFO] [stdout] | _________________________^ [INFO] [stdout] 199 | | ConstRawPtr::c_malloc(vec![1, 2, 3], 5, 1).unwrap(); [INFO] [stdout] 200 | | }; [INFO] [stdout] | |_^ expected `*const i32`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected raw pointer `*const i32` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - const_raw_ptr::ConstRawPtr::ref_const (line 484) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `ptr` in this scope [INFO] [stdout] --> src/lib.rs:485:17 [INFO] [stdout] | [INFO] [stdout] 485 | let reference = ptr.ref_const().unwrap(); [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/lib.rs - mut_raw_ptr::MutRawPtr::change_offset (line 769) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `mut_ptr` in this scope [INFO] [stdout] --> src/lib.rs:770:9 [INFO] [stdout] | [INFO] [stdout] 770 | assert!(mut_ptr.change_offset(2).is_some()); [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/lib.rs - const_raw_ptr::ConstRawPtr::memory_address (line 436) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `ptr` in this scope [INFO] [stdout] --> src/lib.rs:437:15 [INFO] [stdout] | [INFO] [stdout] 437 | let address = ptr.memory_address(); [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/lib.rs - mut_raw_ptr::MutRawPtr::check_memory_length (line 755) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `mut_ptr` in this scope [INFO] [stdout] --> src/lib.rs:756:14 [INFO] [stdout] | [INFO] [stdout] 756 | let length = mut_ptr.check_memory_length(); [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/lib.rs - mut_raw_ptr::MutRawPtr::new (line 661) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/lib.rs:662:27 [INFO] [stdout] | [INFO] [stdout] 662 | let alloc_ptr: *mut i32 = ...; // Assume this is a properly allocated and aligned pointer either from C or using Rust's std::alloc:... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 662 - let alloc_ptr: *mut i32 = ...; // Assume this is a properly allocated and aligned pointer either from C or using Rust's std::alloc::alloc and std::alloc::Layout otherwise it will panic. [INFO] [stdout] 662 + let alloc_ptr: *mut i32 = ..; // Assume this is a properly allocated and aligned pointer either from C or using Rust's std::alloc::alloc and std::alloc::Layout otherwise it will panic. [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 662 - let alloc_ptr: *mut i32 = ...; // Assume this is a properly allocated and aligned pointer either from C or using Rust's std::alloc::alloc and std::alloc::Layout otherwise it will panic. [INFO] [stdout] 662 + let alloc_ptr: *mut i32 = ..=; // Assume this is a properly allocated and aligned pointer either from C or using Rust's std::alloc::alloc and std::alloc::Layout otherwise it will panic. [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/lib.rs:662:27 [INFO] [stdout] | [INFO] [stdout] 662 | let alloc_ptr: *mut i32 = ...; // Assume this is a properly allocated and aligned pointer either from C or using Rust's std::alloc:... [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] 662 - let alloc_ptr: *mut i32 = ...; // Assume this is a properly allocated and aligned pointer either from C or using Rust's std::alloc::alloc and std::alloc::Layout otherwise it will panic. [INFO] [stdout] 662 + let alloc_ptr: *mut i32 = ..; // Assume this is a properly allocated and aligned pointer either from C or using Rust's std::alloc::alloc and std::alloc::Layout otherwise it will panic. [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MutRawPtr` [INFO] [stdout] --> src/lib.rs:663:11 [INFO] [stdout] | [INFO] [stdout] 663 | let ptr = MutRawPtr::new(alloc_ptr, 1, 1); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `MutRawPtr` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0586. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - mut_raw_ptr::MutRawPtr::ref_mut (line 918) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `mut_ptr` in this scope [INFO] [stdout] --> src/lib.rs:919:21 [INFO] [stdout] | [INFO] [stdout] 919 | let mut reference = mut_ptr.ref_mut().unwrap(); [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/lib.rs - mut_raw_ptr::MutRawPtr::manual_drop (line 695) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `mut_ptr` in this scope [INFO] [stdout] --> src/lib.rs:697:5 [INFO] [stdout] | [INFO] [stdout] 697 | mut_ptr.manual_drop(); [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/lib.rs - mut_raw_ptr::MutRawPtr::release_ptr (line 814) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `mut_ptr` in this scope [INFO] [stdout] --> src/lib.rs:815:13 [INFO] [stdout] | [INFO] [stdout] 815 | let value = mut_ptr.release_ptr().unwrap(); [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/lib.rs - mut_raw_ptr::MutRawPtr::set_null (line 835) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `mut_ptr` in this scope [INFO] [stdout] --> src/lib.rs:836:1 [INFO] [stdout] | [INFO] [stdout] 836 | mut_ptr.set_null(); [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/lib.rs - mut_raw_ptr::MutRawPtr::ref_const (line 900) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `mut_ptr` in this scope [INFO] [stdout] --> src/lib.rs:901:17 [INFO] [stdout] | [INFO] [stdout] 901 | let reference = mut_ptr.ref_const().unwrap(); [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/lib.rs - mut_raw_ptr::MutRawPtr::is_null (line 936) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `mut_ptr` in this scope [INFO] [stdout] --> src/lib.rs:937:9 [INFO] [stdout] | [INFO] [stdout] 937 | assert!(mut_ptr.is_null()); [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/lib.rs - mut_raw_ptr::MutRawPtr::access (line 882) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `mut_ptr` in this scope [INFO] [stdout] --> src/lib.rs:883:13 [INFO] [stdout] | [INFO] [stdout] 883 | let value = mut_ptr.access().unwrap(); [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/lib.rs - mut_raw_ptr::MutRawPtr::memory_address (line 853) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `mut_ptr` in this scope [INFO] [stdout] --> src/lib.rs:854:15 [INFO] [stdout] | [INFO] [stdout] 854 | let address = mut_ptr.memory_address(); [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/lib.rs - mut_raw_ptr::MutRawPtr::size_of (line 951) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `mut_ptr` in this scope [INFO] [stdout] --> src/lib.rs:952:12 [INFO] [stdout] | [INFO] [stdout] 952 | let size = mut_ptr.size_of(); [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/lib.rs - mut_raw_ptr::MutRawPtr::nullptr (line 678) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MutRawPtr` [INFO] [stdout] --> src/lib.rs:679:16 [INFO] [stdout] | [INFO] [stdout] 679 | let null_ptr = MutRawPtr::::nullptr(); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `MutRawPtr` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - mut_raw_ptr::MutRawPtr::write_ptr (line 988) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `mut_ptr` in this scope [INFO] [stdout] --> src/lib.rs:989:1 [INFO] [stdout] | [INFO] [stdout] 989 | mut_ptr.write_ptr(42); [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] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 48) [INFO] [stdout] src/lib.rs - const_raw_ptr::ConstRawPtr::access (line 466) [INFO] [stdout] src/lib.rs - const_raw_ptr::ConstRawPtr::as_mut (line 451) [INFO] [stdout] src/lib.rs - const_raw_ptr::ConstRawPtr::c_malloc (line 197) [INFO] [stdout] src/lib.rs - const_raw_ptr::ConstRawPtr::cast_ptr (line 531) [INFO] [stdout] src/lib.rs - const_raw_ptr::ConstRawPtr::change_memory_length (line 376) [INFO] [stdout] src/lib.rs - const_raw_ptr::ConstRawPtr::change_offset (line 345) [INFO] [stdout] src/lib.rs - const_raw_ptr::ConstRawPtr::check_bounds (line 287) [INFO] [stdout] src/lib.rs - const_raw_ptr::ConstRawPtr::check_memory_length (line 331) [INFO] [stdout] src/lib.rs - const_raw_ptr::ConstRawPtr::check_offset (line 318) [INFO] [stdout] src/lib.rs - const_raw_ptr::ConstRawPtr::check_ptr (line 301) [INFO] [stdout] src/lib.rs - const_raw_ptr::ConstRawPtr::is_null (line 501) [INFO] [stdout] src/lib.rs - const_raw_ptr::ConstRawPtr::manual_drop (line 271) [INFO] [stdout] src/lib.rs - const_raw_ptr::ConstRawPtr::memory_address (line 436) [INFO] [stdout] src/lib.rs - const_raw_ptr::ConstRawPtr::new (line 237) [INFO] [stdout] src/lib.rs - const_raw_ptr::ConstRawPtr::nullptr (line 254) [INFO] [stdout] src/lib.rs - const_raw_ptr::ConstRawPtr::ref_const (line 484) [INFO] [stdout] src/lib.rs - const_raw_ptr::ConstRawPtr::release_ptr (line 397) [INFO] [stdout] src/lib.rs - const_raw_ptr::ConstRawPtr::set_null (line 418) [INFO] [stdout] src/lib.rs - const_raw_ptr::ConstRawPtr::size_of (line 516) [INFO] [stdout] src/lib.rs - mut_raw_ptr::MutRawPtr::access (line 882) [INFO] [stdout] src/lib.rs - mut_raw_ptr::MutRawPtr::as_const (line 868) [INFO] [stdout] src/lib.rs - mut_raw_ptr::MutRawPtr::c_malloc (line 621) [INFO] [stdout] src/lib.rs - mut_raw_ptr::MutRawPtr::cast_ptr (line 966) [INFO] [stdout] src/lib.rs - mut_raw_ptr::MutRawPtr::change_memory_length (line 795) [INFO] [stdout] src/lib.rs - mut_raw_ptr::MutRawPtr::change_offset (line 769) [INFO] [stdout] src/lib.rs - mut_raw_ptr::MutRawPtr::check_bounds (line 711) [INFO] [stdout] src/lib.rs - mut_raw_ptr::MutRawPtr::check_memory_length (line 755) [INFO] [stdout] src/lib.rs - mut_raw_ptr::MutRawPtr::check_offset (line 742) [INFO] [stdout] src/lib.rs - mut_raw_ptr::MutRawPtr::check_ptr (line 725) [INFO] [stdout] src/lib.rs - mut_raw_ptr::MutRawPtr::is_null (line 936) [INFO] [stdout] src/lib.rs - mut_raw_ptr::MutRawPtr::manual_drop (line 695) [INFO] [stdout] src/lib.rs - mut_raw_ptr::MutRawPtr::memory_address (line 853) [INFO] [stdout] src/lib.rs - mut_raw_ptr::MutRawPtr::new (line 661) [INFO] [stdout] src/lib.rs - mut_raw_ptr::MutRawPtr::nullptr (line 678) [INFO] [stdout] src/lib.rs - mut_raw_ptr::MutRawPtr::ref_const (line 900) [INFO] [stdout] src/lib.rs - mut_raw_ptr::MutRawPtr::ref_mut (line 918) [INFO] [stdout] src/lib.rs - mut_raw_ptr::MutRawPtr::release_ptr (line 814) [INFO] [stdout] src/lib.rs - mut_raw_ptr::MutRawPtr::set_null (line 835) [INFO] [stdout] src/lib.rs - mut_raw_ptr::MutRawPtr::size_of (line 951) [INFO] [stdout] src/lib.rs - mut_raw_ptr::MutRawPtr::write_ptr (line 988) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 41 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.82s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "b2020d1bfa425363e970c1a39e579c889a3740532bc40fd789f4ffae10e6e6fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b2020d1bfa425363e970c1a39e579c889a3740532bc40fd789f4ffae10e6e6fc", kill_on_drop: false }` [INFO] [stdout] b2020d1bfa425363e970c1a39e579c889a3740532bc40fd789f4ffae10e6e6fc