Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

remove conditional compilation around using core #1534

Merged
merged 1 commit into from
Nov 22, 2024
Merged

remove conditional compilation around using core #1534

merged 1 commit into from
Nov 22, 2024

Conversation

ComputerDruid
Copy link
Contributor

Summary

Minor simplification

Motivation

Makes things cleaner; probably makes code completion in editors know what's actually in code

Details

I tested this with 1.61 locally and it seems to work fine. I wasn't able to quickly figure out which rust version stabilized using core from anywhere though. Probably sometime around 2018 edition, I'd guess

Copy link
Member

@dhardy dhardy left a comment

Choose a reason for hiding this comment

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

Well, alloc was stabilised in 1.36.0. I don't recall, but old enough that we don't need to worry (these use statements appear in c9f4e2b).

@dhardy dhardy merged commit 4807e26 into rust-random:master Nov 22, 2024
15 checks passed
@ComputerDruid ComputerDruid deleted the use_core branch November 22, 2024 19:54
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants