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
335eb90
(almost) get rid of the unsound `#[rustc_unsafe_specialization_marker…
joboet Jan 11, 2025
657873d
Constify `ManuallyDrop::take`
nxsaken Nov 9, 2025
df9d8b8
add a `TrivialClone` implementation when deriving both `Clone` and `C…
joboet Jan 17, 2025
3fc578b
alloc: remove test of unsound specialization behaviour
joboet Feb 11, 2025
bc70836
make `TrivialClone` a `#[marker]`-trait to keep it from appearing in …
joboet Feb 11, 2025
08b0ee4
automatically implement `TrivialClone` for closures and tuples
joboet Mar 17, 2025
de30bd2
Rollup merge of #148683 - fmease:rm-const_trait-attr, r=fee1-dead
matthiaskrgr Nov 9, 2025
2e17960
Rollup merge of #148687 - joboet:nonpoison-hook-rwlock, r=ChrisDenton
matthiaskrgr Nov 9, 2025
bce723b
Optimize Vec::from_elem for some more cases.
zachs18 Nov 9, 2025
3984d56
Constify `mem::take`
nxsaken Nov 9, 2025
badbe06
Rollup merge of #148248 - nxsaken:const_control_flow, r=Mark-Simulacrum
matthiaskrgr Nov 9, 2025
cddcb91
Rollup merge of #148285 - nxsaken:const_control_flow_1, r=Mark-Simula…
matthiaskrgr Nov 9, 2025
6397a4e
prevent `TrivialClone` implementations from appearing in rustdoc output
joboet Mar 24, 2025
f1b38da
Prepare for merging from rust-lang/rust
invalid-email-address Nov 10, 2025
d45363b
Merge ref '8401398e1f14' from rust-lang/rust
invalid-email-address Nov 10, 2025
c7a23a8
Add tracking issue number
nxsaken Nov 10, 2025
a81606c
Expand pow docs with special-case tests
reddevilmidzy Nov 10, 2025
b2e2780
Fix a typo in the documentation for the strict_shr function
reddevilmidzy Nov 10, 2025
927ce59
uefi: fs: Add file times plumbing
Ayush1325 Aug 12, 2025
7d361d1
Fix new `function_casts_as_integer` lint errors in core, std, panic_u…
GuillaumeGomez May 23, 2025
a3c99ce
Allow `function_casts_as_integer` in coretest test
GuillaumeGomez May 27, 2025
cbbece4
Auto merge of #135634 - joboet:trivial-clone, r=Mark-Simulacrum
bors Nov 10, 2025
037fcff
feat: Add `bit_width` for unsigned `NonZero<T>`
sorairolake Nov 10, 2025
6e40ddc
Make SIMD intrinsics available in `const`-contexts
sayantn Nov 3, 2025
4086455
Auto merge of #148737 - zachs18:unit-is-zero, r=joboet
bors Nov 11, 2025
8c234a8
rename default branch to main
marcoieni Nov 11, 2025
49b0bd1
Rollup merge of #141470 - GuillaumeGomez:function_casts_as_integer, r…
Zalathar Nov 11, 2025
5fd01e9
Rollup merge of #147771 - nxsaken:div_shlr_exact, r=dtolnay
Zalathar Nov 11, 2025
2b0c954
Rollup merge of #148694 - joboet:teeos-sync, r=ChrisDenton
Zalathar Nov 11, 2025
5370a03
Rollup merge of #148775 - reddevilmidzy:fix-typo, r=joboet
Zalathar Nov 11, 2025
22222ff
add logic tests for ternarylogic
folkertdev Nov 11, 2025
15a6233
`vec_recycle`: implementation
GrigorenkoPV Oct 31, 2025
a6943ae
Auto merge of #148818 - Zalathar:rollup-4vujcg0, r=Zalathar
bors Nov 11, 2025
4c74f08
improve ternary logic tests
folkertdev Nov 11, 2025
7baf5fc
CStr docs: Fix CStr vs &CStr confusion
btj Nov 11, 2025
c954266
Stabilize vec_into_raw_parts
GoldsteinE Nov 11, 2025
9cf6c37
Some tweaks
btj Nov 11, 2025
8db05cf
Bump library dependencies
jamie-osec Nov 11, 2025
99fa698
improve primitive reference PartialEq docs
ericseppanen Nov 11, 2025
6964fd2
fix typo in primitive reference docs
ericseppanen Nov 11, 2025
1132958
Remove more #[must_use] from portable-simd
dtolnay Nov 11, 2025
ce38607
Implement `Read::read_array`
joshtriplett Nov 12, 2025
e31ff22
New format_args!()+fmt::Arguments implementation.
m-ou-se Nov 10, 2025
1271007
Remove the 'always set' bit from FormattingOptions.
m-ou-se Nov 11, 2025
43b3b41
Document fmt::Arguments internal representation.
m-ou-se Nov 11, 2025
ba2b60f
Clarify internal fmt::Arguments documentation.
m-ou-se Nov 12, 2025
ec3ab5d
Allow larger string pieces in fmt::Arguments repr.
m-ou-se Nov 12, 2025
351a2f4
Merge pull request #1953 from sayantn/masked-load-store
folkertdev Nov 12, 2025
82406e3
Fix comment about potential niche in FormattingOptions.
m-ou-se Nov 12, 2025
76eab1f
Clarify comment.
m-ou-se Nov 12, 2025
17ddeea
Add comment.
m-ou-se Nov 12, 2025
3ace34e
Refactor `Box::take`
edwloef Nov 12, 2025
1acdfdb
Use SIMD intrinsics for vector shifts
sayantn Nov 12, 2025
3ad0481
Guard against incorrect `read_buf_exact` implementations
joshtriplett Nov 13, 2025
547de4c
Merge pull request #1959 from folkertdev/ternary-logic-tests-2
folkertdev Nov 13, 2025
a03c9bb
Merge pull request #1955 from sayantn/vector-shifts
folkertdev Nov 13, 2025
89bf0ed
add missing s390x target feature to std detect test
folkertdev Nov 13, 2025
dbcde70
Auto merge of #148587 - RalfJung:duration_from_nanos_u128, r=Mark-Sim…
bors Nov 13, 2025
cf2d11c
Expose fmt::Arguments::from_str as unstable.
m-ou-se Nov 13, 2025
35db1f9
add note to `lines` docs about empty str behavior
msmoiz Nov 13, 2025
2622f19
fix incorrect import on `aarch64-unknown-openbsd`
folkertdev Nov 13, 2025
5e9a0d3
update language from "no lines" to "empty iterator"
msmoiz Nov 14, 2025
c1938a9
Rollup merge of #148826 - btj:cstr-docs, r=joboet
Zalathar Nov 14, 2025
8600fa7
Rollup merge of #148850 - joshtriplett:read-array, r=joboet
Zalathar Nov 14, 2025
871a4b3
Rollup merge of #148867 - edwloef:refactor-box-take, r=joboet
Zalathar Nov 14, 2025
821dbaa
Rollup merge of #148902 - folkertdev:detect-s390x-target-feature, r=t…
Zalathar Nov 14, 2025
5207380
Rollup merge of #148906 - m-ou-se:fmt-args-from-str, r=dtolnay
Zalathar Nov 14, 2025
52d7065
Move `into_try_type` to a free function
scottmcm Nov 13, 2025
076301c
Rollup merge of #148725 - scottmcm:experiment-new-try-block-v3, r=pet…
Zalathar Nov 14, 2025
fdb5fab
Combine `impl<'a> Arguments<'a>` blocks
dtolnay Nov 13, 2025
d140f2e
Auto merge of #148940 - dtolnay:implarguments, r=joboet
bors Nov 14, 2025
90925c4
Remove `rustc_inherit_overflow_checks` from `position()` in slice ite…
theemathas Nov 14, 2025
dc930ec
Stabilize `char_max_len`
GrigorenkoPV Aug 19, 2025
625ff29
Auto merge of #138918 - Ayush1325:uefi-fs-time, r=joboet
bors Nov 14, 2025
25f9566
Auto merge of #148944 - theemathas:rm_inherit_overflow, r=joboet
bors Nov 14, 2025
4b42224
aarch64: Remove withdrawn FEAT_TME
maurer Nov 14, 2025
9035059
const-eval: fix and re-enable pointer fragment support
RalfJung Oct 29, 2025
e927a33
Document Error::{new,other} as to be avoided in pre_exec
purplesyringa Nov 15, 2025
3c3b49b
Auto merge of #148526 - reddevilmidzy:docs, r=Mark-Simulacrum
bors Nov 15, 2025
92835c3
Rollup merge of #148416 - GrigorenkoPV:vec_recycle, r=Mark-Simulacrum
Zalathar Nov 16, 2025
ec924d0
Rollup merge of #148827 - GoldsteinE:stabilize-vec-into-raw-parts, r=…
Zalathar Nov 16, 2025
c3dc90e
Rollup merge of #148832 - clubby789:cargo-update-library-11-11-25, r=…
Zalathar Nov 16, 2025
1332a23
Rollup merge of #148836 - ericseppanen:primitive_reference_docs, r=Ma…
Zalathar Nov 16, 2025
5b67b09
fix a couple unstable attributes
pitaj May 4, 2025
f7e9a77
IterRangeFrom: overflow panic after yielding MAX
pitaj May 4, 2025
0860ad8
Auto merge of #148259 - RalfJung:const-ptr-fragment, r=oli-obk
bors Nov 16, 2025
3331108
add must_use to extract_if methods
RalfJung Nov 16, 2025
d3b94c4
Rollup merge of #148703 - pitaj:rangefrom-overflow_checks, r=Mark-Sim…
matthiaskrgr Nov 16, 2025
16e062b
Rollup merge of #148914 - folkertdev:aarch64-openbsd-fix-import, r=Ma…
matthiaskrgr Nov 16, 2025
02f6650
Rollup merge of #148971 - purplesyringa:pre-exec-error-constructor, r…
matthiaskrgr Nov 16, 2025
7572063
Rollup merge of #148995 - RalfJung:extract_if, r=the8472
matthiaskrgr Nov 16, 2025
6874253
correct some `#[simd_test]` attributes
sayantn Nov 10, 2025
00c8f1d
add autodiff examples
ZuseZ4 Nov 12, 2025
82b2b14
Auto merge of #148478 - RalfJung:rotating-funnel, r=Mark-Simulacrum
bors Nov 17, 2025
22ede45
Rollup merge of #148752 - nxsaken:const_manually_drop_take, r=scottmcm
Zalathar Nov 17, 2025
6396975
Rollup merge of #148757 - nxsaken:const_mem_take, r=scottmcm
Zalathar Nov 17, 2025
021fd20
Rollup merge of #148912 - msmoiz:main, r=scottmcm
Zalathar Nov 17, 2025
9f54f0d
Auto merge of #149013 - Zalathar:rollup-io1ddhc, r=Zalathar
bors Nov 17, 2025
fea16b8
Merge pull request #1960 from maurer/remove-tme
folkertdev Nov 17, 2025
b94e1ce
correct signedness of pmadd arguments
folkertdev Nov 17, 2025
2b9069b
Merge pull request #1957 from marcoieni/rename-default-branch-to-main
marcoieni Nov 17, 2025
12dbe29
Merge pull request #1961 from folkertdev/pmadd-correct-signedness
sayantn Nov 17, 2025
6573df8
std: move `kernel_copy` to `sys`
joboet Sep 26, 2025
6fcadb1
recommend using a HashMap if a HashSet's second generic parameter doe…
Qelxiros Sep 30, 2025
610464d
Rollup merge of #145610 - GrigorenkoPV:char_max_len, r=Amanieu
matthiaskrgr Nov 17, 2025
60136b6
Rollup merge of #148504 - NeatNit:intlong, r=ibraheemdev
matthiaskrgr Nov 17, 2025
e866442
Improve the documentation of atomic::fence
matthieu-m Oct 19, 2025
f381402
Rollup merge of #147077 - joboet:mov_kernel_copy_sys, r=ibraheemdev
matthiaskrgr Nov 17, 2025
8eaad0c
Match <OsString as Debug>::fmt to that of str
tamird Aug 7, 2023
ce4c3ef
Remove <os::Vars as Debug> workaround
tamird Aug 13, 2023
ed772fb
Replace OffsetOf by an actual sum.
cjgillot Oct 25, 2025
0621a12
Honor allow_internal_unstable for const intrinsics.
cjgillot Nov 1, 2025
c3a864f
Complete doc.
cjgillot Nov 6, 2025
c6bbdfe
std: sys: fs: uefi: Implement stat
Ayush1325 Nov 15, 2025
6901197
Auto merge of #148151 - cjgillot:no-offset-of, r=scottmcm
bors Nov 18, 2025
ecbb256
Rollup merge of #148970 - Ayush1325:uefi-fs-stat, r=joboet
GuillaumeGomez Nov 18, 2025
11ebbf9
Auto merge of #149059 - GuillaumeGomez:rollup-s6m2mmy, r=GuillaumeGomez
bors Nov 18, 2025
532107a
Rollup merge of #147887 - matthieu-m:task/lib-core-sync-atomic-fence-…
matthiaskrgr Nov 18, 2025
6579c54
feat: Change return type of `NonZero::bit_width`
sorairolake Nov 18, 2025
ddc961f
Auto merge of #149063 - matthiaskrgr:rollup-6z23izv, r=matthiaskrgr
bors Nov 18, 2025
c2b0f92
Add Command::get_env_clear
schneems Nov 19, 2025
abde4a5
Rollup merge of #147171 - Qelxiros:hashmap_diag, r=fee1-dead
matthiaskrgr Nov 19, 2025
bdbd010
Rollup merge of #147521 - sayantn:simd-const-intrinsics, r=madsmtm
matthiaskrgr Nov 19, 2025
164c8e5
Rollup merge of #148201 - ZuseZ4:autodiff-activity-docs, r=oli-obk
matthiaskrgr Nov 19, 2025
014ec4c
Rollup merge of #148797 - sorairolake:feature/non-zero-uint-bit-width…
matthiaskrgr Nov 19, 2025
2606650
Rollup merge of #148798 - tamird:esc-single-quote, r=Amanieu
matthiaskrgr Nov 19, 2025
395ab82
Stabilize `unchecked_neg` and `unchecked_shifts`
nxsaken Nov 19, 2025
24851ee
Add missing trailing period to RustDoc for fn create_dir().
ximon18 Nov 19, 2025
d4714ae
Add Box::(try_)clone_from_ref(_in)
zachs18 Nov 15, 2024
ea01aaa
Implement some conversions using Box::clone_from_ref
zachs18 Nov 15, 2024
27c22f5
Add Rc::(try_)clone_from_ref(_in)
zachs18 Nov 15, 2024
9e877a5
Implelement the clone part of Rc::make_mut using Rc::clone_from_ref_in
zachs18 Nov 19, 2025
430c3ef
Add Arc::(try_)clone_from_ref(_in)
zachs18 Nov 19, 2025
99d0906
Implement the clone part of Arc::make_mut using Arc::clone_from_ref_in
zachs18 Nov 19, 2025
9b8837f
fs: Update skipped file lock tests to match flock support
tgross35 Nov 19, 2025
2c5a97a
See if this is the time we can remove `layout::size_align`
scottmcm Nov 19, 2025
d7e9940
fs: Expect a test failure if file locks aren't supported
tgross35 Nov 19, 2025
1d2162a
test: Use an ignore message for fs Android skips
tgross35 Nov 19, 2025
34e7c23
enable `avx10_target_feature` in core (used by stdarch)
folkertdev Nov 19, 2025
6ede1fc
std: sys: fs: uefi: Fix FileAttr size
Ayush1325 Nov 20, 2025
ef0ff5b
In `BTreeMap::eq`, do not compare the elements if the sizes are diffe…
zachs18 Nov 20, 2025
83018d0
Add regression test for collections' PartialEq::eq impls not comparin…
zachs18 Nov 20, 2025
20ff130
sgx: avoid unnecessarily creating a slice
RalfJung Nov 19, 2025
37cb56e
iter::ArrayChunks::into_remainder ought not return option
bend-n Nov 20, 2025
a5cfec7
Auto merge of #149118 - folkertdev:stdarch-sync-2025-11-19, r=tgross35
bors Nov 20, 2025
94a293b
Rollup merge of #146925 - DiuDiu777:va-doc-fix, r=tgross35
matthiaskrgr Nov 20, 2025
5a42b29
Rollup merge of #147035 - joboet:extract_if_debug, r=tgross35
matthiaskrgr Nov 20, 2025
e4f0951
std: sys: net: uefi: Implement read_vectored
Ayush1325 Nov 20, 2025
ad28feb
Constify `residual_into_try_type`
nxsaken Nov 20, 2025
a760712
Auto merge of #149132 - matthiaskrgr:rollup-8khp9s2, r=matthiaskrgr
bors Nov 20, 2025
28ff18a
Auto merge of #149109 - scottmcm:align-always-alignment, r=tgross35
bors Nov 20, 2025
a58e1ec
Rollup merge of #149088 - ximon18:patch-1, r=ChrisDenton
matthiaskrgr Nov 20, 2025
7eabbd3
Rollup merge of #149111 - tgross35:fs-test-updates, r=ChrisDenton
matthiaskrgr Nov 20, 2025
e1dc02a
Rollup merge of #149113 - RalfJung:sgx-less-unsafe, r=ChrisDenton
matthiaskrgr Nov 20, 2025
ce46679
Rollup merge of #149123 - Ayush1325:uefi-fs-size-fix, r=ChrisDenton
matthiaskrgr Nov 20, 2025
f2e20c6
library: upgrade to hashbrown v0.16.1
cuviper Nov 20, 2025
b6ef1f3
Auto merge of #149158 - matthiaskrgr:rollup-qmtvboe, r=matthiaskrgr
bors Nov 20, 2025
76a6d0a
Rollup merge of #149127 - bend-n:iter_array_chunks_into_remainder_is_…
Zalathar Nov 21, 2025
984af9d
Rollup merge of #149134 - Ayush1325:uefi-tcp4-vector, r=joboet
Zalathar Nov 21, 2025
24652e2
Rollup merge of #149135 - nxsaken:const_residual_into_try_type, r=sco…
Zalathar Nov 21, 2025
6c760a1
Move safe computation out of unsafe block
chirizxc Nov 21, 2025
9a46c95
Fix typo in HashMap performance comment
winningMove Nov 22, 2025
d6270ad
Auto merge of #149159 - cuviper:library-hashbrown-0.16.1, r=Amanieu
bors Nov 22, 2025
cdfb3dc
Add `#[rustc_should_not_be_called_on_const_items]` to std methods
Urgau Nov 2, 2025
8f5aabe
Rollup merge of #148407 - Urgau:suspicious_int_mutable_consts, r=Jona…
matthiaskrgr Nov 22, 2025
e400b58
Rollup merge of #149194 - chirizxc:patch-1, r=Noratrieb
matthiaskrgr Nov 22, 2025
9666168
Rollup merge of #149204 - winningMove:patch-1, r=chenyukang
matthiaskrgr Nov 22, 2025
b8a597f
Add doc aliases list and vector to Vec
madsmtm Nov 23, 2025
d6d165b
Revise the notes about atomics on Arm.
thejpster Nov 23, 2025
8981b94
intrinsics: clarify float min/max behavios for NaNs and signed zeros
RalfJung Nov 23, 2025
04cb2f9
add NaN examples to public min/max functions
RalfJung Nov 24, 2025
42aa610
implement and test `Iterator::{exactly_one, collect_array}`
jdonszelmann Nov 24, 2025
f608ed2
num: Implement `uint_gather_scatter_bits` feature for unsigned integers
okaneco Nov 19, 2025
e3e34e0
Fix missing double-quote in `std::env::consts::OS` values
KeyWeeUsr Nov 24, 2025
5b46121
rustc_target: aarch64: Remove deprecated FEAT_TME
maurer Nov 14, 2025
f8dfb21
Suggest _bytes versions of endian-converting methods
kornelski Nov 25, 2025
fba1b88
Motor OS: make decode_error_kind more comprehensive
lasiotus Nov 25, 2025
e99d7d2
Simplify OnceCell Clone impl
tisonkun Nov 25, 2025
1dc2d16
Rollup merge of #147736 - folkertdev:stabilize-asm-cfg, r=jdonszelmann
matthiaskrgr Nov 25, 2025
f4c7565
Rollup merge of #149305 - tisonkun:oncecell-simplify, r=chenyukang
matthiaskrgr Nov 25, 2025
1e89a5f
Implement offload intrinsic
Sa4dUs Oct 19, 2025
059ad2a
Update rustc-dev-guide
Sa4dUs Nov 17, 2025
997f256
Add a diagnostic attribute for special casing const bound errors for …
oli-obk Nov 6, 2025
4620a83
float::clamp: make treatment of signed zeros unspecified
RalfJung Nov 23, 2025
13cb0c4
Fix typo in comment.
m-ou-se Nov 26, 2025
4c7ca25
Rollup merge of #147936 - Sa4dUs:offload-intrinsic, r=ZuseZ4
Zalathar Nov 26, 2025
f6f83ff
Rollup merge of #148951 - maurer:remove-tme, r=folkertdev
Zalathar Nov 26, 2025
e3153fa
Show backtrace on allocation failures when possible
bjorn3 Oct 15, 2025
47d26d9
optimize slice::Iter::next_chunk
bend-n Nov 20, 2025
34b229d
Auto merge of #149079 - zachs18:clone_from_ref, r=Mark-Simulacrum
bors Nov 26, 2025
430b4c5
Rollup merge of #148048 - thaliaarchi:stabilize-maybeuninit-write-sli…
Zalathar Nov 27, 2025
f0a5a4b
Rollup merge of #148641 - oli-obk:push-olzwqxsmnxmz, r=jackh726
Zalathar Nov 27, 2025
d4f62b6
Rollup merge of #149074 - schneems:schneems/get_env_clear, r=Mark-Sim…
Zalathar Nov 27, 2025
887145f
Rollup merge of #149097 - okaneco:gather_scatter_bits, r=Mark-Simulacrum
Zalathar Nov 27, 2025
e39c6d6
Rollup merge of #149131 - bend-n:optimize_slice_iter_next_chunk, r=Ma…
Zalathar Nov 27, 2025
7291847
Rollup merge of #149239 - RalfJung:float-intrinsics, r=tgross35
Zalathar Nov 27, 2025
d7a927c
Rollup merge of #149301 - moturus:main, r=Mark-Simulacrum
Zalathar Nov 27, 2025
f33718f
Rollup merge of #149238 - RalfJung:clamp-signed-zeros, r=Amanieu
Zalathar Nov 27, 2025
5f1ac62
Rollup merge of #149270 - jdonszelmann:exact-length-collection, r=Mar…
Zalathar Nov 27, 2025
072eb13
Rollup merge of #149295 - kornelski:endian_bytes, r=Mark-Simulacrum
Zalathar Nov 27, 2025
dd5d58e
Rollup merge of #149349 - m-ou-se:fmt-arg-comment-typo, r=Mark-Simula…
Zalathar Nov 27, 2025
e052b65
Auto merge of #149370 - Zalathar:rollup-6fkk5x4, r=Zalathar
bors Nov 27, 2025
410eeb8
stabilize maybe_uninit_slice
bend-n Nov 19, 2025
fcf4e97
fix
bend-n Nov 19, 2025
d9a0d71
Add `impl TrustedLen` on `BTree{Map,Set}` iterators
yotamofek Nov 27, 2025
c46aaed
tests
bend-n Sep 26, 2025
419b3fd
constify from_fn, try_from_fn, try_map, map
bend-n Oct 12, 2025
8684698
redo the drain
bend-n Nov 24, 2025
f3f1687
Rollup merge of #148589 - yoshuawuyts:DropGuard-dismiss, r=joshtriplett
matthiaskrgr Nov 27, 2025
473f8c2
float::minimum/maximum: say which exact IEEE operation this correspon…
RalfJung Nov 27, 2025
0b464e2
Remove outdated comment
yotamofek Nov 27, 2025
0391420
Rollup merge of #149381 - yotamofek:pr/library/btree-iter-trustedlen,…
matthiaskrgr Nov 27, 2025
57220a5
Auto merge of #149397 - matthiaskrgr:rollup-go79y6a, r=matthiaskrgr
bors Nov 27, 2025
5932f10
Use System allocator for thread-local storage
orlp Jul 25, 2025
e307e6c
Use spinlock for ThreadId if 64-bit atomic unavailable
orlp Jul 26, 2025
2b5fe5f
Add documentation guaranteeing global allocator use of TLS
orlp Jul 29, 2025
da9c797
Ensure set_current is called early during thread init
orlp Sep 21, 2025
323be84
Address review comments
orlp Oct 1, 2025
033b726
Use checked_add instead of manual overflow check
orlp Oct 1, 2025
f7a7e9e
Fix SGX implementation
orlp Oct 2, 2025
74da5ae
Add inline(never) to prevent reordering after TLS has been destroyed
orlp Oct 2, 2025
eeb2c5d
Silence dead code warning for ThreadInit::init
orlp Nov 27, 2025
fa06284
Add missing feature flag
orlp Nov 28, 2025
206df2d
Rollup merge of #149087 - nxsaken:unchecked_neg_shifts_stabilize, r=A…
Zalathar Nov 28, 2025
60b354a
Auto merge of #148020 - bjorn3:oom_backtrace, r=Mark-Simulacrum
bors Nov 28, 2025
7cb04de
Auto merge of #144465 - orlp:system-alloc-tls, r=Mark-Simulacrum
bors Nov 29, 2025
938b82c
Rollup merge of #149395 - RalfJung:float-minimum, r=scottmcm
jhpratt Nov 29, 2025
6537bf9
Rollup merge of #149396 - yotamofek:pr/library/outdated-comment, r=ch…
jhpratt Nov 29, 2025
b5dacca
Auto merge of #149441 - jhpratt:rollup-4hmqc0z, r=jhpratt
bors Nov 29, 2025
500b8aa
std: sys: fs: uefi: Implement rmdir and unlink
Ayush1325 Nov 18, 2025
c2befae
std: split up the `thread` module (preparation)
joboet Nov 29, 2025
c241fbc
std: split up the `thread` module
joboet Nov 9, 2025
32fb499
std: update broken links in `thread` module
joboet Nov 9, 2025
6be62c9
Rollup merge of #148765 - joboet:split-up-thread, r=ChrisDenton
matthiaskrgr Nov 29, 2025
2804b7b
Clarify edge cases for Barrier::new
tisonkun Nov 23, 2025
1732c00
float::min/max: reference NaN bit pattern rules
RalfJung Nov 30, 2025
539ebbd
Rollup merge of #149236 - tisonkun:patch-1, r=tgross35
matthiaskrgr Nov 30, 2025
aa5eba6
Rollup merge of #149475 - RalfJung:min-max-nan, r=tgross35
matthiaskrgr Nov 30, 2025
a74fc42
ThreadId generation fallback path: avoid spurious yields
RalfJung Nov 30, 2025
7957796
Implement `clamp_magnitude` for floats & signed integers
IntegralPilot Nov 8, 2025
4fc95c1
Auto merge of #149481 - RalfJung:threadid-fallback, r=joboet
bors Dec 1, 2025
b390083
Rollup merge of #148690 - IntegralPilot:clamp-mag, r=joboet
matthiaskrgr Dec 1, 2025
dd2f90f
Rollup merge of #149102 - bend-n:maybe_uninit_slice, r=joboet
matthiaskrgr Dec 1, 2025
a785e96
Rollup merge of #145628 - tinnamchoi:fix-btree-append, r=Amanieu
Zalathar Dec 2, 2025
b8a027a
Rollup merge of #149241 - thejpster:fix-armv4t-armv5te-bare-metal, r=…
Zalathar Dec 2, 2025
88f8387
Auto merge of #149125 - zachs18:btreemap-eq-perf, r=workingjubilee
bors Dec 2, 2025
4f583b2
Merge from 646a3f8c15baefb98dc6e0c1c1ba3356db702d2a with conflicts
Apr 23, 2026
8adc54a
Update toolchain to 2025-12-03
Apr 23, 2026
37c6ab2
Update Kani version to 78eb4658b0f39ef0cbb88b4918c6e9c3c030ef5e
Apr 23, 2026
022b88d
Update VeriFast proofs
Apr 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
103 changes: 64 additions & 39 deletions library/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions library/alloc/src/alloc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ unsafe fn exchange_malloc(size: usize, align: usize) -> *mut u8 {
unsafe extern "Rust" {
// This is the magic symbol to call the global alloc error handler. rustc generates
// it to call `__rg_oom` if there is a `#[alloc_error_handler]`, or to call the
// default implementations below (`__rdl_oom`) otherwise.
// default implementations below (`__rdl_alloc_error_handler`) otherwise.
#[rustc_std_internal_symbol]
fn __rust_alloc_error_handler(size: usize, align: usize) -> !;
}
Expand Down Expand Up @@ -425,7 +425,7 @@ pub mod __alloc_error_handler {
// called via generated `__rust_alloc_error_handler` if there is no
// `#[alloc_error_handler]`.
#[rustc_std_internal_symbol]
pub unsafe fn __rdl_oom(size: usize, _align: usize) -> ! {
pub unsafe fn __rdl_alloc_error_handler(size: usize, _align: usize) -> ! {
unsafe extern "Rust" {
// This symbol is emitted by rustc next to __rust_alloc_error_handler.
// Its value depends on the -Zoom={panic,abort} compiler option.
Expand Down
55 changes: 34 additions & 21 deletions library/alloc/src/borrow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ use crate::fmt;
#[cfg(not(no_global_oom_handling))]
use crate::string::String;

// FIXME(inference): const bounds removed due to inference regressions found by crater;
// see https://github.com/rust-lang/rust/issues/147964
// #[rustc_const_unstable(feature = "const_convert", issue = "143773")]
#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_const_unstable(feature = "const_convert", issue = "143773")]
impl<'a, B: ?Sized> const Borrow<B> for Cow<'a, B>
where
B: ToOwned,
B::Owned: [const] Borrow<B>,
impl<'a, B: ?Sized + ToOwned> Borrow<B> for Cow<'a, B>
// where
// B::Owned: [const] Borrow<B>,
{
fn borrow(&self) -> &B {
&**self
Expand Down Expand Up @@ -214,43 +215,51 @@ impl<B: ?Sized + ToOwned> Clone for Cow<'_, B> {
impl<B: ?Sized + ToOwned> Cow<'_, B> {
/// Returns true if the data is borrowed, i.e. if `to_mut` would require additional work.
///
/// Note: this is an associated function, which means that you have to call
/// it as `Cow::is_borrowed(&c)` instead of `c.is_borrowed()`. This is so
/// that there is no conflict with a method on the inner type.
///
/// # Examples
///
/// ```
/// #![feature(cow_is_borrowed)]
/// use std::borrow::Cow;
///
/// let cow = Cow::Borrowed("moo");
/// assert!(cow.is_borrowed());
/// assert!(Cow::is_borrowed(&cow));
///
/// let bull: Cow<'_, str> = Cow::Owned("...moo?".to_string());
/// assert!(!bull.is_borrowed());
/// assert!(!Cow::is_borrowed(&bull));
/// ```
#[unstable(feature = "cow_is_borrowed", issue = "65143")]
pub const fn is_borrowed(&self) -> bool {
match *self {
pub const fn is_borrowed(c: &Self) -> bool {
match *c {
Borrowed(_) => true,
Owned(_) => false,
}
}

/// Returns true if the data is owned, i.e. if `to_mut` would be a no-op.
///
/// Note: this is an associated function, which means that you have to call
/// it as `Cow::is_owned(&c)` instead of `c.is_owned()`. This is so that
/// there is no conflict with a method on the inner type.
///
/// # Examples
///
/// ```
/// #![feature(cow_is_borrowed)]
/// use std::borrow::Cow;
///
/// let cow: Cow<'_, str> = Cow::Owned("moo".to_string());
/// assert!(cow.is_owned());
/// assert!(Cow::is_owned(&cow));
///
/// let bull = Cow::Borrowed("...moo?");
/// assert!(!bull.is_owned());
/// assert!(!Cow::is_owned(&bull));
/// ```
#[unstable(feature = "cow_is_borrowed", issue = "65143")]
pub const fn is_owned(&self) -> bool {
!self.is_borrowed()
pub const fn is_owned(c: &Self) -> bool {
!Cow::is_borrowed(c)
}

/// Acquires a mutable reference to the owned form of the data.
Expand Down Expand Up @@ -327,11 +336,13 @@ impl<B: ?Sized + ToOwned> Cow<'_, B> {
}
}

// FIXME(inference): const bounds removed due to inference regressions found by crater;
// see https://github.com/rust-lang/rust/issues/147964
// #[rustc_const_unstable(feature = "const_convert", issue = "143773")]
#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_const_unstable(feature = "const_convert", issue = "143773")]
impl<B: ?Sized + ToOwned> const Deref for Cow<'_, B>
where
B::Owned: [const] Borrow<B>,
impl<B: ?Sized + ToOwned> Deref for Cow<'_, B>
// where
// B::Owned: [const] Borrow<B>,
{
type Target = B;

Expand Down Expand Up @@ -441,11 +452,13 @@ where
}
}

// FIXME(inference): const bounds removed due to inference regressions found by crater;
// see https://github.com/rust-lang/rust/issues/147964
// #[rustc_const_unstable(feature = "const_convert", issue = "143773")]
#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_const_unstable(feature = "const_convert", issue = "143773")]
impl<T: ?Sized + ToOwned> const AsRef<T> for Cow<'_, T>
where
T::Owned: [const] Borrow<T>,
impl<T: ?Sized + ToOwned> AsRef<T> for Cow<'_, T>
// where
// T::Owned: [const] Borrow<T>,
{
fn as_ref(&self) -> &T {
self
Expand Down
Loading
Loading