Skip to content

Heads up for target_feature_11 #4228

@ehuss

Description

@ehuss

Just wanted to give you a heads up that there may be a not entirely obvious change in Rust 1.86. The target_feature_11 change adds a new ability for Unsafe superpowers, which is to call safe functions with target features the caller function itself does not enable (particularly applicable to main or anything called from it, since main cannot have target features).

Previously it was required that these functions always be unsafe, but now they can be safe and be called safely if the caller enables the same features.

There's more information in rust-lang/reference#1720 and rust-lang/rust#134090.

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