Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
552 commits
Select commit Hold shift + click to select a range
687320f
chore: convert println! logging to trace! logging during compilation
madhav-madhusoodanan Oct 15, 2025
765278d
feat: code cleanup 1. changing array bracket prefixes from &'static str
madhav-madhusoodanan Oct 15, 2025
20cacb0
chore: make names in config.rs files uniform across architectures
madhav-madhusoodanan Oct 16, 2025
414470c
fix: remove the PATH update in ci/run.sh
madhav-madhusoodanan Oct 17, 2025
4b1299e
feat: fixing Rust's print mechanism for _mm512_conj_pch
madhav-madhusoodanan Oct 23, 2025
1a5c117
feat: added x86_64-unknown-linux-gnu to the test matrix of
madhav-madhusoodanan Oct 26, 2025
ceaf2b0
intrinsic test: deduplicate rust constants
folkertdev Oct 25, 2025
3034e65
intrinsic test: fix formatting (a bit, at least)
folkertdev Oct 25, 2025
8ba0961
Make ADC/ADX intrinsics safe
sayantn Aug 28, 2025
050bfd6
Make `_mm512_reduce_mul_ph` safe (missed)
sayantn Aug 28, 2025
b4181ca
Make `_bswap{,64}` safe
sayantn Aug 29, 2025
27f925b
Make RDRAND/RDSEED safe
sayantn Aug 29, 2025
6580b3b
Make all TBM intrinsics safe
sayantn Aug 29, 2025
bd3f30c
Make `_mm_prefetch` safe
sayantn Aug 30, 2025
a647a6f
Make the fence intrinsics and `_mm_pause` safe
sayantn Aug 30, 2025
9f18885
const select_unpredictable
clarfonthey Oct 15, 2025
456bad3
Enable assert_instr for wasm32 throw
coolreader18 Oct 24, 2025
f242532
Start documenting autodiff activities
ZuseZ4 Oct 28, 2025
e776261
Update CURRENT_RUSTC_VERSION post-bump
cuviper Oct 27, 2025
c8e771c
Auto merge of #148093 - Azzybana:master, r=nnethercote
bors Oct 29, 2025
0931eb1
Merge ref '292be5c7c051' from rust-lang/rust
Oct 30, 2025
e2be805
Rollup merge of #138217 - theemathas:cow_is_owned_borrowed_associated…
jhpratt Oct 30, 2025
f8c098e
Constify `ControlFlow` methods (no unstable features)
nxsaken Oct 30, 2025
51d4e6b
Merge pull request #1946 from folkertdev/intrinsic-test-dedup-constants
sayantn Oct 30, 2025
afa6a6f
Move wasm `throw` intrinsic back to `unwind`
purplesyringa Oct 30, 2025
d2dd356
Auto merge of #148291 - purplesyringa:move-throw-to-unwind, r=bjorn3
bors Oct 30, 2025
02fed38
docs: Fix argument names for `carrying_mul_add`
sorairolake Oct 31, 2025
3402e40
enable flock for illumos
pietroalbini Oct 31, 2025
dbe9fa7
Implement VecDeque::extract_if
tisonkun Oct 16, 2025
758d975
refactor: move runtime functions to core
Kmeakin Oct 11, 2025
339593e
refactor: format `unicode_data`
Kmeakin Oct 11, 2025
21d9eb7
refactor: make string formatting more readable
Kmeakin Oct 11, 2025
b3fcc06
refactor: make `unicode_data` tests normal tests
Kmeakin Oct 19, 2025
863241e
add {Box, (Unique){Rc, Arc}}::(try_)map
Qelxiros Oct 6, 2025
48f59eb
Auto merge of #144420 - Qelxiros:smart_pointer_try_map, r=joboet
bors Oct 31, 2025
cb183ab
Rollup merge of #147161 - antonilol:vec-deque-extend-from-within, r=j…
matthiaskrgr Oct 31, 2025
0186d4c
Rollup merge of #147622 - Kmeakin:km/unicode-data/refactors, r=joboet
matthiaskrgr Oct 31, 2025
aec99ec
Rollup merge of #147780 - tisonkun:vec-deque-extract-if, r=joboet
matthiaskrgr Oct 31, 2025
ea060b1
Rollup merge of #147986 - jesseschalken:use-fstatat-macos, r=joboet
matthiaskrgr Oct 31, 2025
1aa870b
Rollup merge of #148319 - sorairolake:fix-carrying_mul_add-docs, r=Am…
matthiaskrgr Oct 31, 2025
c2c63b2
Rollup merge of #148322 - oxidecomputer:ea-flock-illumos, r=ChrisDenton
matthiaskrgr Oct 31, 2025
5163600
cleanup: upstream dropped amx-transpose functionality
durin42 Oct 31, 2025
c2f7cdc
revert combined nonpoison/poison tests for condvar
connortsui20 Oct 31, 2025
53761b5
update `nonpoison::Condvar` to take guards by reference
connortsui20 Oct 31, 2025
d359ac1
move condvar test from mutex to condvar test file
connortsui20 Oct 31, 2025
debed5e
Auto merge of #148337 - matthiaskrgr:rollup-vojwz0m, r=matthiaskrgr
bors Nov 1, 2025
96b9a30
Rollup merge of #148338 - durin42:llvm-22-amx-transpose, r=workingjub…
matthiaskrgr Nov 1, 2025
1e37a3a
Rollup merge of #148343 - connortsui20:guard-ref-condvar, r=Amanieu
matthiaskrgr Nov 1, 2025
a22cdd2
Auto merge of #148356 - matthiaskrgr:rollup-mh4l2yi, r=matthiaskrgr
bors Nov 1, 2025
e00d5f6
implement VecDeque extend_front and prepend, add tests
antonilol Sep 30, 2025
fc96613
library: std: sys: net: uefi: tcp: Implement write_vectored
Ayush1325 Sep 7, 2025
b83348a
Fix documentation for std::panic::update_hook
ilai-deutel Nov 2, 2025
d56e2be
Auto merge of #147784 - nxsaken:div_exact_return_option, r=dtolnay
bors Nov 2, 2025
8a026f5
Rollup merge of #148374 - RalfJung:miri, r=RalfJung
matthiaskrgr Nov 2, 2025
515af1a
TypeId: make unstable layout/size explicit
jieyouxu Nov 2, 2025
196a5fa
Generalize branch references to HEAD
Kobzol Nov 2, 2025
a85821d
Auto merge of #148390 - matthiaskrgr:rollup-hu88mcf, r=matthiaskrgr
bors Nov 2, 2025
38cf54c
Rename {i,u}N::*exact_div to *div_exact
nxsaken Nov 2, 2025
f65c62c
Rename {u,i}N::*exact_sh{l,r} to *sh{l,r}_exact
nxsaken Oct 16, 2025
54a5e0f
Prepare for merging from rust-lang/rust
Kobzol Nov 2, 2025
1a8c9cf
Merge ref '73e6c9ebd912' from rust-lang/rust
Kobzol Nov 2, 2025
78c49c2
Rollup merge of #147947 - yotamofek:pr/lib/strip-circumfix, r=joboet
matthiaskrgr Nov 2, 2025
daced61
Auto merge of #148404 - matthiaskrgr:rollup-o61qhjw, r=matthiaskrgr
bors Nov 2, 2025
fd7805f
remove `unsafe` from `_mm_pause` uses
folkertdev Nov 2, 2025
aebc362
Rollup merge of #146573 - Randl:const-range, r=Mark-Simulacrum
matthiaskrgr Nov 2, 2025
7972153
Rollup merge of #146699 - heiher:is-ascii-lsx, r=Mark-Simulacrum
matthiaskrgr Nov 2, 2025
4e3bc73
Rollup merge of #148026 - joboet:dont-leak-thread-closure, r=Mark-Sim…
matthiaskrgr Nov 2, 2025
0ba0737
Rollup merge of #148135 - hax0kartik:fix-vx-unix-sock, r=Mark-Simulacrum
matthiaskrgr Nov 2, 2025
d149ea1
Rollup merge of #148395 - Kobzol:generalize-branch-references, r=marc…
matthiaskrgr Nov 2, 2025
10b1cce
std_detect: Support run-time detection on OpenBSD using elf_aux_info
brad0 Sep 25, 2025
79041ed
Auto merge of #148412 - matthiaskrgr:rollup-59a302x, r=matthiaskrgr
bors Nov 2, 2025
776d7a3
Rollup merge of #146260 - Qelxiros:146179-sliceindex-wrappers, r=jhpratt
matthiaskrgr Nov 3, 2025
23bd04b
Rollup merge of #148394 - jieyouxu:remark-typeid-no-layout-guarantees…
matthiaskrgr Nov 3, 2025
29dc0a1
Rollup merge of #148402 - folkertdev:stdarch-sync-nov-2025, r=sayantn
matthiaskrgr Nov 3, 2025
bf20594
add specialization for extend_front and prepend with copied slice ite…
antonilol Nov 3, 2025
f160ad9
Revert "unicode_data refactors RUST-147622"
jieyouxu Nov 3, 2025
9943888
Rollup merge of #148378 - ilai-deutel:update_hook-doc, r=joboet
GuillaumeGomez Nov 3, 2025
04535f2
Auto merge of #148446 - GuillaumeGomez:rollup-lxwlqol, r=GuillaumeGomez
bors Nov 3, 2025
abc7e74
Add alignment parameter to `simd_masked_{load,store}`
sayantn Oct 8, 2025
d1d649f
Repoint Waker::from_fn_ptr from feature request issue to tracking issue
dtolnay Nov 4, 2025
d79d61e
Rollup merge of #145915 - coolreader18:stabilize-fmt_from_fn, r=dtolnay
Zalathar Nov 4, 2025
9606e60
Rollup merge of #146057 - Ddystopia:waker-fn, r=dtolnay
Zalathar Nov 4, 2025
77d7b4c
Rollup merge of #146301 - Ayush1325:uefi-box, r=joboet
Zalathar Nov 4, 2025
c7875a0
assert that `#[rustc_pass_indirectly_in_non_rustic_abis]` is respected
folkertdev Sep 24, 2025
c48b3f2
btree: cleanup difference, intersection, is_subset
hkBst Oct 17, 2025
0cc927e
Implement Path::is_empty
ChrisDenton Nov 4, 2025
4ed4aa0
Remove no longer necessary lint allow
bjorn3 Oct 30, 2025
e5eb376
Fix link in c_longlong documentation
Nov 4, 2025
52a4dcb
Rollup merge of #147355 - sayantn:masked-loads, r=RalfJung,bjorn3
Zalathar Nov 4, 2025
dc6c1b8
Rollup merge of #148495 - ChrisDenton:path_is_empty, r=workingjubilee
Zalathar Nov 4, 2025
178ea41
Merge `Vec::push{,_mut}_within_capacity`
WaffleLapkin Nov 5, 2025
e7a3548
Add Allocator proxy impls for Box, Rc, and Arc
cramertj Nov 5, 2025
a2f5529
Rollup merge of #148517 - bjorn3:lint_cleanup, r=joboet
matthiaskrgr Nov 5, 2025
0aa5730
Rollup merge of #148534 - WaffleLapkin:push_within_capacity_now_with_…
matthiaskrgr Nov 5, 2025
7a2c418
Rollup merge of #147586 - folkertdev:std-detect-expands-to-true, r=Am…
Zalathar Nov 6, 2025
3bf2d56
use funnel shift as fallback impl for rotating shifts
RalfJung Nov 4, 2025
f4c4b0d
document behavior of rotations for n >= BITS
RalfJung Nov 4, 2025
8e6268a
style: Update doctests for `highest_one` and `lowest_one`
sorairolake Nov 5, 2025
e0b4578
Rollup merge of #146861 - antonilol:vec_deque_extend_front, r=joboet
matthiaskrgr Nov 6, 2025
55843ab
extract s390x `vector` and friends to their own rust feature
folkertdev Aug 20, 2025
e328224
`std_detect`: remove unneeded stability lines from s390x features macro
folkertdev Aug 20, 2025
ae6df2a
`std_detect`: give s390x features more accurate features / tracking i…
folkertdev Aug 20, 2025
05b876c
stabilize `stdarch_s390x_feature_detection`
folkertdev Aug 20, 2025
a56f595
stabilize `s390x_target_feature_vector`
folkertdev Aug 20, 2025
074f18a
core docs: add notes about availability of `Atomic*::from_mut_slice`
WaffleLapkin Nov 6, 2025
c8ecbbd
Auto merge of #148573 - matthiaskrgr:rollup-cn5viia, r=matthiaskrgr
bors Nov 6, 2025
b0a5ab6
stabilize duration_from_nanos_u128
RalfJung Nov 6, 2025
075625f
Sync str::rsplit_once example with str::split_once
AMDmi3 Nov 6, 2025
a33fc72
Add -Zannotate-moves for profiler visibility of move/copy operations
jsgf Oct 13, 2025
26ca3de
Enable std locking functions on AIX
amy-kwan Nov 7, 2025
f933f45
Rollup merge of #145992 - GrigorenkoPV:stabilize/vec_deque_pop_if, r=…
jhpratt Nov 7, 2025
59144c7
Rollup merge of #147808 - hkBst:btree-3, r=joboet
jhpratt Nov 7, 2025
3b0429b
Rollup merge of #148520 - sorairolake:update-lowest-highest-one-docte…
jhpratt Nov 7, 2025
5a7cb2e
Rollup merge of #148578 - WaffleLapkin:equal-alignment-atomic-from-mu…
jhpratt Nov 7, 2025
1af5dc0
Rollup merge of #148609 - AMDmi3:rsplit_once_example, r=chenyukang
jhpratt Nov 7, 2025
a29dcce
Stabilise 'as_array' in '[_]' and '*const [_]'; Stabilise 'as_mut_arr…
bjoernager Nov 7, 2025
505361d
update isolate_highest_one for NonZero<T>
vrtgs Oct 14, 2025
99763e3
Auto merge of #147029 - neuschaefer:memchr-2.7.6, r=marcoieni
bors Nov 7, 2025
26fc285
Replace `#[const_trait]` with `const` in libcore
fmease Nov 8, 2025
d6e65f9
Auto merge of #147803 - jsgf:move-copy-codegen, r=madsmtm,saethlin
bors Nov 8, 2025
88284e9
std: use a non-poisoning `RwLock` for the panic hook
joboet Nov 8, 2025
baf06cf
Rollup merge of #145656 - folkertdev:stabilize-s390x-vector, r=Amanieu
matthiaskrgr Nov 8, 2025
9d9b08e
Rollup merge of #147024 - brad0:std_detect_openbsd_elf_aux_info, r=Ma…
matthiaskrgr Nov 8, 2025
f2a97c8
Rollup merge of #147540 - bjoernager:slice-as-array, r=Amanieu
matthiaskrgr Nov 8, 2025
716a276
Rollup merge of #147686 - vrtgs:non-zero-isolate, r=joboet
matthiaskrgr Nov 8, 2025
a68a1bb
std: support `RwLock` and thread parking on TEEOS
joboet Nov 8, 2025
0c98a31
add `overflow_checks` intrinsic
pitaj Aug 4, 2024
d51276d
constify result unwrap unchecked
bend-n Oct 31, 2025
94e386b
Rollup merge of #128666 - pitaj:intrinsic-overflow_checks, r=BoxyUwU
Zalathar Nov 9, 2025
61c87fe
Rollup merge of #148079 - taj-p:master, r=Mark-Simulacrum
Zalathar Nov 9, 2025
d4c4088
Rollup merge of #148084 - the8472:prefixless-path-components-iter, r=…
Zalathar Nov 9, 2025
8865f0c
Rollup merge of #148126 - hax0kartik:vx-fix-148125, r=Mark-Simulacrum
Zalathar Nov 9, 2025
e5b8d4c
Rollup merge of #148333 - bend-n:const_result_unwrap_unchecked, r=mar…
Zalathar Nov 9, 2025
be8e25f
Rollup merge of #148539 - cramertj:alloc-arc, r=Amanieu
Zalathar Nov 9, 2025
064302d
Rollup merge of #148619 - amy-kwan:amyk/AddLockingFunctions_AIX, r=wo…
Zalathar Nov 9, 2025
ed369ff
Auto merge of #148721 - Zalathar:rollup-398va3y, r=Zalathar
bors Nov 9, 2025
fe3f52a
Constify `ControlFlow` methods (unstable bounds)
nxsaken Oct 30, 2025
d61ce24
Add tracking issue number
nxsaken Nov 9, 2025
a3d7eec
Update feature name, add tracking issue number
nxsaken Nov 9, 2025
7830d74
Implement the alternative `try` desugaring
scottmcm Mar 19, 2022
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
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
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
15a6233
`vec_recycle`: implementation
GrigorenkoPV Oct 31, 2025
a6943ae
Auto merge of #148818 - Zalathar:rollup-4vujcg0, r=Zalathar
bors 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
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
3ad0481
Guard against incorrect `read_buf_exact` implementations
joshtriplett 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
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
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
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
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
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
  •  
  •  
  •  
92 changes: 55 additions & 37 deletions 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 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 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