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

Test for drains that shift the tail, when inline #271

Merged
merged 1 commit into from Jan 3, 2022

Commits on Jan 3, 2022

  1. Test for drains that shift the tail, when inline

    Previously, the test suite only had one trip through the tail-shifting
    code in Drain::drop, and that is in the heap state.
    In the current implementation, a tail-shifting drain while in the inline
    state produces potentially dangerous aliasing which is currently
    accepted by default Miri and rejected with -Ztrack-raw-pointers.
    
    Adding this test case ensures that if this ever becomes an actual
    problem it will be easy to find.
    saethlin committed Jan 3, 2022
    Copy the full SHA
    0fced9d View commit details
    Browse the repository at this point in the history