Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
10000 commits
Select commit Hold shift + click to select a range
857065f
add TrySendError::into_inner
malezjaa Nov 2, 2026
83d7e72
Implement AIX TLS destructor guard in std and update dynamic-loading-…
xingxue-ibm Oct 30, 2026
9a6861f
Rollup merge of #165331 - RalfJung:miri, r=RalfJung
JonathanBrouwer Nov 2, 2026
25ebffe
Rollup merge of #165356 - folkertdev:portable-simd-2026-11-02, r=folk…
JonathanBrouwer Nov 2, 2026
e614920
Rollup merge of #164155 - asder8215:vec_retain_unstable, r=Mark-Simul…
JonathanBrouwer Nov 2, 2026
528846c
Rollup merge of #165103 - malezjaa:try-send-error-into-inner, r=Mark-…
JonathanBrouwer Nov 2, 2026
8cc00c1
Rollup merge of #165181 - frank-king:feat/duration-display-seconds, r…
JonathanBrouwer Nov 2, 2026
d7847b8
Rollup merge of #165292 - DanielEScherzer:DropGuard-docs, r=Mark-Simu…
JonathanBrouwer Nov 2, 2026
7677f71
Implement lint helper namespace
mejrs Oct 1, 2026
b8717c2
port over `rustc_never_returns_null_ptr` to lint helper namespace
mejrs Oct 1, 2026
d254a6c
Port over `rustc_should_not_be_called_on_const_items` to lint helper …
mejrs Oct 1, 2026
e193c22
fix formatting
mejrs Nov 3, 2026
72a84b4
add move trait feature gate
jdonszelmann Nov 2, 2026
9e5eef6
kinda igore forget in rustdoc
jdonszelmann Nov 3, 2026
ed53529
Replace `builtin # field_of` with `k#field_of`
fmease Sep 3, 2026
6ee2c4f
Replace `builtin # deref` with `k#deref`
fmease Sep 3, 2026
569cc2b
Replace `builtin # offset_of` with `k#offset_of`
fmease Sep 3, 2026
1bb8a3d
Replace `builtin # type_ascribe` with `k#type_ascribe`
fmease Sep 3, 2026
d47176f
Replace `builtin # {,un}wrap_binder` with `k#{,un}wrap_binder`
fmease Sep 3, 2026
e864ec9
Rename feature `builtin_syntax` to `internal_syntax`
fmease Sep 3, 2026
8f12f2d
Rollup merge of #163393 - brad0:std_src_sys_paths_unix, r=JohnTitor
JonathanBrouwer Nov 3, 2026
334c77d
Rollup merge of #163625 - mejrs:lint_helper_namespace-, r=estebank
JonathanBrouwer Nov 3, 2026
f661017
Rollup merge of #164414 - theemathas:let_underscore_drop_guard, r=pet…
JonathanBrouwer Nov 3, 2026
e06c414
Rollup merge of #162232 - fmease:yeet-builtin-hash, r=JohnTitor
JonathanBrouwer Nov 3, 2026
f454147
Rollup merge of #164241 - yilin0518:fix_ptr_unsafe, r=JohnTitor
JonathanBrouwer Nov 3, 2026
629ed6e
Rollup merge of #164258 - folkertdev:document-vec-box-no-realloc, r=J…
JonathanBrouwer Nov 3, 2026
38aeeff
Rollup merge of #165203 - xingxue-ibm:aix-disable-test-dynamic-loadin…
JonathanBrouwer Nov 3, 2026
c24cdc8
[Outreachy] alloc: Add test coverage for try_clone_from_ref_in (Box, …
Joiejoie1 Nov 4, 2026
fe505cb
Add `Discriminant::ord`
bushrat011899 Nov 4, 2026
5904a84
Update `Discriminant::ord` Documentation
bushrat011899 Nov 4, 2026
5a4c6d4
fix shift immediate widths
folkertdev Oct 28, 2026
ab5a4be
use better test inputs
folkertdev Oct 28, 2026
f2795ea
use better inputs that don't get folded away
folkertdev Oct 28, 2026
4f968b0
use better inputs that don't get folded away
folkertdev Oct 28, 2026
f73dc28
std: Fix build for the L4Re targets
farao Nov 4, 2026
2b3a2b1
fixup docker files
folkertdev Oct 28, 2026
c683b2d
loads and stores now always use the `.d` variant
folkertdev Oct 28, 2026
715fb44
`copy_u_d` uses the signed instruction; there is no sign/zero extensi…
folkertdev Oct 28, 2026
bf73db4
clang ends up using the negated variant; fine
folkertdev Oct 28, 2026
5a70645
clang uses just an `andi.b` for `bclri_b`
folkertdev Oct 28, 2026
2ecfb2b
correct FMA test results
folkertdev Oct 28, 2026
85c89e2
run qemu with a CPU that has +msa
folkertdev Oct 28, 2026
6039c0e
work around LLVM emitting a different instruction than the intrinsic …
folkertdev Oct 28, 2026
55748e7
windows OpenOptionsExt examples: do not reference winapi crate
RalfJung Nov 3, 2026
84c933e
Add BTreeMap::allocator
whiplashvin Nov 4, 2026
133d6b2
Rollup merge of #165011 - tgross35:std_detect-updates, r=LawnGnome
JonathanBrouwer Nov 4, 2026
15e105d
Rollup merge of #165376 - jdonszelmann:forget-trait-feature-gate, r=J…
JonathanBrouwer Nov 4, 2026
7646a66
Rollup merge of #164440 - Joiejoie1:test-try-clone-from-ref-in, r=nia-e
JonathanBrouwer Nov 4, 2026
e56cc3d
Rollup merge of #165001 - whiplashvin:binary-heap-append-allocator-do…
JonathanBrouwer Nov 4, 2026
54b1ef1
Rollup merge of #165330 - valaphee:read_f16_f128, r=LawnGnome
JonathanBrouwer Nov 4, 2026
01d2cb5
Rollup merge of #165443 - bushrat011899:discriminant_ord, r=clarfonthey
JonathanBrouwer Nov 4, 2026
3926570
Fix clippy lint and add BTreeSet::allocator
whiplashvin Nov 4, 2026
9175db5
Don't "exit" using `panic` on teeos
maxdexh Nov 4, 2026
3d0f491
Deprecate internal function `vec::from_elem`
ChrisDenton Oct 20, 2026
5c1729a
Add Documentation for the `crate_type` attribute
krokodeyu Oct 18, 2026
e2989d1
nuttx: use updated pollfd definition
bkueng Sep 23, 2026
663c112
Rollup merge of #165387 - RalfJung:no-winapi, r=ChrisDenton
jhpratt Nov 5, 2026
7307b08
Rollup merge of #165456 - farao:l4re-fix-build, r=maxdexh
jhpratt Nov 5, 2026
6c6d9c4
Rollup merge of #165463 - whiplashvin:btreemap-allocator, r=maxdexh
jhpratt Nov 5, 2026
8284431
Rollup merge of #165466 - maxdexh:teeos-why-are-you-like-this, r=work…
jhpratt Nov 5, 2026
2793df8
Auto merge of #165493 - jhpratt:rollup-oLMiOqV, r=jhpratt
bors Nov 5, 2026
796220a
Update Vec::retain_unstable docs to say that this method is generally…
asder8215 Nov 4, 2026
9b8d08d
Fix warnings for the L4Re targets
farao Nov 5, 2026
708937e
feat: Implement #165545
yhx-12243 Nov 6, 2026
1c57296
remove stability attributes from intrinsics
RalfJung Nov 5, 2026
e046be4
Mention width limit in fmt doc
xbwwj Nov 3, 2026
b838cfc
use lang item instead of name when assembling builtin `Clone::clone` …
WaffleLapkin Nov 6, 2026
31f1574
Make `Literal::cstr_value` return a `CString`
GuillaumeGomez Nov 6, 2026
140b36d
also remove unnecessary rustc_intrinsic_const_stable_indirect
RalfJung Nov 6, 2026
88cc3ab
Move `trivial_field_reads` from trait to impl trait fn
tehforsch Oct 3, 2026
316cf54
Implement `FnAddr`
bschoenmaeckers Nov 3, 2026
2ceec9c
Rollup merge of #165550 - GuillaumeGomez:proc-macro-literal-api, r=pr…
Zalathar Nov 7, 2026
c4af63d
Rollup merge of #165448 - asder8215:vec_retain_unstable_docs, r=maxdexh
Zalathar Nov 7, 2026
87c9559
Rollup merge of #165512 - farao:l4re-fix-build2, r=maxdexh
Zalathar Nov 7, 2026
4be233e
feat: add ub check
yhx-12243 Nov 7, 2026
633c5b6
Feat: move trait gate
zannabianca1997 Nov 6, 2026
4999590
Fix: core doctests need the relaxed bound policy
zannabianca1997 Nov 6, 2026
dc04455
Rollup merge of #164914 - ChayimFriedman2:write_default-spec, r=JohnT…
Zalathar Nov 7, 2026
b12da54
Rollup merge of #165546 - yhx-12243:str-split-at-unchecked, r=clarfon…
Zalathar Nov 7, 2026
8e00a0e
coretests: speed up some tests in Miri
RalfJung Nov 7, 2026
35c95fa
Rollup merge of #147696 - bjoernager:bit, r=hanna-kruppe
JonathanBrouwer Nov 7, 2026
47f14c9
Rollup merge of #163202 - bkueng:nuttx_poll_update, r=hanna-kruppe
JonathanBrouwer Nov 7, 2026
1271eef
Rollup merge of #165552 - WaffleLapkin:use-clone-fn-lang-item, r=folk…
JonathanBrouwer Nov 7, 2026
b504fd8
Rollup merge of #165589 - RalfJung:miri-tests, r=hanna-kruppe
JonathanBrouwer Nov 7, 2026
055c380
change return type of FloatErrorKind::kind
malezjaa Nov 7, 2026
bd1e54f
Rollup merge of #165620 - malezjaa:change-kind-ret-type, r=clarfonthey
jhpratt Nov 8, 2026
07ceb26
lib: Add a safe check for remaining characters to print
hardikxk Nov 8, 2026
036bcd2
Fix `Command` Debug docs about non-utf8 data
lazerg Nov 8, 2026
e9a5b74
std: fix build on RTEMS after libc 0.2.191
lazerg Nov 8, 2026
6814e80
Link to `char::REPLACEMENT_CHARACTER` in `Command` Debug docs
lazerg Nov 8, 2026
3d85e29
library: std: process: Make Command::status platform specific
Ayush1325 Nov 8, 2026
cb0e7ba
library: std: sys: process: uefi: Add status impl
Ayush1325 Nov 8, 2026
79393d5
Auto merge of #165639 - JonathanBrouwer:rollup-CK8Un0Z, r=JonathanBro…
bors Nov 8, 2026
8503d60
oneshot_multi_task_recv_then_send test: wait for test thread to finish
RalfJung Nov 8, 2026
e0cb5a7
join some more threads so we dont ignore their panics
RalfJung Nov 8, 2026
919576c
add `core::arch::{x86, x86_64}::x87_f80`
folkertdev Sep 23, 2026
722ad38
Auto merge of #165627 - hardikxk:lib/escape-debug, r=clarfonthey
bors Nov 8, 2026
cc25d93
Rollup merge of #165629 - lazerg:fix/rtems-stat-timespec, r=Mark-Simu…
JonathanBrouwer Nov 8, 2026
420d653
Rollup merge of #163624 - Talha-Dmr:string-retain-tail-utf8, r=Mark-S…
JonathanBrouwer Nov 8, 2026
1ad894b
Rollup merge of #164519 - krokodeyu:document-crate-type-attribute, r=…
JonathanBrouwer Nov 8, 2026
773645a
Rollup merge of #165643 - RalfJung:oneshot_multi_task_recv_then_send,…
JonathanBrouwer Nov 8, 2026
c89361d
Fix unused imports in VEXos filesystem
lewisfm Nov 8, 2026
ac72c36
Rollup merge of #165664 - vexide:fix/vexos-fs-unused-import, r=maxdexh
Zalathar Nov 9, 2026
d8124dd
alloc: Unstably add `Vec::repeat` and `Vec::repeat_in`
Gelbpunkt Oct 9, 2026
4ff9148
Delete alloc::vec::from_elem_in
Gelbpunkt Oct 12, 2026
44ff838
Rollup merge of #165637 - Ayush1325:uefi-tests, r=joboet
JonathanBrouwer Nov 9, 2026
a4612d7
Add LinkedList::allocator
whiplashvin Nov 9, 2026
fbaa4e3
Add back from_elem_global to fix diagnostic items
Gelbpunkt Nov 9, 2026
780a91e
Auto merge of #165711 - JonathanBrouwer:rollup-MxaY3y5, r=JonathanBro…
bors Nov 9, 2026
0919154
windows: check for null before wide encoding
seritools Nov 8, 2026
f56628e
mpsc_sync::stream_send_recv_stress: wait for all thread to finish
RalfJung Nov 9, 2026
d6b20ae
Disable no_threads compiler errors for Trusty targets
randomPoison Nov 9, 2026
0cc9175
Partially stabilize `ptr_alignment_type` as `alignment_type`
GrigorenkoPV Mar 1, 2026
9b7b863
docs(num): remove needless whitespaces
sorairolake Nov 10, 2026
a57df48
loongarch: Use `intrinsics::simd` for vclo
heiher Nov 10, 2026
9a65b8a
fs::Dir tests: ensure remove and rename do not follow symlinks
RalfJung Oct 19, 2026
17124c9
windows: fix Dir::{remove_*,rename} symlink behavior
RalfJung Oct 19, 2026
6b958c3
remove NOP File::flush from fs tests
RalfJung Nov 10, 2026
a02279b
Trace `#[rustc_trivial_field_reads]` sites through dead code analysis
tehforsch Oct 3, 2026
768361c
Add safety requirements for Pattern, Searcher and ReverseSearcher
yilin0518 Nov 10, 2026
6d52fd7
Rollup merge of #164217 - tehforsch:fix-160621, r=mejrs,mu001999
JonathanBrouwer Nov 10, 2026
de1333e
Rollup merge of #165569 - zannabianca1997:move-trait-split, r=jdonsze…
JonathanBrouwer Nov 10, 2026
5858b6d
Rollup merge of #163992 - folkertdev:x87_f80-simple, r=beetrees,RalfJung
JonathanBrouwer Nov 10, 2026
ea53f14
Rollup merge of #153261 - GrigorenkoPV:stabilize/alignment, r=clarfon…
JonathanBrouwer Nov 10, 2026
c560536
Rollup merge of #164559 - RalfJung:dir-remove-rename-symlinks, r=Chri…
JonathanBrouwer Nov 10, 2026
19323c1
Rollup merge of #165681 - yilin0518:pattern_searcher, r=maxdexh
JonathanBrouwer Nov 10, 2026
fb84556
Rollup merge of #165715 - rust9x:windows-osstr-null-precheck, r=Chris…
JonathanBrouwer Nov 10, 2026
af9742d
Rollup merge of #165717 - RalfJung:stream_send_recv_stress, r=maxdexh
JonathanBrouwer Nov 10, 2026
508bee9
Rollup merge of #165733 - sorairolake:remove-needless-ws-from-reverse…
JonathanBrouwer Nov 10, 2026
69fce0b
Rollup merge of #165739 - RalfJung:file-flush, r=ChrisDenton
JonathanBrouwer Nov 10, 2026
f96b1df
run replace-version-placeholder
cuviper Nov 9, 2026
ae16ec1
reformat with `cfg_select!` awareness
cuviper Nov 10, 2026
32b3b7b
std: map more errno values to ErrorKind on Hermit
stlankes Nov 10, 2026
b590c0e
std Miri testing: use skip_unsupported_miri_tests to control when tes…
RalfJung Oct 29, 2026
35285a3
Rollup merge of #165728 - randomPoison:trusty-std-no-threads, r=joboet
JonathanBrouwer Nov 10, 2026
fb5647a
Wrap proc-macro `EscapeError` enum into a struct
GuillaumeGomez Nov 10, 2026
6359336
prevent optimization for input in benchmarks
ywxt Nov 11, 2026
fc4107d
Rollup merge of #165117 - RalfJung:skip_missing_miri_shims, r=maxdexh
Zalathar Nov 11, 2026
5d53010
Rollup merge of #165750 - GuillaumeGomez:escape-error-struct, r=progr…
Zalathar Nov 11, 2026
eeb3ad2
Rollup merge of #165780 - stlankes:error, r=maxdexh
Zalathar Nov 11, 2026
08e2863
Fix typo in char.to_lowercase documentation
vladmashk Nov 11, 2026
1409126
std: don't overflow when rounding up huge thread stack sizes on unix
programskillforverification Nov 11, 2026
5a2d852
Rollup merge of #165807 - vladmashk:patch-1, r=maxdexh
JonathanBrouwer Nov 11, 2026
045c43e
Turn `pattern_type` into a macro 2.0 that expands to `k#pattern_type(…
fmease Sep 3, 2026
8e07c2f
Turn `view_type` into a macro 2.0 that expands to `k#view_type(...)`
fmease Nov 4, 2026
1b43a82
Prepare for merging from rust-lang/rust
invalid-email-address Nov 12, 2026
24a2a7d
Rollup merge of #165778 - cuviper:bump-stage0, r=jieyouxu,Mark-Simula…
Zalathar Nov 12, 2026
e046520
Rollup merge of #165412 - bschoenmaeckers:fn-addr, r=fee1-dead
Zalathar Nov 12, 2026
a5054ce
Rollup merge of #165487 - fmease:built-in-macro-to-internal-syntax, r…
Zalathar Nov 12, 2026
9deaeb3
Tell Miri about the alignment handling on Windows
saethlin Nov 11, 2026
b52c0b7
Fix inverted wasm cfg in core benchmarks
ywxt Nov 12, 2026
df0c544
reflection: reflect attributes from adts, fields, and variants
Tess4552 Nov 11, 2026
851335d
Rollup merge of #165417 - xbwwj:doc-format-width-panic, r=ChrisDenton
JonathanBrouwer Nov 12, 2026
d9d3449
Rollup merge of #165860 - ywxt:coretest_bench_wasm, r=clarfonthey
JonathanBrouwer Nov 12, 2026
8b12e25
Merge pull request #754 from malezjaa/add-josh-sync
clarfonthey Nov 12, 2026
95031fc
Rollup merge of #165841 - saethlin:windows-allocator-alignment, r=thomcc
JonathanBrouwer Nov 13, 2026
f595264
Rollup merge of #165810 - Tess4552:reflection-type-id-attributes, r=o…
JonathanBrouwer Nov 13, 2026
4059621
Enhance documentation for try_clone File implementation
MarioIlRosso Nov 13, 2026
daef914
windows: use io::const_error in get_access_mode
seritools Nov 13, 2026
c580e1b
Import hashbrown history as a Josh
malezjaa Nov 14, 2026
ae3c178
Make `copysign` generic
N1ark Sep 6, 2026
34bcdbd
Make minimum/maximum generic
N1ark Sep 6, 2026
c341b2c
Replace float bound impls with a macro
N1ark Sep 7, 2026
5a6a8d5
De-constify the `FloatPrimitive` sealed trait
N1ark Sep 7, 2026
d32beb6
Document wide pointers in core::ptr module
MarioIlRosso Nov 14, 2026
8bfb09e
Add allocator() to vec_deque::IntoIter and vec_deque::Drain
whiplashvin Nov 13, 2026
aea7b04
docs(vec): clarify into_boxed_slice allocation guarantee
Walentalien Nov 14, 2026
09c0f27
Fix(docs): Correct discard behavior in datagram peek docs
Suryansh-Dey Nov 15, 2026
f61c969
ref: replace debug_tuple helpers with debug struct ones
panstromek Oct 29, 2026
5e20022
add `core::arch::{x86, x86_64}::x87_f80`
folkertdev Sep 23, 2026
eed638e
disable `assert_instr` on some amx tests
folkertdev Nov 15, 2026
fc9d0f0
avx512ifma: fix docs for masked intrinsics
RalfJung Nov 15, 2026
fd32922
Merge pull request #2262 from sayantn/correct-overloaded-intrinsics
folkertdev Nov 15, 2026
4e898c0
Merge pull request #2233 from tyilo/patch-1
folkertdev Nov 15, 2026
653dad6
Merge pull request #2260 from folkertdev/mips-fixes
folkertdev Nov 15, 2026
1a86493
Merge pull request #2265 from heiher/loong-vclo
folkertdev Nov 15, 2026
aaeceac
powerpc: Implement vclzlsbb and vctzlsbb
Gelbpunkt Nov 11, 2026
fdf48ed
Add some test cases
Gelbpunkt Nov 15, 2026
f9d54be
Rollup merge of #162267 - asder8215:create_dir_all_trailing_cur_dir, …
JonathanBrouwer Nov 15, 2026
d040764
Rollup merge of #164043 - Gelbpunkt:from-elem-in, r=nia-e
JonathanBrouwer Nov 15, 2026
e011c5b
Rollup merge of #163696 - ajtribick:stabilise-int-from-ascii, r=Mark-…
JonathanBrouwer Nov 15, 2026
263c4c2
Rollup merge of #163882 - Walentalien:fix-vec-into-boxed-slice-docs, …
JonathanBrouwer Nov 15, 2026
d22e512
Rollup merge of #165902 - whiplashvin:vecdeque-iter-allocator, r=clar…
JonathanBrouwer Nov 15, 2026
0856742
Skip power9-vector feature on 32-bit powerpc
Gelbpunkt Nov 15, 2026
320d924
expose f16b via std::num, not just core::num
RalfJung Nov 15, 2026
0967495
Improve String::insert{,_str} safety comments
T0mstone Nov 15, 2026
40b7057
Merge pull request #2267 from RalfJung/avx512ifma-mask
folkertdev Nov 15, 2026
c2c8105
Merge pull request #2266 from Gelbpunkt/powerpc-vclzlsbb-vctzlsbb
folkertdev Nov 15, 2026
4f95135
Revert safety hygiene changes to `String::retain`
workingjubilee Nov 15, 2026
25e3411
Revert optimized implementation of `String::retain`
workingjubilee Nov 15, 2026
ed86d08
library: Reapply String::retain safety doc for tidy
fereidani Nov 15, 2026
c03b69e
pipe_subprocess test: use libtest harness
RalfJung Nov 15, 2026
1883ff6
Rollup merge of #162414 - N1ark:const-unstable-float-generics, r=Ralf…
JonathanBrouwer Nov 16, 2026
25e0ce4
Rollup merge of #165792 - ywxt:ascii-bench, r=JohnTitor
JonathanBrouwer Nov 16, 2026
1ec1cfc
Rollup merge of #165936 - MarioIlRosso:issue-77520-fix, r=Noratrieb
JonathanBrouwer Nov 16, 2026
3985bc5
Rollup merge of #165942 - rust9x:windows-io-const-error, r=clarfonthey
JonathanBrouwer Nov 16, 2026
6d8ddd1
Rollup merge of #165956 - MarioIlRosso:issue-164818-fix, r=maxdexh
JonathanBrouwer Nov 16, 2026
846fb8e
Rollup merge of #165996 - Suryansh-Dey:peek_docs, r=JohnTitor
JonathanBrouwer Nov 16, 2026
f6e909d
Prepare for merging from rust-lang/rust
folkertdev Nov 16, 2026
87c8c4d
Merge ref '4de190d26178' from rust-lang/rust
folkertdev Nov 16, 2026
5437ccb
alloctests: use thread-local in `c_str_alloc_error`
Jules-Bertholet Nov 16, 2026
09680c6
add `feature(cfg_target_has_reliable_f16b)` to `core`
folkertdev Nov 16, 2026
5163ff3
Rollup merge of #166011 - workingjubilee:clean-revert-string-retain, …
JonathanBrouwer Nov 16, 2026
0e871b0
Rollup merge of #165993 - RalfJung:pipe-subprocess, r=JohnTitor
JonathanBrouwer Nov 16, 2026
65411e7
Rollup merge of #166005 - RalfJung:float-abi, r=joshtriplett
JonathanBrouwer Nov 16, 2026
708f4b2
Rollup merge of #166009 - T0mstone:main, r=thomcc
JonathanBrouwer Nov 16, 2026
a41558e
Fix bad hyperlink
maxdexh Nov 16, 2026
824cd25
Auto merge of #166046 - JonathanBrouwer:rollup-Jro6F0q, r=JonathanBro…
bors Nov 16, 2026
a8ce27b
Document failing cases for spawning processes when using Command
MarioIlRosso Nov 16, 2026
a5d89af
Rollup merge of #166054 - folkertdev:stdarch-sync-2026-11-16, r=folke…
Zalathar Nov 17, 2026
67f7818
Rollup merge of #165960 - Jules-Bertholet:unflake, r=RalfJung
Zalathar Nov 17, 2026
ce8053c
Rollup merge of #165966 - MarioIlRosso:issue-108213-fix, r=maxdexh
Zalathar Nov 17, 2026
6982319
Rollup merge of #166063 - maxdexh:silence-rustdoc-this-isnt-my-code, …
Zalathar Nov 17, 2026
f0b2903
std: Enable `is_mips*_feature_detected` for MIPS release 6
tgross35 Oct 26, 2026
67c91ce
std: Combine `is_mips64_feature_detected` into `is_mips_feature_detec…
tgross35 Oct 26, 2026
3d1069c
Auto merge of #164852 - malezjaa:import-hashbrown, r=Kobzol,clarfonthey
bors Nov 17, 2026
273d41b
Add `cd` alias to `std::env::set_current_dir`
MarioIlRosso Nov 17, 2026
7b8b9b9
Rollup merge of #165007 - tgross35:mips-feature, r=aapoalas
JonathanBrouwer Nov 17, 2026
6c60072
Rollup merge of #163516 - pthariensflame:detect-aarch64-darwin-2026-0…
JonathanBrouwer Nov 17, 2026
972028b
reflection: enable tool attributes to be reflecting
Tess4552 Nov 12, 2026
c8c7c01
Move ub_checks() inside the const_eval_select branch.
d0sboots Nov 18, 2026
9016e78
Rollup merge of #166037 - Tess4552:reflection-register-reflecting-too…
JonathanBrouwer Nov 18, 2026
05f2a3b
windows seek_write: document interaction with append mode
RalfJung Nov 18, 2026
48a38b3
Add examples to Allocator methods
whiplashvin Nov 18, 2026
b6bdd00
Remove `#[allow(missing_docs)]` where possible
GuillaumeGomez Nov 18, 2026
ad2b0e2
Rollup merge of #166155 - RalfJung:windows-seek-write-append, r=Chris…
JonathanBrouwer Nov 18, 2026
4db0cad
Rollup merge of #166111 - MarioIlRosso:issue-130058-fix, r=JohnTitor
JonathanBrouwer Nov 18, 2026
9fc04b2
reflection: doc attributes from adts, fields, and variants
Tess4552 Oct 26, 2026
0c9c296
more lang items
jdonszelmann Oct 16, 2026
79feece
Rollup merge of #165321 - whiplashvin:allocator-method-examples, r=tg…
JonathanBrouwer Nov 19, 2026
05b68de
Rollup merge of #166146 - GuillaumeGomez:rm-missing_docs, r=clarfonthey
JonathanBrouwer Nov 19, 2026
394cc2c
Remove ebadf handling from stdio
ChrisDenton Nov 17, 2026
4477924
Windows ignore stdio to NUL
ChrisDenton Nov 17, 2026
14cc01c
simd-test: Fix cfg syntax in the test macro
tgross35 Nov 19, 2026
b13f12a
std: remove `make_handler`'s argument in UNIX stack overflow logic
joboet Nov 19, 2026
18501e1
std: skip unnecessary thread-info-store accesses in `drop_handler`
joboet Nov 19, 2026
3b2eaff
std: Constify `std::process::abort`
tgross35 Nov 19, 2026
877a310
Auto merge of #165460 - jdonszelmann:compressed-paramenvs, r=ShoyuVan…
bors Nov 19, 2026
e10041e
Rollup merge of #166117 - ChrisDenton:ebadf, r=maxdexh
jhpratt Nov 20, 2026
c2d205c
Rollup merge of #165094 - Tess4552:reflection-type-id-docs, r=oli-obk
jhpratt Nov 20, 2026
267b046
Rollup merge of #166136 - d0sboots:assert_ub, r=RalfJung
jhpratt Nov 20, 2026
9d89ccd
Rollup merge of #166185 - tgross35:simd-test-macro, r=RalfJung
jhpratt Nov 20, 2026
cfc0418
Rollup merge of #166194 - tgross35:const-abort, r=clarfonthey,RalfJung
jhpratt Nov 20, 2026
d160869
reflection: flatten Type
Tess4552 Nov 17, 2026
796b8d8
reflection: add Never to Type
Tess4552 Nov 17, 2026
856fd8d
Rollup merge of #166195 - joboet:stack_overflow_steps, r=JohnTitor
JonathanBrouwer Nov 20, 2026
50e1e9c
Merge branch 'subtree/library'
Nov 22, 2026
e088668
Update toolchain to 2026-11-21
Nov 22, 2026
56b9fcd
Update Kani version to 87c87010eda7797d7fa14033ca68bcbe17184a63
Nov 22, 2026
9c8bc3a
Assert the transmute precondition fails in the should_fail harnesses
feliperodri Nov 22, 2026
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
2 changes: 1 addition & 1 deletion library/alloc/src/collections/binary_heap/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@
//! }
//! ```

#![allow(missing_docs)]
#![stable(feature = "rust1", since = "1.0.0")]

use core::alloc::Allocator;
Expand Down Expand Up @@ -1797,6 +1796,7 @@ unsafe impl<I> AsVecIntoIter for IntoIter<I> {
}
}

