Skip to content

Conditionally add stdlib APIs based on edition? #89084

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

Open
SUPERCILEX opened this issue Sep 19, 2021 · 2 comments
Open

Conditionally add stdlib APIs based on edition? #89084

SUPERCILEX opened this issue Sep 19, 2021 · 2 comments
Labels
T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.

Comments

@SUPERCILEX
Copy link
Contributor

Hi,
There's been some discussion on this thread where it seems like the best solution would be adding methods to a stdlib API, but only having them become active in a new rust edition. Is this possible?

@the8472
Copy link
Member

the8472 commented Sep 19, 2021

An extension trait could be put in the prelude, which are edition-specific since #82217

@clubby789
Copy link
Contributor

@rustbot label +T-libs-api

@rustbot rustbot added the T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. label Mar 30, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

4 participants