Skip to content

stdarch-gen-arm: remove lazy_static, use LazyLock instead #1868

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

Merged
merged 1 commit into from
Jul 12, 2025

Conversation

folkertdev
Copy link
Contributor

No description provided.

@rustbot
Copy link
Collaborator

rustbot commented Jul 11, 2025

r? @sayantn

rustbot has assigned @sayantn.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

static ref MANUAL_TESTS: String = format!(
"#[simd_test(enable = \"sve\")]
unsafe fn test_ffr() {{
static MANUAL_TESTS: &str = "#[simd_test(enable = \"sve\")]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this just be a const?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah actually. I'm normally a bit worried about const's getting inlined but this is a string and it's used just once so it should be OK.

@folkertdev folkertdev force-pushed the gen-arm-remove-lazy-static branch from 85a8395 to f0c7fcf Compare July 11, 2025 23:02
@folkertdev folkertdev enabled auto-merge July 11, 2025 23:04
@folkertdev folkertdev added this pull request to the merge queue Jul 11, 2025
Merged via the queue into rust-lang:master with commit 9430936 Jul 12, 2025
62 checks passed
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.

4 participants