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

examples: Import align_of() from mem to build on on MSRV < 1.80 #955

Merged
merged 1 commit into from
Oct 16, 2024

Commits on Oct 15, 2024

  1. examples: Import align_of() from mem to build on on MSRV < 1.80

    In #931 we worked around "unnecessary import" warnings for the
    `size_of(_val)()` functions being added to the prelude in Rust 1.80
    while maintaining some form of MSRV back-compatibility (despite not
    testing the examples against this), but forgot about `align_of()`.
    This means the examples still build on Rust 1.80 or higher because
    `align_of()` is always in scope via the prelude there, but not on older
    compilers.  Fix this by adding it to the import that's tagged to be
    removed when we bump all of `ash` to MSRV 1.80.
    MarijnS95 committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    68539b3 View commit details
    Browse the repository at this point in the history