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

io: add track_caller caller to no-rt io driver #4852

Merged
merged 1 commit into from Jul 21, 2022

Commits on Jul 21, 2022

  1. io: add track_caller caller to no-rt io driver

    This change adds a case that was missing from the original PR, tokio-rs#4793.
    
    The `io::driver::Handle::current` function was only covered by
    `#[track_caller]` in the case that the `rt` feature  is enabled, however
    it was missing in the case that the `rt` feture isn't enabled (in which
    case a panic would be more common).
    
    This particular case cannot be tested in the tokio tests as they always
    run with all features enabled.
    
    Refs: tokio-rs#4413
    hds committed Jul 21, 2022
    Copy the full SHA
    493e5e6 View commit details
    Browse the repository at this point in the history