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

Fix build on nightly #299

Merged
merged 2 commits into from
Dec 27, 2024
Merged

Fix build on nightly #299

merged 2 commits into from
Dec 27, 2024

Conversation

tamird
Copy link
Contributor

@tamird tamird commented Dec 27, 2024

The ecosystem has largely moved from the former to the latter.
@tamird tamird force-pushed the fix-nightly branch 4 times, most recently from 6f32e5a to 5e84380 Compare December 27, 2024 15:48
@tamird tamird changed the title Fix build on rustc >= 1.85 Fix build on nightly Dec 27, 2024
@Manishearth
Copy link
Owner

rustc-nightly-feature CI still fails

@Manishearth Manishearth merged commit b388262 into Manishearth:master Dec 27, 2024
6 of 8 checks passed
@Manishearth
Copy link
Owner

Still in favor of moving off of lazy-static, so that's fine. Can we not use once_cell from the stdlib?

@tamird
Copy link
Contributor Author

tamird commented Dec 27, 2024

Probably - I wasn't sure about MSRV. I'm working on bisecting the nightly linking failure.

@tamird tamird deleted the fix-nightly branch December 27, 2024 16:52
@tamird
Copy link
Contributor Author

tamird commented Dec 27, 2024

Filed rust-lang/rust#134825 for the rustc-nightly-feature failure.

@Manishearth
Copy link
Owner

1.70 is totally fine for MSRV!

@tamird
Copy link
Contributor Author

tamird commented Dec 27, 2024

I think we'd need 1.80.0: https://doc.rust-lang.org/stable/std/sync/struct.LazyLock.html.

@Manishearth
Copy link
Owner

We can use OnceLock.

We also currently do not guarantee an MSRV anyway, but I would like to avoid bumping too much if it's unnecessary, and OnceLock works here.

@tamird
Copy link
Contributor Author

tamird commented Dec 27, 2024

#300.

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.

2 participants