]> git.lizzy.rs Git - rust.git/commit - compiler/rustc_codegen_cranelift/src/abi/comments.rs
Auto merge of #98457 - japaric:gh98378, r=m-ou-se
authorbors <bors@rust-lang.org>
Sun, 25 Sep 2022 04:12:30 +0000 (04:12 +0000)
committerbors <bors@rust-lang.org>
Sun, 25 Sep 2022 04:12:30 +0000 (04:12 +0000)
commite20fabb0d04cb25fe3159d58920856533f1b5cf0
treede03c67751cd45a374d9acc81832cf8c37fd019f
parente58621a4a30db1ae7fcc041e108042c1ce14d3bd
parent513eda0f7bd1461fab01d7c26eb2ecfa364420cd
Auto merge of #98457 - japaric:gh98378, r=m-ou-se

make Condvar, Mutex, RwLock const constructors work with the `unsupported` impl

applying this patch locally to the `rust-src` component fixes #98378

however, the solution seems wrong to me because PR #97791 didn't add any `rustc_const_stable` attribute to underlying implementations like `std::sys::unix::futex`, so I must be missing something about how const-stability is checked ... maybe the `restricted_std` feature (gate?) has an effect?

fixes #98378
fixes #98293 (probably)
library/std/src/sys/unsupported/locks/mutex.rs
library/std/src/sys_common/rwlock.rs