]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #103193 - krasimirgg:sysonce, r=Amanieu
authorManish Goregaokar <manishsmail@gmail.com>
Tue, 22 Nov 2022 06:26:07 +0000 (01:26 -0500)
committerGitHub <noreply@github.com>
Tue, 22 Nov 2022 06:26:07 +0000 (01:26 -0500)
commit3683c43a0577df9d4197b619ae788b5f4ea5d1f2
tree61eb79fb6352f295e99738b72dda38b67523523a
parent1625435fa40005084d9cc8d5cf0ab116e8592d97
parentdf5d035f5199eab85dac327cbbd30a3ddfe29abd
Rollup merge of #103193 - krasimirgg:sysonce, r=Amanieu

mark sys_common::once::generic::Once::new const-stable

Attempt to address https://github.com/rust-lang/rust/issues/103191 by marking the impl const-stable.
Picked the declaration from the callsite:
https://github.com/rust-lang/rust/blob/21b246587c2687935bd6004ffa5dcc4f4dd6600d/library/std/src/sync/once.rs#L67

This is similar to https://github.com/rust-lang/rust/pull/98457.

With this in, `python3 x.py build library/std --target x86_64-unknown-none` succeeds.