Skip to content

Rollup of 8 pull requests #127614

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Jul 12, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
2df4f7d
Suggest borrowing on fn argument that is `impl AsRef`
estebank May 2, 2024
45ad522
Don't mark `DEBUG_EVENT` struct as `repr(packed)`
tbu- Jul 10, 2024
0065763
core: Limit remaining f16 doctests to x86_64 linux
uweigand Jul 10, 2024
df72e47
Make sure that labels are defined after the primary span in diagnostics
compiler-errors Jul 10, 2024
12ae282
Fix diagnostic and add a test for it
compiler-errors Jul 10, 2024
27d5db1
Allows `#[diagnostic::do_not_recommend]` to supress trait impls in su…
weiznich Jul 11, 2024
ab56fe2
Rename `lazy_cell_consume` to `lazy_cell_into_inner`
tgross35 Jul 11, 2024
a01f49e
check is_ident before parse_ident
trevyn Jul 11, 2024
8a50bcb
Remove extern "wasm" ABI
nikic Jul 10, 2024
8de487f
Rollup merge of #124599 - estebank:issue-41708, r=wesleywiser
matthiaskrgr Jul 11, 2024
6fd9555
Rollup merge of #127572 - tbu-:pr_debug_event_nonpacked, r=jhpratt
matthiaskrgr Jul 11, 2024
380c787
Rollup merge of #127588 - uweigand:s390x-f16-doctests, r=tgross35
matthiaskrgr Jul 11, 2024
73c500b
Rollup merge of #127591 - compiler-errors:label-after-primary, r=lcnr
matthiaskrgr Jul 11, 2024
a10b4d1
Rollup merge of #127598 - weiznich:diagnostic_do_not_recommend_also_s…
matthiaskrgr Jul 11, 2024
47ab866
Rollup merge of #127599 - tgross35:lazy_cell_consume-rename, r=workin…
matthiaskrgr Jul 11, 2024
d433f17
Rollup merge of #127601 - trevyn:issue-127600, r=compiler-errors
matthiaskrgr Jul 11, 2024
fa3ce50
Rollup merge of #127605 - nikic:remove-extern-wasm, r=oli-obk
matthiaskrgr Jul 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions library/core/src/cell/lazy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ impl<T, F: FnOnce() -> T> LazyCell<T, F> {
/// # Examples
///
/// ```
/// #![feature(lazy_cell_consume)]
/// #![feature(lazy_cell_into_inner)]
///
/// use std::cell::LazyCell;
///
Expand All @@ -78,7 +78,7 @@ impl<T, F: FnOnce() -> T> LazyCell<T, F> {
/// assert_eq!(&*lazy, "HELLO, WORLD!");
/// assert_eq!(LazyCell::into_inner(lazy).ok(), Some("HELLO, WORLD!".to_string()));
/// ```
#[unstable(feature = "lazy_cell_consume", issue = "125623")]
#[unstable(feature = "lazy_cell_into_inner", issue = "125623")]
pub fn into_inner(this: Self) -> Result<T, F> {
match this.state.into_inner() {
State::Init(data) => Ok(data),
Expand Down
4 changes: 2 additions & 2 deletions library/std/src/sync/lazy_lock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ impl<T, F: FnOnce() -> T> LazyLock<T, F> {
/// # Examples
///
/// ```
/// #![feature(lazy_cell_consume)]
/// #![feature(lazy_cell_into_inner)]
///
/// use std::sync::LazyLock;
///
Expand All @@ -118,7 +118,7 @@ impl<T, F: FnOnce() -> T> LazyLock<T, F> {
/// assert_eq!(&*lazy, "HELLO, WORLD!");
/// assert_eq!(LazyLock::into_inner(lazy).ok(), Some("HELLO, WORLD!".to_string()));
/// ```
#[unstable(feature = "lazy_cell_consume", issue = "125623")]
#[unstable(feature = "lazy_cell_into_inner", issue = "125623")]
pub fn into_inner(mut this: Self) -> Result<T, F> {
let state = this.once.state();
match state {
Expand Down