ITADN

error[E0308]: mismatched types on aarch64

#545Openyurivict 创建于 2026-03-25
Y
yurivictcommented
``` error[E0308]: mismatched types --> /wrkdirs/usr/ports/devel/nextest/work/nextest-cargo-nextest-0.9.130/cargo-crates/usdt-impl-0.6.0/src/no-linker.rs:168:49 | 166 | modname[i] = byte as i8; | ------- here the type of `modname` is inferred to be `[i8; 64]` 167 | } 168 | ioctl_section(&serialize_section(&section), modname) | ------------- ^^^^^^^ expected `[u8; 64]`, found `[i8; 64]` | | | arguments to this function are incorrect | = note: expected array `[u8; 64]` found array `[i8; 64]` note: function defined here --> /wrkdirs/usr/ports/devel/nextest/work/nextest-cargo-nextest-0.9.130/cargo-crates/usdt-impl-0.6.0/src/no-linker.rs:171:4 | 171 | fn ioctl_section(buf: &[u8], modname: [std::os::raw::c_char; 64]) -> Result<(), crate::Error> { | ^^^^^^^^^^^^^ ----------------------------------- ``` [log](https://pkg-status.freebsd.org/ampere2/data/main-arm64-default/pc941e5b33dea_s6580d040861/logs/nextest-0.9.130.log) FreeBSD 16
1 条评论