Latest master gives error when building std for unsupported · Issue #98293 · rust-lang/rust (original) (raw)
The latest master: 4104596 gives error when trying to build std for x86_64-unknown-uefi
The error I get is the following:
error: sys_common::condvar::Condvar::new
is not yet stable as a const fn
--> /var/home/ayush/Documents/Programming/Rust/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/src/rust/library/std/src/sync/condvar.rs:129:26
|
129 | Condvar { inner: sys::Condvar::new() }
| ^^^^^^^^^^^^^^^^^^^
|
= help: const-stable functions can only call other const-stable functions
error: sys_common::mutex::MovableMutex::new
is not yet stable as a const fn
--> /var/home/ayush/Documents/Programming/Rust/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/src/rust/library/std/src/sync/mutex.rs:220:20
|
220 | inner: sys::MovableMutex::new(),
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: const-stable functions can only call other const-stable functions
error: sys_common::rwlock::MovableRwLock::new
is not yet stable as a const fn
--> /var/home/ayush/Documents/Programming/Rust/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/src/rust/library/std/src/sync/rwlock.rs:153:20
|
153 | inner: sys::MovableRwLock::new(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: const-stable functions can only call other const-stable functions
error: could not compile std
due to 3 previous errors
I am currently working on porting Rust std to UEFI. Previously was using a week-old master and decided to rebase today. However, not sure how to fix this error which showed up after rebase.
After looking at previous commits, the culprit seems to be edae495