[INFO] fetching crate box_raw_ptr 2.2.0... [INFO] testing box_raw_ptr-2.2.0 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate box_raw_ptr 2.2.0 into /workspace/builds/worker-2-tc1/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-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate box_raw_ptr 2.2.0 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 2 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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] 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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a6a53af0aa40b5eb1456a8be9f6476a940e86573f5f7654a33f133f264ddeaba [INFO] running `Command { std: "docker" "start" "-a" "a6a53af0aa40b5eb1456a8be9f6476a940e86573f5f7654a33f133f264ddeaba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a6a53af0aa40b5eb1456a8be9f6476a940e86573f5f7654a33f133f264ddeaba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a6a53af0aa40b5eb1456a8be9f6476a940e86573f5f7654a33f133f264ddeaba", kill_on_drop: false }` [INFO] [stdout] a6a53af0aa40b5eb1456a8be9f6476a940e86573f5f7654a33f133f264ddeaba [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=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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 91fd230e021f82ff37268222d68cd2974f8e1e93df8853dddfc2010de373d141 [INFO] running `Command { std: "docker" "start" "-a" "91fd230e021f82ff37268222d68cd2974f8e1e93df8853dddfc2010de373d141", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling cc v1.2.34 [INFO] [stderr] Compiling box_raw_ptr v2.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.20s [INFO] running `Command { std: "docker" "inspect" "91fd230e021f82ff37268222d68cd2974f8e1e93df8853dddfc2010de373d141", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "91fd230e021f82ff37268222d68cd2974f8e1e93df8853dddfc2010de373d141", kill_on_drop: false }` [INFO] [stdout] 91fd230e021f82ff37268222d68cd2974f8e1e93df8853dddfc2010de373d141 [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=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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 892e98c1af895b9d65dd5f143976c8ad9523abb59337a5a40bf5e484dd6434dd [INFO] running `Command { std: "docker" "start" "-a" "892e98c1af895b9d65dd5f143976c8ad9523abb59337a5a40bf5e484dd6434dd", 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.37s [INFO] running `Command { std: "docker" "inspect" "892e98c1af895b9d65dd5f143976c8ad9523abb59337a5a40bf5e484dd6434dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "892e98c1af895b9d65dd5f143976c8ad9523abb59337a5a40bf5e484dd6434dd", kill_on_drop: false }` [INFO] [stdout] 892e98c1af895b9d65dd5f143976c8ad9523abb59337a5a40bf5e484dd6434dd [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=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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] cf48e2c9addc42794e4dc1782b7ae29e135a1debeddf924b1fbe9e7d0f8d390b [INFO] running `Command { std: "docker" "start" "-a" "cf48e2c9addc42794e4dc1782b7ae29e135a1debeddf924b1fbe9e7d0f8d390b", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.07s [INFO] [stdout] running 1 test [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/box_raw_ptr-bee2ad26c558e9f2) [INFO] [stdout] test box_raw_ptr_tests::c_allocator_test ... ok [INFO] [stderr] Doc-tests box_raw_ptr [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::new (line 237) ... FAILED [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::cast_ptr (line 531) ... 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::manual_drop (line 271) ... 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::check_bounds (line 287) ... FAILED [INFO] [stdout] test src/lib.rs - const_raw_ptr::ConstRawPtr::check_memory_length (line 331) ... 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::memory_address (line 436) ... FAILED [INFO] [stdout] test src/lib.rs - (line 48) ... 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::change_offset (line 345) ... 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::nullptr (line 254) ... 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::size_of (line 516) ... FAILED [INFO] [stdout] test src/lib.rs - mut_raw_ptr::MutRawPtr::check_bounds (line 711) ... FAILED [INFO] [stdout] test src/lib.rs - mut_raw_ptr::MutRawPtr::cast_ptr (line 966) ... FAILED [INFO] [stdout] test src/lib.rs - const_raw_ptr::ConstRawPtr::set_null (line 418) ... 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::ref_const (line 484) ... FAILED [INFO] [stdout] test src/lib.rs - const_raw_ptr::ConstRawPtr::access (line 466) ... 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::manual_drop (line 695) ... FAILED [INFO] [stdout] test src/lib.rs - mut_raw_ptr::MutRawPtr::check_ptr (line 725) ... FAILED [INFO] [stdout] test src/lib.rs - mut_raw_ptr::MutRawPtr::change_memory_length (line 795) ... 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_offset (line 742) ... 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::release_ptr (line 814) ... 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::memory_address (line 853) ... 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::set_null (line 835) ... 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::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::new (line 237) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/lib.rs:238:29 [INFO] [stdout] | [INFO] [stdout] 3 | let alloc_ptr: *const i32 = ...; // Assume this is a properly allocated and aligned pointer either from C or using Rust's std::alloc::all... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 3 - 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] 3 + 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] 3 - 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] 3 + 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] 3 | let alloc_ptr: *const i32 = ...; // Assume this is a properly allocated and aligned pointer either from C or using Rust's std::alloc::all... [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] 3 - 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] 3 + 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] 4 | 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_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] 4 | 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::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] 3 | 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::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] 3 | 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::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] 4 | 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::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] 4 | 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] 3 | let alloc: *const i32 = unsafe { [INFO] [stdout] | _________________________^ [INFO] [stdout] 4 | | ConstRawPtr::c_malloc(vec![1, 2, 3], 5, 1).unwrap(); [INFO] [stdout] 5 | | }; [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::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] 3 | 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 - 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] 3 | 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 - 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] 3 | 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::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] 3 | 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 - (line 48) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:80:31 [INFO] [stdout] | [INFO] [stdout] 34 | 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] 34 | 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::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] 3 | 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::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] 3 | 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::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] 3 | 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::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] 3 | 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 - 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] 3 | 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::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] 3 | 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 - 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] 3 | 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 - 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] 3 | 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 - 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] 3 | 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 - 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] 3 | 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::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] 3 | 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 - 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] 3 | 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 - 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] 3 | 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] 3 | 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::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] 4 | 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::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] 3 | 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 - 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] 3 | 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 - 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] 4 | 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] 3 | let alloc: *const i32 = unsafe { [INFO] [stdout] | _________________________^ [INFO] [stdout] 4 | | MutRawPtr::c_malloc(vec![1, 2, 3], 5, 1).unwrap(); [INFO] [stdout] 5 | | }; [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_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] 3 | 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::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] 3 | 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::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] 3 | 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::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] 3 | 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::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] 3 | 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 - 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] 3 | 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::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] 3 | 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::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] 3 | 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] 3 | let alloc_ptr: *mut i32 = ...; // Assume this is a properly allocated and aligned pointer either from C or using Rust's std::alloc::alloc... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 3 - 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] 3 + 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] 3 - 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] 3 + 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] 3 | let alloc_ptr: *mut i32 = ...; // Assume this is a properly allocated and aligned pointer either from C or using Rust's std::alloc::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] 3 - 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] 3 + 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] 4 | 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] 3 | 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::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] 3 | 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] 3 | 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.75s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "cf48e2c9addc42794e4dc1782b7ae29e135a1debeddf924b1fbe9e7d0f8d390b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cf48e2c9addc42794e4dc1782b7ae29e135a1debeddf924b1fbe9e7d0f8d390b", kill_on_drop: false }` [INFO] [stdout] cf48e2c9addc42794e4dc1782b7ae29e135a1debeddf924b1fbe9e7d0f8d390b