Skip to content

warning: struct SensibleMoveMask is never constructed #194

@ermakov0

Description

@ermakov0

aarch64:

 75s warning: struct `SensibleMoveMask` is never constructed
 75s    --> /usr/share/cargo/registry/memchr-2.7.5/src/vector.rs:118:19
 75s     |
 75s 118 | pub(crate) struct SensibleMoveMask(u32);
 75s     |                   ^^^^^^^^^^^^^^^^
 75s     |
 75s     = note: `#[warn(dead_code)]` on by default
 75s 
 75s warning: method `get_for_offset` is never used
 75s    --> /usr/share/cargo/registry/memchr-2.7.5/src/vector.rs:126:8
 75s     |
 75s 120 | impl SensibleMoveMask {
 75s     | --------------------- method in this implementation
 75s ...
 75s 126 |     fn get_for_offset(self) -> u32 {
 75s     |        ^^^^^^^^^^^^^^
 75s 
 75s warning: `memchr` (lib) generated 2 warnings

https://github.com/BurntSushi/memchr/blob/master/src/vector.rs#L110-L192

It seems that this structure is only used for the following architectures:

#[cfg(target_arch = "x86_64")]
#[cfg(all(target_arch = "wasm32", target_feature = "simd128"))]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions