Skip to content

error[E0308]: mismatched types on aarch64 #545

@yurivict

Description

@yurivict
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

FreeBSD 16

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions