Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Can't compile desktop on Linux due to tendril #428

@skorobogatydmitry

Description

@skorobogatydmitry

I'm getting the following when I try to compile the latest desktop:

error[E0793]: reference to packed field is unaligned
    --> ~/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tendril-0.4.1/src/tendril.rs:1028:23
     |
1028 |         let content = &mut (*self.header()).refcount;
     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     |
     = note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
     = note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
     = help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)

The repository looks abandoned: https://github.com/servo/tendril.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions