Skip to content

Conversation

@tisonkun
Copy link
Collaborator

This refers to #77

@tisonkun tisonkun merged commit 5e1015f into main Nov 25, 2025
9 checks passed
@tisonkun tisonkun deleted the impl-traits branch November 25, 2025 07:30
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Nov 25, 2025
…yukang

Simplify OnceCell Clone impl

Noticed when developing fast/mea#79.

This may also apply to `OnceLock`. But unfortunately, we can't construct a completed `Once` beforehand.

Note that `OnceCell::from` is marked as [`rustc_const_unstable`](rust-lang#143773) so we don't need an extra `const fn from_value` to leverage possible const convert benefit.
rust-timer added a commit to rust-lang/rust that referenced this pull request Nov 25, 2025
Rollup merge of #149305 - tisonkun:oncecell-simplify, r=chenyukang

Simplify OnceCell Clone impl

Noticed when developing fast/mea#79.

This may also apply to `OnceLock`. But unfortunately, we can't construct a completed `Once` beforehand.

Note that `OnceCell::from` is marked as [`rustc_const_unstable`](#143773) so we don't need an extra `const fn from_value` to leverage possible const convert benefit.
github-actions bot pushed a commit to rust-lang/compiler-builtins that referenced this pull request Nov 27, 2025
Simplify OnceCell Clone impl

Noticed when developing fast/mea#79.

This may also apply to `OnceLock`. But unfortunately, we can't construct a completed `Once` beforehand.

Note that `OnceCell::from` is marked as [`rustc_const_unstable`](rust-lang/rust#143773) so we don't need an extra `const fn from_value` to leverage possible const convert benefit.
github-actions bot pushed a commit to model-checking/verify-rust-std that referenced this pull request Jan 19, 2026
…yukang

Simplify OnceCell Clone impl

Noticed when developing fast/mea#79.

This may also apply to `OnceLock`. But unfortunately, we can't construct a completed `Once` beforehand.

Note that `OnceCell::from` is marked as [`rustc_const_unstable`](rust-lang#143773) so we don't need an extra `const fn from_value` to leverage possible const convert benefit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants