Skip to content

For Token::new_unchecked, use target_feature(enable = ) attributes#223

Open
DJMcNab wants to merge 3 commits into
linebender:mainfrom
DJMcNab:explicit-target-features
Open

For Token::new_unchecked, use target_feature(enable = ) attributes#223
DJMcNab wants to merge 3 commits into
linebender:mainfrom
DJMcNab:explicit-target-features

Conversation

@DJMcNab
Copy link
Copy Markdown
Member

@DJMcNab DJMcNab commented May 20, 2026

This removes some instances of unsafe for having target features enabled. It also allows the use of target features 1.1 to transfer into Fearless SIMD safely.

A few unanswered questions:

  • Should we rename new_unchecked to new?
  • Does it even make sense for these to be const?
  • Does this prevent inlining of these functions?

@DJMcNab
Copy link
Copy Markdown
Member Author

DJMcNab commented May 20, 2026

Current state: I'd claim that the clippy failure is a clippy bug, but I might be able to gut check with Ralf at some point this week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant