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

On docs.rs, ‘time::pause’ and ‘time::resume’ no longer state requirement on feature test-util #6495

Closed
glts opened this issue Apr 18, 2024 · 1 comment · Fixed by #6503
Labels
A-tokio Area: The main tokio crate C-bug Category: This is a bug. E-help-wanted Call for participation: Help is requested to fix this issue. M-time Module: tokio/time T-docs Topic: documentation

Comments

@glts
Copy link

glts commented Apr 18, 2024

Version
tokio 1.37.0

Description
Please compare docs.rs documentation for tokio::time::pause.

In Tokio 1.35.0 it says:

Available on crate features time and test-util only.

In Tokio 1.35.1 and following it says:

Available on crate feature time only.

But feature test-util is still required for functions pause and resume. In other words, this seems to be a regression in documentation.

@glts glts added A-tokio Area: The main tokio crate C-bug Category: This is a bug. labels Apr 18, 2024
@Darksonn Darksonn added T-docs Topic: documentation M-time Module: tokio/time labels Apr 18, 2024
@Darksonn
Copy link
Contributor

Thank you for reporting this. Something must have changed in how the compiler infers this information.

@Darksonn Darksonn added the E-help-wanted Call for participation: Help is requested to fix this issue. label Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate C-bug Category: This is a bug. E-help-wanted Call for participation: Help is requested to fix this issue. M-time Module: tokio/time T-docs Topic: documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants