Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use casts instead of transmute #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Mar 23, 2022

  1. Use casts instead of transmute

    This commit also replaces `.get_unchecked(0)` with `.as_ptr()` (when
    casting slice to typed object), which makes MIRI slightly happier (in
    previous approach, the pointer was valid only for the first byte) – in
    fact, it now passes tests with following flags:
    
        env MIRIFLAGS='-Zmiri-disable-alignment-check -Zmiri-disable-validation -Zmiri-tag-raw-pointers' \
            cargo miri test
    krdln committed Mar 23, 2022
    Configuration menu
    Copy the full SHA
    0f02474 View commit details
    Browse the repository at this point in the history