Deprecate ONCE_INIT in future 1.38 release#61757
Conversation
|
r? @bluss (rust_highfive has picked a reviewer for you, use r? to override) |
|
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
8af4bc6 to
c0e0198
Compare
|
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
|
r=me w/ ci passing |
c0e0198 to
d5df2a8
Compare
|
@bors r=alexcrichton |
|
📌 Commit d5df2a8 has been approved by |
…xcrichton Deprecate ONCE_INIT Once::new() has been a stable const fn for a while now. Closes rust-lang#61746
|
Failed in #61783 (comment), @bors r- |
Once::new() has been a stable const fn for a while now. Closes rust-lang#61746
d5df2a8 to
72e99f5
Compare
|
I pushed the deprecation out one more release to avoid bootstrapping issues with clippy and cargo. @bors r=alexcrichton |
|
📌 Commit 72e99f5 has been approved by |
…xcrichton Deprecate ONCE_INIT in future 1.38 release Once::new() has been a stable const fn for a while now. Closes rust-lang#61746
Rollup of 5 pull requests Successful merges: - #61598 (Handle index out of bound errors during const eval without panic) - #61720 (std: Remove internal definitions of `cfg_if!` macro) - #61757 (Deprecate ONCE_INIT in future 1.38 release) - #61766 (submodules: update clippy from c0dbd34 to bd33a97) - #61791 (Small cleanup in `check_pat_path`) Failed merges: r? @ghost
Deprecated ONCE_INIT in favor of Once::new() cc rust-lang/rust#61757
1. Separate Snapshot and Script StartupData functions based on cfg "no-snapshot-init" 2. Replace deprecated Once::ONCE_INIT with Once::new (rust-lang/rust#61757) 3. Elide lifetime 4. Fix typos
1. Separate Snapshot and Script StartupData functions based on cfg "no-snapshot-init" 2. Replace deprecated Once::ONCE_INIT with Once::new (rust-lang/rust#61757) 3. Elide lifetime 4. Fix typos
Once::new() has been a stable const fn for a while now.
Closes #61746