/// Iterator which retrieves elements in heap order.
#[must_use = "iterators are lazy and do nothing unless consumed"]
#[unstable(feature = "binary_heap_into_iter_sorted", issue = "59278")]
#[derive(Clone, Debug)]
Expand Down
1 change: 0 additions & 1 deletion library/alloc/src/io/buffered/bufreader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,6 @@ impl<R: ?Sized> BufReader<R> {
impl<R: ?Sized> BufReader<R> {
#[doc(hidden)]
#[unstable(feature = "core_io_internals", reason = "exposed only for libstd", issue = "none")]
#[allow(missing_docs)]
pub fn initialized(&self) -> bool {
self.buf.initialized()
}
Expand Down
1 change: 1 addition & 0 deletions library/core/src/alloc/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,7 @@ impl Layout {
note = "Name does not follow std convention, use LayoutError",
suggestion = "LayoutError"
)]
/// Old name of [`LayoutError`].
pub type LayoutErr = LayoutError;

/// The `LayoutError` is returned when the parameters given
Expand Down
114 changes: 113 additions & 1 deletion library/core/src/alloc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,10 @@ pub const unsafe trait Allocator {
/// returned excess. Implementors are free to e.g. provide an alternate method to query
/// available excess if doing so is expensive and should be left to the caller.
///
/// The returned block may be uninitialized, so it is unsound to read it
/// before it is written. Use [`allocate_zeroed`](Self::allocate_zeroed) if
/// zero-initialized memory is needed.
///
/// Note that the returned block of memory is considered [*currently allocated*]
/// with this allocator (and equivalent allocators).
/// Therefore, it is the responsibility of implementors of `Allocator` to make sure that
Expand All @@ -265,6 +269,28 @@ pub const unsafe trait Allocator {
/// call the [`handle_alloc_error`] function, rather than directly invoking `panic!` or similar.
///
/// [`handle_alloc_error`]: ../../alloc/alloc/fn.handle_alloc_error.html
///
/// # Examples
///
/// ```
/// use std::alloc::{Allocator, Layout, System};
///
/// let s = "Hello, world!";
/// let layout = Layout::array::<u8>(s.len()).unwrap();
// FIXME(slice_ptr_get): use `.as_mut_ptr()` once stable
/// let ptr = System.allocate(layout).expect("allocation failed").cast::<u8>();
///
/// // SAFETY: the block is at least `s.len()` bytes long and was just allocated,
/// // so it cannot overlap `s`.
/// unsafe { ptr.as_ptr().copy_from_nonoverlapping(s.as_ptr(), s.len()) };
///
/// // SAFETY: the first `s.len()` bytes were initialized by the copy above.
/// let bytes = unsafe { std::slice::from_raw_parts(ptr.as_ptr(), s.len()) };
/// assert_eq!(bytes, s.as_bytes());
///
/// // SAFETY: `ptr` was allocated by `System` with `layout`.
/// unsafe { System.deallocate(ptr, layout) };
/// ```
#[stable(feature = "allocator_api", since = "1.100.0")]
fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError>;

Expand All @@ -283,6 +309,24 @@ pub const unsafe trait Allocator {
/// call the [`handle_alloc_error`] function, rather than directly invoking `panic!` or similar.
///
/// [`handle_alloc_error`]: ../../alloc/alloc/fn.handle_alloc_error.html
///
/// # Examples
///
/// ```
/// use std::alloc::{Allocator, Layout, System};
///
/// let layout = Layout::new::<u64>();
/// let ptr = System.allocate_zeroed(layout).expect("allocation failed");
///
/// // N.B. the below would be unsound with `allocate` rather than `allocate_zeroed`.
/// // SAFETY: `allocate_zeroed` returns a valid, initialized block.
/// let bytes = unsafe { ptr.as_ref() };
/// assert!(bytes.iter().all(|&b| b == 0));
///
/// // SAFETY: `ptr` was allocated by `System` with `layout`.
// FIXME(slice_ptr_get): use `.as_mut_ptr()` once stable
/// unsafe { System.deallocate(ptr.cast(), layout) };
/// ```
#[stable(feature = "allocator_api", since = "1.100.0")]
fn allocate_zeroed(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> {
let ptr = self.allocate(layout)?;
Expand Down Expand Up @@ -319,7 +363,9 @@ pub const unsafe trait Allocator {
/// If this returns `Ok`, then the memory block referenced by `ptr` has been [*invalidated*].
/// The old `ptr` must not be used to access the memory, even if the allocation was grown in-place.
/// The newly returned pointer is the only valid pointer for accessing this memory now.
/// All bytes past `old_layout.size()` should be assumed to be uninitialised.
/// All bytes past `old_layout.size()` should be assumed to be uninitialised, so it is
/// unsound to read them before they are written. Use [`grow_zeroed`](Self::grow_zeroed)
/// if the new bytes should be zero-initialized.
///
/// If this method returns `Err`, then the memory block has not been *invalidated*,
/// and the contents of the memory block are unaltered.
Expand Down Expand Up @@ -349,6 +395,45 @@ pub const unsafe trait Allocator {
/// call the [`handle_alloc_error`] function, rather than directly invoking `panic!` or similar.
///
/// [`handle_alloc_error`]: ../../alloc/alloc/fn.handle_alloc_error.html
///
/// # Examples
///
/// ```
/// use std::alloc::{Allocator, Layout, System};
///
/// let s1 = "Hello";
/// let s2 = ", world!";
///
/// let old_layout = Layout::array::<u8>(s1.len()).unwrap();
// FIXME(slice_ptr_get): use `.as_mut_ptr()` once stable
/// let ptr = System.allocate(old_layout).expect("allocation failed").cast::<u8>();
///
/// // SAFETY: the block is at least `s1.len()` bytes long and was just allocated,
/// // so it cannot overlap `s1`.
/// unsafe { ptr.as_ptr().copy_from_nonoverlapping(s1.as_ptr(), s1.len()) };
///
/// let new_layout = Layout::array::<u8>(s1.len() + s2.len()).unwrap();
///
/// // N.B. the original `ptr` is invalidated by this operation
/// // SAFETY: `ptr` is currently allocated by `System` with `old_layout`,
/// // and `new_layout` is at least as large as `old_layout`.
// FIXME(slice_ptr_get): use `.as_mut_ptr()` once stable
/// let ptr = unsafe { System.grow(ptr, old_layout, new_layout) }
/// .expect("grow failed").cast::<u8>();
///
/// // SAFETY: the block is at least `s1.len() + s2.len()` bytes long, so writing
/// // `s2.len()` bytes at offset `s1.len()` stays in bounds; it cannot overlap `s2`.
/// unsafe {
/// ptr.as_ptr().add(s1.len()).copy_from_nonoverlapping(s2.as_ptr(), s2.len());
/// }
///
/// // SAFETY: all bytes within `new_layout.size()` are now initialized.
/// let bytes = unsafe { std::slice::from_raw_parts(ptr.as_ptr(), new_layout.size()) };
/// assert_eq!(bytes, b"Hello, world!");
///
/// // SAFETY: `ptr` is currently allocated by `System` with `new_layout`.
/// unsafe { System.deallocate(ptr, new_layout) };
/// ```
#[stable(feature = "allocator_api", since = "1.100.0")]
unsafe fn grow(
&self,
Expand Down Expand Up @@ -477,6 +562,33 @@ pub const unsafe trait Allocator {
/// call the [`handle_alloc_error`] function, rather than directly invoking `panic!` or similar.
///
/// [`handle_alloc_error`]: ../../alloc/alloc/fn.handle_alloc_error.html
///
/// # Examples
///
/// ```
/// use std::alloc::{Allocator, Layout, System};
///
/// let old_layout = Layout::array::<u32>(4).unwrap();
/// let ptr = System.allocate(old_layout).expect("allocation failed");
///
/// // SAFETY: the block holds at least 4 `u32`s and is aligned for `u32`.
/// unsafe { ptr.cast::<[u32; 4]>().write([7, 8, 9, 10]) };
///
/// let new_layout = Layout::array::<u32>(2).unwrap();
///
/// // N.B. the original `ptr` is invalidated by this operation
/// // SAFETY: `ptr` is currently allocated by `System` with `old_layout`,
/// // and `new_layout` is no larger than `old_layout`.
/// let ptr = unsafe { System.shrink(ptr.cast(), old_layout, new_layout) }
/// .expect("shrink failed");
///
/// // The contents that fit in the new layout are preserved.
/// // SAFETY: the first two `u32`s were written above and `shrink` kept them.
/// assert_eq!(unsafe { ptr.cast::<[u32; 2]>().read() }, [7, 8]);
///
/// // SAFETY: `ptr` is currently allocated by `System` with `new_layout`.
/// unsafe { System.deallocate(ptr.cast(), new_layout) };
/// ```
#[stable(feature = "allocator_api", since = "1.100.0")]
unsafe fn shrink(
&self,
Expand Down
2 changes: 1 addition & 1 deletion library/core/src/any.rs
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ impl TypeId {
return None;
}

if matches!(trait_represented_by_type_id.info().kind, TypeKind::DynTrait(_))
if matches!(trait_represented_by_type_id.info(), TypeKind::DynTrait)
&& let Some(vtable) = type_id_vtable(self, trait_represented_by_type_id)
{
Some(TraitImpl { vtable })
Expand Down
3 changes: 2 additions & 1 deletion library/core/src/cmp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ use crate::ops::ControlFlow;
///
/// [`eq`]: PartialEq::eq
/// [`ne`]: PartialEq::ne
#[lang = "eq"]
#[lang = "partial_eq"]
#[stable(feature = "rust1", since = "1.0.0")]
#[doc(alias = "==")]
#[doc(alias = "!=")]
Expand Down Expand Up @@ -348,6 +348,7 @@ pub macro PartialEq($item:item) {
#[doc(alias = "==")]
#[doc(alias = "!=")]
#[stable(feature = "rust1", since = "1.0.0")]
#[lang = "eq"]
#[rustc_diagnostic_item = "Eq"]
#[rustc_const_unstable(feature = "const_cmp", issue = "143800")]
pub const trait Eq: [const] PartialEq<Self> + PointeeSized {
Expand Down
2 changes: 1 addition & 1 deletion library/core/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ pub trait Error: Debug + Display {
since = "1.33.0",
note = "replaced by Error::source, which can support downcasting"
)]
#[allow(missing_docs)]
/// Replaced by [`Error::source`].
fn cause(&self) -> Option<&dyn Error> {
self.source()
}
Expand Down
4 changes: 2 additions & 2 deletions library/core/src/field.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ impl<T: ?Sized, const VARIANT: u32, const FIELD: u32> fmt::Debug
}
}
let (variant, field) = const {
use crate::mem::type_info::{self, Type, TypeKind};
use crate::mem::type_info::{self, TypeKind};
let type_id = type_info::of::<T>();
match Type::of::<T>().kind {
match TypeKind::of::<T>() {
TypeKind::Struct => (None, Member::Name(type_id.field(0, FIELD as usize).name())),
TypeKind::Tuple => (None, Member::Index(FIELD)),
TypeKind::Enum => {
Expand Down
1 change: 1 addition & 0 deletions library/core/src/fmt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1048,6 +1048,7 @@ impl Display for Arguments<'_> {
message = "`{Self}` doesn't implement `{this}`"
)]
#[doc(alias = "{:?}")]
#[lang = "debug"]
#[rustc_diagnostic_item = "Debug"]
pub trait Debug: PointeeSized {
#[doc = include_str!("fmt_trait_method_doc.md")]
Expand Down
44 changes: 17 additions & 27 deletions library/core/src/intrinsics/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,19 @@ use crate::sync::atomic::{
/// A type for atomic ordering parameters for intrinsics. This is a separate type from
/// `atomic::Ordering` so that we can make it `ConstParamTy` and fix the values used here without a
/// risk of leaking that to stable code.
#[allow(missing_docs)]
#[derive(Debug, ConstParamTy, PartialEq, Eq)]
pub enum AtomicOrdering {
// These values must match the compiler's `AtomicOrdering` defined in
// `rustc_middle/src/ty/consts/int.rs`!
/// [`Ordering::Relaxed`][`crate::sync::atomic::Ordering::Relaxed`]
Relaxed = 0,
/// [`Ordering::Release`][`crate::sync::atomic::Ordering::Release`]
Release = 1,
/// [`Ordering::Acquire`][`crate::sync::atomic::Ordering::Acquire`]
Acquire = 2,
/// [`Ordering::AcqRel`][`crate::sync::atomic::Ordering::AcqRel`]
AcqRel = 3,
/// [`Ordering::SeqCst`][`crate::sync::atomic::Ordering::SeqCst`]
SeqCst = 4,
}

Expand Down Expand Up @@ -3934,8 +3938,10 @@ mod verify {
//The follow are harnesses that check our function contract (specifically the weakness/strength
//of our generic validity precondition)
//In particular, should_succeed harnesses check that type-specific validity preconditions imply our generic precondition
//should_fail harnesses check that when we assume the negation of a type-specific validity
//precondition, the harness should trigger at least one failure
// The `should_fail_*` harnesses show that `transmute_unchecked_wrapper`'s precondition
// rejects every input whose bytes aren't a valid value of the output type. They assert that
// the precondition is false rather than calling the wrapper under `should_panic`: Kani
// doesn't count a failed contract condition as a panic.
Comment on lines +3941 to +3944

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AlexLB99 do the changes in this commit look alright to you? I changed the behavior of should_panic in model-checking/kani#4230

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @feliperodri, overall this looks good to me! I just left a comment about the i8 -> bool case, which is actually checking u8 -> bool (due to a mistake in the original harnesses). But the overall translations away from should_panic here are correct


#[kani::proof]
#[kani::stub_verified(transmute_unchecked_wrapper)]
Expand All @@ -3945,11 +3951,9 @@ mod verify {
}

#[kani::proof]
#[kani::stub_verified(transmute_unchecked_wrapper)]
#[kani::should_panic]
fn should_fail_u32_to_char() {
let src: u32 = kani::any_where(|x| !core::char::from_u32(*x).is_some());
let dst: char = unsafe { transmute_unchecked_wrapper(src) };
assert!(!ub_checks::can_dereference(&src as *const u32 as *const char));
}

#[kani::proof]
Expand All @@ -3962,13 +3966,11 @@ mod verify {
}

#[kani::proof]
#[kani::stub_verified(transmute_unchecked_wrapper)]
#[kani::should_panic]
fn should_fail_f32_to_char() {
let src: f32 = kani::any_where(|x| {
!char::from_u32(unsafe { *(x as *const f32 as *const u32) }).is_some()
});
let dst: char = unsafe { transmute_unchecked_wrapper(src) };
assert!(!ub_checks::can_dereference(&src as *const f32 as *const char));
}

#[kani::proof]
Expand All @@ -3979,11 +3981,9 @@ mod verify {
}

#[kani::proof]
#[kani::stub_verified(transmute_unchecked_wrapper)]
#[kani::should_panic]
fn should_fail_i32_to_char() {
let src: i32 = kani::any_where(|x| !char::from_u32(*x as u32).is_some());
let dst: char = unsafe { transmute_unchecked_wrapper(src) };
assert!(!ub_checks::can_dereference(&src as *const i32 as *const char));
}

#[kani::proof]
Expand All @@ -3994,11 +3994,9 @@ mod verify {
}

#[kani::proof]
#[kani::stub_verified(transmute_unchecked_wrapper)]
#[kani::should_panic]
fn should_fail_u8_to_bool() {
let src: u8 = kani::any_where(|x| *x > 1);
let dst: bool = unsafe { transmute_unchecked_wrapper(src) };
assert!(!ub_checks::can_dereference(&src as *const u8 as *const bool));
}

#[kani::proof]
Expand All @@ -4009,11 +4007,9 @@ mod verify {
}

#[kani::proof]
#[kani::stub_verified(transmute_unchecked_wrapper)]
#[kani::should_panic]
fn should_fail_i8_to_bool() {
let src: u8 = kani::any_where(|x| *x as u8 > 1);
let dst: bool = unsafe { transmute_unchecked_wrapper(src) };
assert!(!ub_checks::can_dereference(&src as *const u8 as *const bool));
}

//The following harnesses do the same as above, but for compound types
Expand All @@ -4039,11 +4035,9 @@ mod verify {
}

#[kani::proof]
#[kani::stub_verified(transmute_unchecked_wrapper)]
#[kani::should_panic]
fn should_fail_tuple_to_struct() {
let src: (u8, u8) = (kani::any(), kani::any_where(|x| *x > 1));
let dst: struct_A = unsafe { transmute_unchecked_wrapper(src) };
assert!(!ub_checks::can_dereference(&src as *const (u8, u8) as *const struct_A));
}

#[kani::proof]
Expand All @@ -4054,11 +4048,9 @@ mod verify {
}

#[kani::proof]
#[kani::stub_verified(transmute_unchecked_wrapper)]
#[kani::should_panic]
fn should_fail_tuple_to_tuple() {
let src: (u8, u8) = (kani::any(), kani::any_where(|x| *x > 1));
let dst: (u8, bool) = unsafe { transmute_unchecked_wrapper(src) };
assert!(!ub_checks::can_dereference(&src as *const (u8, u8) as *const (u8, bool)));
}

#[kani::proof]
Expand All @@ -4069,11 +4061,9 @@ mod verify {
}

#[kani::proof]
#[kani::stub_verified(transmute_unchecked_wrapper)]
#[kani::should_panic]
fn should_fail_tuple_to_array() {
let src: (u8, u8) = (kani::any_where(|x| *x > 1), kani::any_where(|x| *x > 1));
let dst: [bool; 2] = unsafe { transmute_unchecked_wrapper(src) };
assert!(!ub_checks::can_dereference(&src as *const (u8, u8) as *const [bool; 2]));
}

//generates should_succeed harnesses when the output type has no possible invalid values, like ints
Expand Down
Loading
Loading