Skip to content

Commit 83a1076

Browse files
committed
Don't mark all fn as const
1 parent d602a26 commit 83a1076

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

vm/src/stdlib/posix.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,7 +1228,7 @@ pub mod module {
12281228
}
12291229

12301230
#[pyfunction]
1231-
const fn sync() {
1231+
fn sync() {
12321232
#[cfg(not(any(target_os = "redox", target_os = "android")))]
12331233
unsafe {
12341234
libc::sync();
@@ -1603,32 +1603,32 @@ pub mod module {
16031603
}
16041604

16051605
#[pyfunction(name = "WIFSIGNALED")]
1606-
const fn wifsignaled(status: i32) -> bool {
1606+
fn wifsignaled(status: i32) -> bool {
16071607
libc::WIFSIGNALED(status)
16081608
}
16091609

16101610
#[pyfunction(name = "WIFSTOPPED")]
1611-
const fn wifstopped(status: i32) -> bool {
1611+
fn wifstopped(status: i32) -> bool {
16121612
libc::WIFSTOPPED(status)
16131613
}
16141614

16151615
#[pyfunction(name = "WIFEXITED")]
1616-
const fn wifexited(status: i32) -> bool {
1616+
fn wifexited(status: i32) -> bool {
16171617
libc::WIFEXITED(status)
16181618
}
16191619

16201620
#[pyfunction(name = "WTERMSIG")]
1621-
const fn wtermsig(status: i32) -> i32 {
1621+
fn wtermsig(status: i32) -> i32 {
16221622
libc::WTERMSIG(status)
16231623
}
16241624

16251625
#[pyfunction(name = "WSTOPSIG")]
1626-
const fn wstopsig(status: i32) -> i32 {
1626+
fn wstopsig(status: i32) -> i32 {
16271627
libc::WSTOPSIG(status)
16281628
}
16291629

16301630
#[pyfunction(name = "WEXITSTATUS")]
1631-
const fn wexitstatus(status: i32) -> i32 {
1631+
fn wexitstatus(status: i32) -> i32 {
16321632
libc::WEXITSTATUS(status)
16331633
}
16341634

0 commit comments

Comments
 (0)