[INFO] fetching crate phprs 0.1.1... [INFO] checking phprs-0.1.1 against try#79452e8441468c5568c20bfca2aa1fe75b645b2d for pr-152210 [INFO] extracting crate phprs 0.1.1 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate phprs 0.1.1 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate phprs 0.1.1 [INFO] tweaked toml for crates.io crate phprs 0.1.1 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate phprs 0.1.1 on toolchain 79452e8441468c5568c20bfca2aa1fe75b645b2d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+79452e8441468c5568c20bfca2aa1fe75b645b2d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate phprs 0.1.1 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" "+79452e8441468c5568c20bfca2aa1fe75b645b2d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+79452e8441468c5568c20bfca2aa1fe75b645b2d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2e16c267209ca72f5f22009f694972eeb754d9ad3edfe9abee4871fb12c9173a [INFO] running `Command { std: "docker" "start" "-a" "2e16c267209ca72f5f22009f694972eeb754d9ad3edfe9abee4871fb12c9173a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2e16c267209ca72f5f22009f694972eeb754d9ad3edfe9abee4871fb12c9173a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2e16c267209ca72f5f22009f694972eeb754d9ad3edfe9abee4871fb12c9173a", kill_on_drop: false }` [INFO] [stdout] 2e16c267209ca72f5f22009f694972eeb754d9ad3edfe9abee4871fb12c9173a [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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+79452e8441468c5568c20bfca2aa1fe75b645b2d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 922ed2ac5fedc8f24e213fc25c4251160c2d5a0423c0c6e208227099486fd817 [INFO] running `Command { std: "docker" "start" "-a" "922ed2ac5fedc8f24e213fc25c4251160c2d5a0423c0c6e208227099486fd817", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Compiling libc v0.2.181 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Checking bitflags v2.10.0 [INFO] [stderr] Checking slab v0.4.12 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking http v1.4.0 [INFO] [stderr] Checking indexmap v2.13.0 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Checking aho-corasick v1.1.4 [INFO] [stderr] Checking anstyle-query v1.1.5 [INFO] [stderr] Checking anstyle-parse v0.2.7 [INFO] [stderr] Checking is_terminal_polyfill v1.70.2 [INFO] [stderr] Checking ryu v1.0.23 [INFO] [stderr] Compiling ref-cast v1.0.25 [INFO] [stderr] Checking anstyle v1.0.13 [INFO] [stderr] Checking colorchoice v1.0.4 [INFO] [stderr] Compiling zmij v1.0.20 [INFO] [stderr] Checking unicode-width v0.2.2 [INFO] [stderr] Compiling zstd-safe v5.0.2+zstd.1.5.2 [INFO] [stderr] Checking iana-time-zone v0.1.65 [INFO] [stderr] Compiling itoa v1.0.17 [INFO] [stderr] Compiling memchr v2.8.0 [INFO] [stderr] Checking rustix v1.1.3 [INFO] [stderr] Compiling thiserror v2.0.18 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Checking anstream v0.6.21 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling rmcp v0.14.0 [INFO] [stderr] Checking getopts v0.2.24 [INFO] [stderr] Checking toml_write v0.1.2 [INFO] [stderr] Checking base64ct v1.8.3 [INFO] [stderr] Checking clap_lex v0.7.7 [INFO] [stderr] Checking simd-adler32 v0.3.8 [INFO] [stderr] Checking unicase v2.9.0 [INFO] [stderr] Checking crypto-common v0.1.7 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking inout v0.1.4 [INFO] [stderr] Compiling pulldown-cmark v0.10.3 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking dyn-clone v1.0.20 [INFO] [stderr] Checking adler2 v2.0.1 [INFO] [stderr] Checking winnow v0.7.14 [INFO] [stderr] Checking deranged v0.5.6 [INFO] [stderr] Checking miniz_oxide v0.8.9 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking regex-automata v0.4.14 [INFO] [stderr] Checking clap_builder v4.5.57 [INFO] [stderr] Checking password-hash v0.4.2 [INFO] [stderr] Checking csv-core v0.1.13 [INFO] [stderr] Checking num-conv v0.2.0 [INFO] [stderr] Checking option-ext v0.2.0 [INFO] [stderr] Checking unsafe-libyaml v0.2.11 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking configparser v1.0.0 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking time-core v0.1.8 [INFO] [stderr] Checking iri-string v0.7.10 [INFO] [stderr] Compiling pastey v0.2.1 [INFO] [stderr] Checking zeroize v1.8.2 [INFO] [stderr] Checking errno v0.3.14 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking mio v1.1.1 [INFO] [stderr] Checking socket2 v0.6.2 [INFO] [stderr] Checking signal-hook-registry v1.4.8 [INFO] [stderr] Checking pulldown-cmark-escape v0.10.1 [INFO] [stderr] Compiling pulldown-cmark v0.9.6 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking rustls-pki-types v1.14.0 [INFO] [stderr] Checking pbkdf2 v0.11.0 [INFO] [stderr] Checking getrandom v0.4.1 [INFO] [stderr] Checking dirs-sys v0.4.1 [INFO] [stderr] Compiling cc v1.2.55 [INFO] [stderr] Checking filetime v0.2.27 [INFO] [stderr] Checking time v0.3.47 [INFO] [stderr] Checking flate2 v1.1.9 [INFO] [stderr] Checking ini v1.3.0 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking aes v0.8.4 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking quick-xml v0.36.2 [INFO] [stderr] Checking constant_time_eq v0.1.5 [INFO] [stderr] Checking jiff v0.2.19 [INFO] [stderr] Checking dirs v5.0.1 [INFO] [stderr] Checking xattr v1.6.1 [INFO] [stderr] Checking tempfile v3.25.0 [INFO] [stderr] Checking tar v0.4.44 [INFO] [stderr] Checking regex v1.12.3 [INFO] [stderr] Checking env_filter v0.1.4 [INFO] [stderr] Checking csv v1.4.0 [INFO] [stderr] Checking semver v1.0.27 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Compiling zstd-sys v2.0.16+zstd.1.5.7 [INFO] [stderr] Compiling bzip2-sys v0.1.13+1.0.8 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.23.0 [INFO] [stderr] Compiling serde_derive_internals v0.29.1 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking bzip2 v0.4.4 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling ref-cast-impl v1.0.25 [INFO] [stderr] Checking tokio v1.49.0 [INFO] [stderr] Compiling schemars_derive v1.2.1 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling clap_derive v4.5.55 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Checking env_logger v0.11.8 [INFO] [stderr] Checking yoke v0.8.1 [INFO] [stderr] Checking zerovec v0.11.5 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking zerotrie v0.2.3 [INFO] [stderr] Compiling darling_macro v0.23.0 [INFO] [stderr] Compiling darling v0.23.0 [INFO] [stderr] Compiling rmcp-macros v0.14.0 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking zstd v0.11.2+zstd.1.5.2 [INFO] [stderr] Checking clap v4.5.57 [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stderr] Checking chrono v0.4.43 [INFO] [stderr] Checking toml_datetime v0.6.11 [INFO] [stderr] Checking serde_yaml v0.9.34+deprecated [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking toml_edit v0.22.27 [INFO] [stderr] Checking zip v0.6.6 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking icu_provider v2.1.1 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking icu_properties v2.1.2 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Checking schemars v1.2.1 [INFO] [stderr] Checking toml v0.8.23 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking tower v0.5.3 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Checking h2 v0.4.13 [INFO] [stderr] Checking tower-http v0.6.8 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Checking hyper-util v0.1.20 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking reqwest v0.12.28 [INFO] [stderr] Checking anyrepair v0.2.0 [INFO] [stderr] Checking phprs v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/php/output.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | /// Output buffer stack (thread-local to avoid races between parallel tests) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Op` [INFO] [stdout] --> src/engine/compile/tests.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::engine::vm::{Op, Opcode}; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::engine::string::string_init` [INFO] [stdout] --> src/engine/operators.rs:167:9 [INFO] [stdout] | [INFO] [stdout] 167 | use crate::engine::string::string_init; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/php/output.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | /// Output buffer stack (thread-local to avoid races between parallel tests) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SapiHeader` [INFO] [stdout] --> src/php/sapi/tests.rs:4:69 [INFO] [stdout] | [INFO] [stdout] 4 | php_cli_shutdown, php_cli_startup, sapi_shutdown, sapi_startup, SapiHeader, SapiModule, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PhpType`, `PhpValue`, and `Val` [INFO] [stdout] --> src/php/variables/tests.rs:6:38 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::engine::types::{PhpArray, PhpType, PhpValue, Val}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `engine::alloc::pemalloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/engine/alloc.rs:82:16 [INFO] [stdout] | [INFO] [stdout] 82 | return pemalloc(new_size, persistent); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/engine/alloc.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 80 | pub unsafe fn perealloc(ptr: *mut u8, new_size: usize, persistent: bool) -> *mut u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `engine::alloc::pemalloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/engine/alloc.rs:87:19 [INFO] [stdout] | [INFO] [stdout] 87 | let new_ptr = pemalloc(new_size, persistent); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `engine::alloc::pefree` is unsafe and requires unsafe block [INFO] [stdout] --> src/engine/alloc.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | pefree(ptr, persistent); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/engine/gc.rs:64:24 [INFO] [stdout] | [INFO] [stdout] 64 | let refcount = (*ref_).gc.refcount.load(Ordering::Acquire); [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/engine/gc.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | pub unsafe fn add_possible_root(&mut self, ref_: *mut Refcounted) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_peak` [INFO] [stdout] --> src/engine/alloc/tests.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let initial_peak = get_peak_memory_usage(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_peak` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `engine::alloc::pemalloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/engine/alloc.rs:82:16 [INFO] [stdout] | [INFO] [stdout] 82 | return pemalloc(new_size, persistent); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/engine/alloc.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 80 | pub unsafe fn perealloc(ptr: *mut u8, new_size: usize, persistent: bool) -> *mut u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `engine::alloc::pemalloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/engine/alloc.rs:87:19 [INFO] [stdout] | [INFO] [stdout] 87 | let new_ptr = pemalloc(new_size, persistent); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `engine::alloc::pefree` is unsafe and requires unsafe block [INFO] [stdout] --> src/engine/alloc.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | pefree(ptr, persistent); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HT_MIN_SIZE` is never used [INFO] [stdout] --> src/engine/hash.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const HT_MIN_SIZE: u32 = 8; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HT_INVALID_IDX` is never used [INFO] [stdout] --> src/engine/hash.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const HT_INVALID_IDX: u32 = 0xFFFFFFFF; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_check_size` is never used [INFO] [stdout] --> src/engine/hash.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn hash_check_size(n_size: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `skip_whitespace` is never used [INFO] [stdout] --> src/engine/lexer/readers.rs:112:8 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn skip_whitespace(input: &[u8], position: &mut usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PhpType`, `PhpValue`, and `Val` [INFO] [stdout] --> tests/php_examples.rs:6:39 [INFO] [stdout] | [INFO] [stdout] 6 | use phprs::engine::types::{PhpResult, PhpType, PhpValue, Val}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expected` [INFO] [stdout] --> tests/comprehensive_tests.rs:74:21 [INFO] [stdout] | [INFO] [stdout] 74 | for (input, expected) in &test_cases { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expected` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_execute_op_array` is never used [INFO] [stdout] --> tests/php_examples.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn test_execute_op_array(op_array: &OpArray) -> PhpResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> tests/error_handling.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | assert!(count >= 0); // At minimum, errors should be reported [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> tests/error_handling.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | assert!(count >= 0); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/engine/gc/tests.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let mut gc = Gc::new(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/engine/gc.rs:64:24 [INFO] [stdout] | [INFO] [stdout] 64 | let refcount = (*ref_).gc.refcount.load(Ordering::Acquire); [INFO] [stdout] | ^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/engine/gc.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | pub unsafe fn add_possible_root(&mut self, ref_: *mut Refcounted) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> src/engine/types/tests.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let s2 = PhpString::new("test", false); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HT_MIN_SIZE` is never used [INFO] [stdout] --> src/engine/hash.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const HT_MIN_SIZE: u32 = 8; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HT_INVALID_IDX` is never used [INFO] [stdout] --> src/engine/hash.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const HT_INVALID_IDX: u32 = 0xFFFFFFFF; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_check_size` is never used [INFO] [stdout] --> src/engine/hash.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn hash_check_size(n_size: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/engine/gc/tests.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | assert!(stats.root_count >= 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/engine/gc/tests.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | assert!(stats.collected >= 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/engine/types/tests.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | assert!(s1.h >= 0); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 39.63s [INFO] running `Command { std: "docker" "inspect" "922ed2ac5fedc8f24e213fc25c4251160c2d5a0423c0c6e208227099486fd817", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "922ed2ac5fedc8f24e213fc25c4251160c2d5a0423c0c6e208227099486fd817", kill_on_drop: false }` [INFO] [stdout] 922ed2ac5fedc8f24e213fc25c4251160c2d5a0423c0c6e208227099486fd817