Skip to content

Leverage target_feature 1.1 #1255

@lu-zero

Description

@lu-zero

target_feature 1.1 should ease implementing some SIMD code.

  • safe #[target_feature] functions can be called without an unsafe {} block only from functions that have at least the exact same set of #[target_feature]s. Calling them from other contexts (other functions, static variable initializers, etc.) requires opening an unsafe {} even though they are not marked as unsafe
  • safe #[target_feature] functions are not assignable to safe fn pointers.

This issue is a tracker to know when we'll be able to use it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions