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

Make {Mutex, Notify, OnceCell, RwLock, Semaphore}::const_new always available #5885

Merged
merged 1 commit into from
Jul 28, 2023

Commits on Jul 28, 2023

  1. Make {Mutex, Notify, OnceCell, RwLock, Semaphore}::const_new always…

    … available
    
    Since MSRV is bumped to 1.63, `Mutex::new` is now usable in const context.
    
    Also use `assert!` in const function to ensure correctness instead of
    silently truncating the value and remove cfg `tokio_no_const_mutex_new`.
    
    Signed-off-by: Jiahao XU <[email protected]>
    NobodyXu committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    98216ce View commit details
    Browse the repository at this point in the history