Skip to content

Rollup of 15 pull requests #142397

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

Closed
wants to merge 36 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
8bbc080
Added `Clone` implementation for `ChunkBy`
nwoods-cimpress Mar 4, 2025
e48617f
Changing #[stable] tag
nwoods-cimpress Mar 6, 2025
6a5bad3
resolve: Tweak `private_macro_use` lint to be compatible with upcomin…
petrochenkov Jun 2, 2025
c0851d7
Update ABI compatibility docs about null-pointer-optimized enums.
zachs18 Jun 3, 2025
2cfd494
docs: autogenerate compiler flag stubs based on -Zhelp
rmehri01 Jun 7, 2025
ff8b11e
assert in release in ast_lowering::item
workingjubilee Jun 9, 2025
dd78c95
assert more often in release in ast_lowering
workingjubilee Jun 9, 2025
6cea550
tests: Minicore `extern "gpu-kernel"` feature test
workingjubilee Jun 1, 2025
5906998
tests: Copy dont-shuffle-bswaps per tested opt level
workingjubilee Jun 7, 2025
6b0deb2
tests: Revise dont-shuffle-bswaps-opt3 per tested arch
workingjubilee Jun 7, 2025
de8a91b
Add supported asm types for LoongArch32
heiher Jun 9, 2025
2095211
core docs: improve clarity of considerations about atomic CAS operations
fu5ha Jun 10, 2025
d8f053b
Fix a missing fragment specifier in rustdoc tests
tgross35 Jul 31, 2024
1dc388b
Make `missing_fragment_specifier` an unconditional error
tgross35 Jul 31, 2024
30f3725
bump apfloat dependency
RalfJung Jun 11, 2025
2a10f12
miri: add flag to suppress float non-determinism
RalfJung Jun 11, 2025
f5d24e9
miri: we can use apfloat's mul_add now
RalfJung Jun 11, 2025
86493f7
compiler: Avoid reporting unsupported_calling_conventions in deps
workingjubilee Jun 11, 2025
457a4c4
Update dependencies in `library/Cargo.lock`
tgross35 Jun 10, 2025
8f0c09a
tests: Bless for weaker unsupported_calling_conventions
workingjubilee Jun 11, 2025
22de67f
add `extern "custom"` functions
folkertdev May 7, 2025
e477409
Rollup merge of #128425 - tgross35:missing-fragment-specifier-uncondi…
workingjubilee Jun 12, 2025
8b0e22d
Rollup merge of #138016 - nwoods-cimpress:slice_chunkby_clone, r=dtolnay
workingjubilee Jun 12, 2025
5ab24d2
Rollup merge of #140770 - folkertdev:custom-abi, r=tgross35
workingjubilee Jun 12, 2025
400da51
Rollup merge of #141934 - petrochenkov:privmacuse, r=compiler-errors
workingjubilee Jun 12, 2025
b0eea5e
Rollup merge of #141947 - zachs18:patch-4, r=workingjubilee,traviscross
workingjubilee Jun 12, 2025
8aa72bf
Rollup merge of #142135 - rmehri01:gen-compiler-flags, r=compiler-errors
workingjubilee Jun 12, 2025
7b89fff
Rollup merge of #142176 - workingjubilee:dont-shuffle-bswaps-per-arch…
workingjubilee Jun 12, 2025
b6bed38
Rollup merge of #142248 - heiher:loong32-asm-types, r=Amanieu
workingjubilee Jun 12, 2025
36a5613
Rollup merge of #142252 - fu5ha:doc-cas-ops, r=ibraheemdev
workingjubilee Jun 12, 2025
9c9121e
Rollup merge of #142267 - workingjubilee:debug-assert-less-in-ast-low…
workingjubilee Jun 12, 2025
6881d17
Rollup merge of #142273 - workingjubilee:rework-gpu-kernel-feature-ga…
workingjubilee Jun 12, 2025
23d1247
Rollup merge of #142276 - tgross35:update-library-lockfile, r=Mark-Si…
workingjubilee Jun 12, 2025
9bb512b
Rollup merge of #142337 - RalfJung:miri-float-nondet, r=oli-obk
workingjubilee Jun 12, 2025
dee5fb1
Rollup merge of #142340 - RalfJung:miri-apfloat-mul-add, r=oli-obk
workingjubilee Jun 12, 2025
6400925
Rollup merge of #142353 - workingjubilee:warn-less-about-cdecl-and-ot…
workingjubilee Jun 12, 2025
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
Prev Previous commit
Next Next commit
Update ABI compatibility docs about null-pointer-optimized enums.
Add that the enum must be `#[repr(Rust)]` and not `#[repr(packed)]` or `#[repr(align)]` in order to be ABI-compatible with its null-pointer-optimized field.
  • Loading branch information
zachs18 committed Jun 3, 2025
commit c0851d76c95723b25712eb418b4c728b2980c60c
3 changes: 3 additions & 0 deletions library/core/src/primitive_docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1833,6 +1833,8 @@ mod prim_ref {}
/// - If `T` is guaranteed to be subject to the [null pointer
/// optimization](option/index.html#representation), and `E` is an enum satisfying the following
/// requirements, then `T` and `E` are ABI-compatible. Such an enum `E` is called "option-like".
/// - The enum `E` uses the [`Rust` representation], and is not modified by the `align` or
/// `packed` representation modifiers.
/// - The enum `E` has exactly two variants.
/// - One variant has exactly one field, of type `T`.
/// - All fields of the other variant are zero-sized with 1-byte alignment.
Expand Down Expand Up @@ -1906,6 +1908,7 @@ mod prim_ref {}
/// [`Pointer`]: fmt::Pointer
/// [`UnwindSafe`]: panic::UnwindSafe
/// [`RefUnwindSafe`]: panic::RefUnwindSafe
/// [`Rust` representation]: <https://doc.rust-lang.org/reference/type-layout.html#the-rust-representation>
///
/// In addition, all *safe* function pointers implement [`Fn`], [`FnMut`], and [`FnOnce`], because
/// these traits are specially known to the compiler.
Expand Down
Loading