Skip to content

Rollup of 11 pull requests #143582

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 31 commits into from
Jul 7, 2025
Merged
Changes from 2 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
12bc409
Get rid of build-powerpc64le-toolchain.sh
Gelbpunkt Jul 4, 2025
57d989b
Fixed the ABI parameter inconsistency issue in debug.rs for the riscv…
YingkaiLi-VM Jun 3, 2025
64bec0f
Fix tests/ui/abi/debug.rs to cross-compile for riscv64
workingjubilee Jul 5, 2025
db0b491
Fix short linker error output
ia0 Jul 5, 2025
c42a9ac
move `stable_mir` back to its own crate and move `rustc_internal` to …
makai410 Jul 5, 2025
7775166
interpret: rename StackPopCleanup
RalfJung Jul 6, 2025
4bdd671
Update run-make test
ia0 Jul 6, 2025
a40274d
Dont resolve instance of root in mir_callgraph_cyclic
compiler-errors Jul 6, 2025
627cefa
remove `rustc_smir` from tests
makai410 Jul 6, 2025
8d5eb6b
mbe: Simplify compile_declarative_macro by factoring out some variables
joshtriplett Jul 6, 2025
87cd178
mbe: Factor out a helper to check an LHS
joshtriplett Jul 6, 2025
493cdf2
mbe: Factor out a helper to check for unexpected EOF in definition
joshtriplett Jul 6, 2025
ef0465a
mbe: Clarify comments about error handling in `compile_declarative_ma…
joshtriplett Jul 7, 2025
22342b0
doc(std): clarify `NonZero<T>` usage limitation in doc comment
xizheyin Jun 28, 2025
cdbdd8a
Reverse comparison order
ia0 Jul 7, 2025
2765bd4
std: fix typo in `std::path`
xizheyin Jul 7, 2025
1eff043
rustc_codegen_llvm: Remove reference to non-existing `no_landing_pads()`
Enselic Jul 7, 2025
aa364ca
compiler: Deduplicate `must_emit_unwind_tables()` comments
Enselic Jul 7, 2025
9adbf62
Disable download-rustc for library profile
Noratrieb Jul 7, 2025
979d7b2
Add change tracker entry for disabling `download-rustc` temporarily
jieyouxu Jul 7, 2025
0742569
Rollup merge of #143130 - xizheyin:142966, r=ibraheemdev
jieyouxu Jul 7, 2025
9c6ef43
Rollup merge of #143415 - Gelbpunkt:cleanup-dist-ppc64le-toolchain, r…
jieyouxu Jul 7, 2025
fc13c96
Rollup merge of #143464 - workingjubilee:make-debug-rs-cross-compile,…
jieyouxu Jul 7, 2025
4ba4b5f
Rollup merge of #143482 - ia0:fix, r=fee1-dead
jieyouxu Jul 7, 2025
02aa4ff
Rollup merge of #143524 - makai410:smir-move-back, r=oli-obk
jieyouxu Jul 7, 2025
eed5594
Rollup merge of #143528 - RalfJung:stack-pop-cleanup, r=oli-obk
jieyouxu Jul 7, 2025
b6015a6
Rollup merge of #143551 - compiler-errors:root-sub, r=cjgillot
jieyouxu Jul 7, 2025
4be8c49
Rollup merge of #143558 - joshtriplett:mbe-refactors, r=SparrowLii
jieyouxu Jul 7, 2025
e366f16
Rollup merge of #143563 - xizheyin:fix-typo, r=joshtriplett
jieyouxu Jul 7, 2025
0938cb7
Rollup merge of #143564 - Enselic:must_emit_unwind_tables-comment, r=…
jieyouxu Jul 7, 2025
364dbd6
Rollup merge of #143577 - Noratrieb:Noratrieb-patch-4, r=Kobzol
jieyouxu Jul 7, 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
9 changes: 9 additions & 0 deletions library/core/src/num/nonzero.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,15 @@ impl_zeroable_primitive!(
/// ```
///
/// [null pointer optimization]: crate::option#representation
///
/// # Note on generic usage
///
/// `NonZero<T>` can only be used with some standard library primitive types
/// (such as `u8`, `i32`, and etc.). The type parameter `T` must implement the
/// internal trait [`ZeroablePrimitive`], which is currently permanently unstable
/// and cannot be implemented by users. Therefore, you cannot use `NonZero<T>`
/// with your own types, nor can you implement traits for all `NonZero<T>`,
/// only for concrete types.
#[stable(feature = "generic_nonzero", since = "1.79.0")]
#[repr(transparent)]
#[rustc_nonnull_optimization_guaranteed]
Expand Down