Skip to content

Merge subtree update for toolchain nightly-2025-04-06 #320

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10,000 commits into from
Apr 14, 2025
Merged
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
f152d09
intrinsics: remove unnecessary leading underscore from argument names
RalfJung Mar 12, 2025
d0620fa
Rollup merge of #138161 - HeroicKatora:heap-peek-mut-refresh, r=dtolnay
matthiaskrgr Mar 12, 2025
bd67b00
Fix panic handler for cygwin
Berrysoft Mar 12, 2025
57485fa
Reduce FormattingOptions to 64 bits.
m-ou-se Mar 12, 2025
0424c57
Rollup merge of #138269 - Ayush1325:uefi-fs-permission, r=joboet
matthiaskrgr Mar 12, 2025
3e60295
Rollup merge of #138387 - RalfJung:intrinsic-arg-names, r=oli-obk
matthiaskrgr Mar 12, 2025
68f6d81
Rollup merge of #134076 - GrigorenkoPV:InvalidFilename, r=joboet
Manishearth Mar 12, 2025
673c18b
Remove `feature = "hash_raw_entry"`
cuviper Feb 26, 2025
b296531
Auto merge of #138416 - Manishearth:rollup-fejor9p, r=Manishearth
bors Mar 13, 2025
837ce42
Update library/core/src/intrinsics/mod.rs
DiuDiu777 Mar 13, 2025
71b93d0
Update library/core/src/intrinsics/mod.rs
DiuDiu777 Mar 13, 2025
4b0a0e3
Update library/core/src/intrinsics/mod.rs
DiuDiu777 Mar 13, 2025
983420c
Allow more top-down inlining for single-BB callees
scottmcm Mar 7, 2025
91d07fe
atomic intrinsics: clarify which types are supported and (if applicab…
RalfJung Mar 12, 2025
007b229
Rollup merge of #136842 - randomPoison:trusty-libstd-v3, r=ChrisDenton
matthiaskrgr Mar 13, 2025
b60598f
Rollup merge of #137355 - thaliaarchi:io-optional-methods/sgx, r=Chri…
matthiaskrgr Mar 13, 2025
5806ba3
Rollup merge of #138162 - ehuss:library-2024, r=cuviper
matthiaskrgr Mar 13, 2025
746a460
Rollup merge of #138370 - cuviper:try_oom_error, r=jhpratt
matthiaskrgr Mar 13, 2025
6a0e784
Rollup merge of #138343 - tgross35:f16-powf, r=joboet
matthiaskrgr Mar 13, 2025
48b8ba3
Rollup merge of #138356 - betrusted-io:bump-libc-0.2.171, r=jhpratt
matthiaskrgr Mar 13, 2025
3d287b4
Auto merge of #138450 - matthiaskrgr:rollup-4im25vf, r=matthiaskrgr
bors Mar 13, 2025
a1da920
Stablize feature `anonymous_pipe`
NobodyXu Mar 1, 2025
7180a30
Mv os-specific trait impl of `Pipe*` into `std::os::*`
NobodyXu Mar 7, 2025
a2174e6
Remove usage of legacy scheme paths on RedoxOS
bjorn3 Mar 13, 2025
bf96539
Rollup merge of #138425 - cuviper:remove-hash_raw_entry, r=jhpratt
matthiaskrgr Mar 13, 2025
ad95c16
Remove has_redox_scheme
bjorn3 Mar 13, 2025
2fb35ea
Deny impls for BikeshedGuaranteedNoDrop
compiler-errors Mar 14, 2025
c6020bf
Auto merge of #138157 - scottmcm:inline-more-tiny-things, r=oli-obk
bors Mar 14, 2025
54bf3e4
Merge from rustc
Mar 14, 2025
9120666
Rollup merge of #136001 - hkBst:patch-21, r=cuviper
jhpratt Mar 14, 2025
8535358
Rollup merge of #136230 - clarfonthey:net-memory-layout-assumptions, …
jhpratt Mar 14, 2025
bc52fcd
Rollup merge of #137870 - karolzwolak:lazylock-const-hashmaps-137566,…
jhpratt Mar 14, 2025
8c12431
Rollup merge of #138398 - RalfJung:atomic-intrinsics-provenance, r=nn…
jhpratt Mar 14, 2025
3c6161f
Rollup merge of #138457 - bjorn3:redox_scheme_paths, r=Noratrieb
jhpratt Mar 14, 2025
0b766fc
Auto merge of #138480 - jhpratt:rollup-y3b8wu5, r=jhpratt
bors Mar 14, 2025
9f7cc64
Forward `stream_position` in `Arc<File>` as well
tbu- Mar 14, 2025
54e9d10
Auto merge of #137424 - Ayush1325:uefi-path-node, r=nicholasbishop,cu…
bors Mar 14, 2025
1e956e8
Rollup merge of #138353 - RalfJung:expose-provenance-must-use, r=ibra…
fmease Mar 14, 2025
6eec9b4
Rollup merge of #138477 - compiler-errors:deny-bikeshed-guaranteed-no…
fmease Mar 14, 2025
924a1b7
Auto merge of #138506 - fmease:rollup-ve4h2eq, r=fmease
bors Mar 14, 2025
e3f0b00
Merge from rustc
Mar 15, 2025
0c57aa9
Optimize multi-char string patterns
yotamofek Mar 15, 2025
2c59c90
core/slice: Mark some `split_off` variants unstably const
okaneco Mar 15, 2025
3f4f42a
Rollup merge of #133055 - kpreid:clone-uninit-doc, r=Mark-Simulacrum
jieyouxu Mar 16, 2025
b65e296
Rollup merge of #137890 - lolbinarycat:docs-bufreader-peek-consume, r…
jieyouxu Mar 16, 2025
0e61dbc
Rollup merge of #138082 - thaliaarchi:slice-cfg-not-test, r=thomcc
jieyouxu Mar 16, 2025
38b0b10
Rollup merge of #138275 - folkertdev:expose-is-s390x-feature-detected…
jieyouxu Mar 16, 2025
f708a67
Rollup merge of #138303 - DiuDiu777:rc-fix, r=Mark-Simulacrum
jieyouxu Mar 16, 2025
7098dd7
Rollup merge of #138309 - DiuDiu777:intrinsic-doc-fix, r=thomcc
jieyouxu Mar 16, 2025
8112a0c
Rollup merge of #138323 - kpreid:offset-of-doc, r=Mark-Simulacrum
jieyouxu Mar 16, 2025
c5f575e
Rollup merge of #138329 - scottmcm:assert-hint, r=Mark-Simulacrum
jieyouxu Mar 16, 2025
5db6df4
Merge from rustc
Mar 16, 2025
59a117d
Rollup merge of #135080 - Enselic:debug-ptr-metadata, r=thomcc
jieyouxu Mar 16, 2025
3a03249
Rollup merge of #137492 - nabijaczleweli:master, r=thomcc
jieyouxu Mar 16, 2025
1cb95f4
Rollup merge of #137538 - tapanprakasht:fix-doc-path, r=thomcc
jieyouxu Mar 16, 2025
63ce115
Add test for new proc_macro literal methods
GuillaumeGomez Mar 16, 2025
7bbe6f9
Add integer to string formatting tests
GuillaumeGomez Mar 16, 2025
976d3e0
Auto merge of #138537 - yotamofek:pr/lib/multi-char-pattern, r=jhpratt
bors Mar 16, 2025
2b74fa0
Make ControlFlow must_use
compiler-errors Feb 22, 2025
52c46ac
uefi: Add OwnedEvent abstraction
Ayush1325 Mar 8, 2025
7edc9a4
make `_Unwind_Action` a type alias, not enum
Noratrieb Mar 16, 2025
ab08b6d
Exclude `literal-escaper` from `library` workspace
GuillaumeGomez Mar 16, 2025
e2c1110
Auto merge of #138363 - beetrees:f16-f128-integer-convert, r=Amanieu
bors Mar 17, 2025
961d0dd
Rollup merge of #136293 - hkBst:patch-32, r=Amanieu
jhpratt Mar 17, 2025
8aa941d
Rollup merge of #136359 - hkBst:ptr_copy_docs, r=Amanieu
jhpratt Mar 17, 2025
4ac135d
Rollup merge of #138573 - Noratrieb:no-unsound-bad-bonk-bonk, r=worki…
jhpratt Mar 17, 2025
35e5e82
Auto merge of #138583 - jhpratt:rollup-h699hty, r=jhpratt
bors Mar 17, 2025
c5b628f
Rollup merge of #136355 - GuillaumeGomez:proc-macro_add_value_retriev…
jhpratt Mar 17, 2025
edd0a06
Rollup merge of #137621 - Berrysoft:cygwin-std, r=joboet
jhpratt Mar 17, 2025
93124fe
Rollup merge of #137793 - NobodyXu:stablise-annoymous-pipe, r=joshtri…
jhpratt Mar 17, 2025
bc5baf1
Rollup merge of #138341 - xizheyin:issue-138322, r=joboet
jhpratt Mar 17, 2025
cbaf83b
Mark imports of #[rustc_std_internal_symbol] items with this attribute
bjorn3 Dec 2, 2023
8902bd3
Rollup merge of #137449 - compiler-errors:control-flow, r=Amanieu,lni…
matthiaskrgr Mar 17, 2025
94c5a06
move new section into platform-specific behavior, as it is unix-specific
RalfJung Mar 17, 2025
d2d682f
Auto merge of #127173 - bjorn3:mangle_rustc_std_internal_symbol, r=we…
bors Mar 17, 2025
308c991
Implement read_buf for Hermit
thaliaarchi Feb 5, 2025
ba1640a
Update test for SGX now implementing read_buf
thaliaarchi Mar 18, 2025
be034da
uefi: fs: Implement exists
Ayush1325 Mar 14, 2025
dda1e43
Optimize io::Write::write_fmt for constant strings
thaliaarchi Mar 1, 2025
24b3800
Auto merge of #135368 - Ayush1325:uefi-fs-2, r=jhpratt,nicholasbishop
bors Mar 18, 2025
a8d58b9
Rollup merge of #136320 - RalfJung:exit, r=the8472
matthiaskrgr Mar 18, 2025
ae49cc6
Rollup merge of #138301 - thaliaarchi:io-optional-methods/hermit, r=t…
matthiaskrgr Mar 18, 2025
2eaf1cb
Remove the regex dependency from coretests
bjorn3 Mar 18, 2025
3d1e854
Apply suggestions from code review
hkBst Mar 18, 2025
459ac1d
Revert "Rollup merge of #136355 - GuillaumeGomez:proc-macro_add_value…
RalfJung Mar 18, 2025
b8de9b2
std: uefi: fs: Implement mkdir
Ayush1325 Mar 18, 2025
3b5d775
Add stack overflow handler for cygwin
Berrysoft Mar 12, 2025
6a4c8e7
Test windows file type equality
ChrisDenton Mar 18, 2025
416eda0
Fix build failure on Trusty
taiki-e Mar 18, 2025
17fd68e
Windows: fix FileType PartialEq implementation
ChrisDenton Mar 18, 2025
3f84d8d
fix pthread-based tls on apple targets
xTachyon Mar 2, 2025
e8cdf43
use then
bend-n Mar 19, 2025
a96a131
Merge commit 'c14f2fc3eb69c164d8bf8d36d91ebd60bd5261e6' into sync-fro…
calebzulawski Mar 19, 2025
f03a8ae
Rollup merge of #136177 - hkBst:patch-24, r=ibraheemdev
matthiaskrgr Mar 19, 2025
fb25fee
Rollup merge of #138654 - bjorn3:remove_coretests_regex, r=tgross35
matthiaskrgr Mar 19, 2025
b840717
Rollup merge of #138661 - RalfJung:revert-rustc-dev-breakage, r=petro…
matthiaskrgr Mar 19, 2025
edd6f85
Rollup merge of #138684 - bend-n:use_then, r=jhpratt
matthiaskrgr Mar 19, 2025
9d668f3
Auto merge of #138653 - matthiaskrgr:rollup-fwwqmr7, r=matthiaskrgr
bors Mar 19, 2025
b2f2bbd
Allow spawning threads after TLS destruction.
m-ou-se Mar 19, 2025
1cd895c
Auto merge of #138693 - matthiaskrgr:rollup-ejq8mwp, r=matthiaskrgr
bors Mar 19, 2025
4e1dacc
Rollup merge of #135394 - clarfonthey:uninit-slices-part-2, r=tgross35
matthiaskrgr Mar 19, 2025
391c25a
Rollup merge of #137051 - thaliaarchi:io-optional-impls/empty, r=m-ou-se
matthiaskrgr Mar 19, 2025
5d5650a
Rollup merge of #138540 - okaneco:const_split_off_first_last, r=m-ou-se
matthiaskrgr Mar 19, 2025
d1c4b73
Add chaining versions of lt/le/gt/ge and use them in tuple PartialOrd
scottmcm Mar 6, 2025
3c384b4
add rustc_macro_edition_2021
jdonszelmann Mar 19, 2025
6bf0f52
Pin tests.
m-ou-se Mar 19, 2025
ece839e
Add cfg(not(bootstrap)) for new test.
m-ou-se Mar 19, 2025
22b3962
Document results of non-positive logarithms
syvb Mar 19, 2025
1f27619
Auto merge of #138687 - calebzulawski:sync-from-portable-simd-2025-03…
bors Mar 20, 2025
7d91beb
Merge from rustc
Mar 20, 2025
75d30c0
wasm: increase default thread stack size to 1 MB
surban Mar 20, 2025
c288ae3
Fix Thread::set_name on cygwin
Berrysoft Mar 21, 2025
677a3a0
Rollup merge of #137357 - syvb:sv/log-docs, r=tgross35
matthiaskrgr Mar 21, 2025
70a0931
Rollup merge of #138650 - thaliaarchi:io-write-fmt-known, r=ibraheemdev
matthiaskrgr Mar 21, 2025
4487585
Recognise new IPv6 non-global range from RFC9602
bardiharborow Mar 21, 2025
1363589
coretests stop relying on `inline_const_pat`
lcnr Mar 20, 2025
6857c8d
catch_unwind intrinsic: document return value
RalfJung Mar 21, 2025
65f34f8
Merge from rustc
RalfJung Mar 21, 2025
5ab8085
Rollup merge of #138717 - jdonszelmann:pin-macro, r=WaffleLapkin
matthiaskrgr Mar 21, 2025
dfe564a
Add todo comment on using a niche type for fmt flags.
m-ou-se Mar 21, 2025
73795ed
Add test for Formatter flags.
m-ou-se Mar 21, 2025
475704b
remove remnants of const_box feature
RalfJung Mar 21, 2025
66cad61
Allow inlining for `Atomic*::from_ptr`
tgross35 Mar 21, 2025
d630fb7
Revert "Stabilize file_lock"
moxian Mar 22, 2025
368b322
Implement `UniqueArc`
frank-king Nov 28, 2024
3ad9449
Make UniqueArc invariant for soundness
frank-king Mar 3, 2025
242f369
Add more APIs for UniqueArc
frank-king Mar 3, 2025
bfe6c98
Remove `PartialEq::ne` for `UniqueArc`
frank-king Mar 6, 2025
f071f05
Implement optional methods for unsupported stdio
thaliaarchi Feb 7, 2025
ec6b587
Implement exact reads for StdinRaw
thaliaarchi Feb 9, 2025
6cf92ed
Use unit structs for stateless stdio
thaliaarchi Feb 18, 2025
2e8b632
Auto merge of #136974 - m-ou-se:fmt-options-64-bit, r=scottmcm
bors Mar 22, 2025
2d77f88
Rollup merge of #138490 - tbu-:pr_arc_file_pos, r=Noratrieb
matthiaskrgr Mar 22, 2025
1c0db45
Rollup merge of #138673 - taiki-e:trusty-fix, r=Noratrieb
matthiaskrgr Mar 22, 2025
dce403d
Rollup merge of #138609 - Berrysoft:cygwin-stackoverflow, r=joboet
matthiaskrgr Mar 22, 2025
937e6c6
Rollup merge of #138773 - RalfJung:catch_unwind_docs, r=jhpratt
matthiaskrgr Mar 22, 2025
0231b79
Rollup merge of #138804 - tgross35:atomic-from-ptr-inline, r=RalfJung
matthiaskrgr Mar 22, 2025
771d245
std: move process implementations to `sys`
joboet Feb 12, 2025
cbe65be
core: optimize `RepeatN`
joboet Mar 22, 2025
ebee724
Auto merge of #138830 - matthiaskrgr:rollup-gaxgfwl, r=matthiaskrgr
bors Mar 22, 2025
50349e0
Rollup merge of #138294 - paulmenage:test-panic-unwind, r=bjorn3
matthiaskrgr Mar 22, 2025
46a983c
Rollup merge of #138765 - Berrysoft:cygwin-thread-name, r=joboet
matthiaskrgr Mar 22, 2025
e9af841
Rollup merge of #138822 - moxian:unlock, r=joshtriplett
matthiaskrgr Mar 22, 2025
7555d0c
Auto merge of #138831 - matthiaskrgr:rollup-3t0dqiz, r=matthiaskrgr
bors Mar 22, 2025
ec8b300
Auto merge of #138841 - matthiaskrgr:rollup-bfkls57, r=matthiaskrgr
bors Mar 22, 2025
b32190d
Auto merge of #138833 - joboet:optimize-repeat-n, r=thomcc
bors Mar 23, 2025
fb22f8c
Auto merge of #136769 - thaliaarchi:io-optional-methods/stdio, r=joboet
bors Mar 23, 2025
cba647b
fix typo
TaKO8Ki Mar 23, 2025
25bf314
Auto merge of #136929 - joboet:move_process_pal, r=Mark-Simulacrum
bors Mar 23, 2025
06827eb
Rollup merge of #136040 - mu001999-contrib:cleanup, r=Mark-Simulacrum
compiler-errors Mar 23, 2025
bef63c6
Rollup merge of #138236 - Ayush1325:uefi-event, r=petrochenkov
compiler-errors Mar 23, 2025
a452bf7
Rollup merge of #138631 - thaliaarchi:sgx-read-buf-test, r=workingjub…
compiler-errors Mar 23, 2025
b468e9b
Rollup merge of #138667 - Ayush1325:uefi-mkdir, r=joboet
compiler-errors Mar 23, 2025
d8e30c8
Rollup merge of #138854 - TaKO8Ki:invalid-extern-fn-body, r=compiler-…
compiler-errors Mar 23, 2025
4b93aac
Tweak integer to string conversion test a bit to be future-proof
GuillaumeGomez Mar 23, 2025
64a43ec
Stop using specialization for this
scottmcm Mar 23, 2025
566b6ff
Update `compiler-builtins` to 0.1.152
tgross35 Mar 20, 2025
bff9773
Rollup merge of #138135 - scottmcm:chaining-ord, r=Mark-Simulacrum
jhpratt Mar 24, 2025
357e74e
Rollup merge of #138671 - ChrisDenton:filetype, r=joshtriplett
jhpratt Mar 24, 2025
f2ae9c4
Rollup merge of #138728 - tgross35:update-builtins, r=tgross35
jhpratt Mar 24, 2025
56d3ec6
Trusty: Fix build for anonymous pipes and std::sys::process
thaliaarchi Mar 24, 2025
573d3e1
std: fs: uefi: Implement canonicalize
Ayush1325 Mar 18, 2025
359927d
std: fs: uefi: Make lstat call stat
Ayush1325 Mar 18, 2025
571534f
std: fs: uefi: Implement OpenOptions
Ayush1325 Mar 18, 2025
2b695f8
Rollup merge of #138662 - Ayush1325:uefi-fs-1, r=nicholasbishop,petro…
matthiaskrgr Mar 24, 2025
23e18fa
Rollup merge of #138800 - RalfJung:const_box, r=oli-obk
matthiaskrgr Mar 24, 2025
fdca24f
allow wasm_c_abi in proc_macro bridge
RalfJung Mar 22, 2025
3519765
Fix UWP reparse point check
ChrisDenton Mar 25, 2025
a01bc74
Rollup merge of #135745 - bardiharborow:std/net/rfc9602, r=cuviper
matthiaskrgr Mar 25, 2025
af2eed8
Override PartialOrd methods for bool
DaniPopes Mar 25, 2025
fd85da0
Auto merge of #138601 - RalfJung:wasm-abi-fcw, r=alexcrichton
bors Mar 26, 2025
87a2680
Rollup merge of #138875 - thaliaarchi:trusty-build, r=randomPoison,sa…
jhpratt Mar 26, 2025
51a22a0
Rollup merge of #138945 - DaniPopes:override-partialord-bool, r=scottmcm
jhpratt Mar 26, 2025
b8b3b41
Auto merge of #138956 - jhpratt:rollup-6g7ppwd, r=jhpratt
bors Mar 26, 2025
b1c4064
Fix typo in error message
thaliaarchi Mar 16, 2025
274364d
Change the syntax of the internal `weak!` macro
madsmtm Mar 26, 2025
71da267
Use cfg_match in core
CAD97 Mar 26, 2025
da51ce8
std: get rid of pre-Vista fallback code
joboet Mar 27, 2025
a6e0dd2
Auto merge of #138702 - m-ou-se:spawn-in-atexit, r=Mark-Simulacrum
bors Mar 27, 2025
1e19bf2
Rollup merge of #139021 - joboet:pre-vista-fallback, r=ChrisDenton
jhpratt Mar 28, 2025
e419cca
Put pin!() tests in the right file.
m-ou-se Mar 28, 2025
725202a
Fix formatting nit in process.rs
barafael Mar 28, 2025
ade88f1
std: Explain range follows standard half-open range in `offset`
xizheyin Mar 28, 2025
84f9d7b
`io::Take`: avoid new `BorrowedBuf` creation in some case
a1phyr Mar 28, 2025
7d47b07
std: deduplicate `errno` accesses
joboet Mar 28, 2025
b2f7ca7
Rollup merge of #138976 - xizheyin:issue-138969, r=RalfJung
matthiaskrgr Mar 28, 2025
f125ad2
Rollup merge of #139052 - m-ou-se:pin-macro-tests, r=joboet
matthiaskrgr Mar 28, 2025
c430e62
Rollup merge of #139058 - barafael:patch-1, r=joboet
matthiaskrgr Mar 28, 2025
8384b56
Rollup merge of #139065 - RalfJung:miri-sync, r=RalfJung
matthiaskrgr Mar 28, 2025
242ff95
Rollup merge of #139069 - a1phyr:better_take, r=joboet
matthiaskrgr Mar 28, 2025
235fa56
Add a test for `Weak` created from `UniqueArc::downgrade`
frank-king Mar 29, 2025
68ccc34
Add more tests for pin!().
m-ou-se Mar 28, 2025
796cbf6
Rollup merge of #138757 - rust-wasi-web:wasi-thread-stack-size, r=ale…
matthiaskrgr Mar 29, 2025
bdbe488
Rollup merge of #138988 - madsmtm:internal-weak-macro-syntax, r=ibrah…
matthiaskrgr Mar 29, 2025
089d160
Rollup merge of #139097 - m-ou-se:pin-tests, r=WaffleLapkin
matthiaskrgr Mar 29, 2025
8db3865
Start using with_native_path in std::sys::fs
ChrisDenton Mar 22, 2025
af67f7a
Auto merge of #133572 - frank-king:feature/unique_arc, r=Amanieu
bors Mar 29, 2025
c05707b
Rollup merge of #137928 - RalfJung:const_cell, r=m-ou-se
matthiaskrgr Mar 29, 2025
3fbe016
Rollup merge of #138832 - ChrisDenton:with_native_path, r=joboet
matthiaskrgr Mar 29, 2025
bf288d5
Rollup merge of #139081 - joboet:errno_dedup, r=Noratrieb
matthiaskrgr Mar 29, 2025
2389f01
Auto merge of #139119 - matthiaskrgr:rollup-7l2ri0f, r=matthiaskrgr
bors Mar 29, 2025
098c62c
Simplify expansion for format_args!().
m-ou-se Mar 30, 2025
18e0312
Delete unreacheable `#[rustc_on_unimplemented]`
mejrs Mar 30, 2025
76087e8
use `diagnostic::on_unimplemented` instead
mejrs Mar 30, 2025
002019c
slice: Remove some uses of unsafe in first/last chunk methods
okaneco Mar 29, 2025
deff699
Auto merge of #139131 - m-ou-se:format-args-struct-expr, r=Mark-Simul…
bors Mar 30, 2025
4b30326
Rollup merge of #139141 - mejrs:on_unimpl, r=Noratrieb
jhpratt Mar 30, 2025
4c302b6
Remove mention of `exhaustive_patterns` from `never` docs
mejrs Mar 30, 2025
c1a4825
Auto merge of #139154 - jhpratt:rollup-rv8f915, r=jhpratt
bors Mar 31, 2025
c60865a
Rollup merge of #139157 - mejrs:never, r=Noratrieb
matthiaskrgr Mar 31, 2025
b3bc885
io: Avoid marking buffer as uninit when copying to `BufWriter`
a1phyr Mar 28, 2025
5509c52
io: Avoid Avoid marking bytes as uninit in `BufReader::peek`
a1phyr Mar 28, 2025
ce28e1c
Auto merge of #138492 - lcnr:rm-inline_const_pat, r=oli-obk
bors Apr 1, 2025
6ca48ca
Auto merge of #138928 - ChrisDenton:fix-uwp, r=tgross35
bors Apr 1, 2025
f0d892e
compiler and tools dependencies
clubby789 Mar 23, 2025
92871ff
Add `opt-level = "s"` for more std symbolication crates
clubby789 Apr 1, 2025
662abfd
Auto merge of #138848 - clubby789:cargo-update, r=Mark-Simulacrum
bors Apr 2, 2025
408585e
Rollup merge of #139215 - clubby789:std-size-tweaks, r=joboet
TaKO8Ki Apr 2, 2025
a185a98
Make slice iterator constructors unstably const
Feb 24, 2025
d695b74
Apply requested API changes to `cell_update`
tgross35 Apr 2, 2025
6ca70d8
Remove creation of duplicate AnonPipe
JakeWharton Apr 3, 2025
bea3f46
Rollup merge of #139145 - okaneco:safe_splits, r=Amanieu
matthiaskrgr Apr 3, 2025
8621ac3
Rollup merge of #139273 - tgross35:cell-update-changes, r=jhpratt
matthiaskrgr Apr 3, 2025
be50456
Auto merge of #137738 - Daniel-Aaron-Bloom:const_slice_make_iter, r=d…
bors Apr 3, 2025
42170f1
Run coretests and alloctests with cg_clif in CI
bjorn3 Apr 1, 2025
7c2f10c
Fix testing with randomized layouts enabled
bjorn3 Apr 3, 2025
0cce469
Auto merge of #139301 - matthiaskrgr:rollup-sa6ali8, r=matthiaskrgr
bors Apr 3, 2025
a7ffaca
Rollup merge of #139068 - a1phyr:less_uninit, r=joboet
matthiaskrgr Apr 3, 2025
a439d4f
Rollup merge of #139295 - JakeWharton:jw.duplicate-anon-pipe.2025-04-…
matthiaskrgr Apr 4, 2025
35672c7
Auto merge of #139213 - bjorn3:cg_clif_test_coretests, r=jieyouxu
bors Apr 4, 2025
f2e2b56
ToSocketAddrs: fix typo
RalfJung Apr 4, 2025
eebad22
make `Arguments::as_statically_known_str` doc(hidden)
mejrs Apr 4, 2025
dc53745
Rollup merge of #139366 - RalfJung:ToSocketAddrs, r=jieyouxu
matthiaskrgr Apr 4, 2025
d22362c
Expose algebraic floating point intrinsics
calder Feb 19, 2025
ea44554
Rollup merge of #136457 - calder:master, r=tgross35
Zalathar Apr 5, 2025
e1b36d9
Rollup merge of #137897 - xTachyon:tls-fix, r=thomcc,jieyouxu
Zalathar Apr 5, 2025
78b749e
Rollup merge of #138024 - reitermarkus:unicode-panic-optimization, r=…
Zalathar Apr 5, 2025
a11f5f2
Rollup merge of #138546 - GuillaumeGomez:integer-to-string-tests, r=A…
Zalathar Apr 5, 2025
98e0c10
Rollup merge of #139389 - mejrs:hidden, r=workingjubilee
Zalathar Apr 5, 2025
9364ece
Move fd into sys
thaliaarchi Mar 25, 2025
dd11525
Fix unsafe_op_in_unsafe_fn for Unix fd and weak
thaliaarchi Mar 29, 2025
69d2de2
Rename internal module from statik to no_threads
thaliaarchi Mar 29, 2025
52b0111
Rollup merge of #138381 - thaliaarchi:bstr-sliceindex, r=joshtriplett
matthiaskrgr Apr 5, 2025
917b34b
Rollup merge of #139092 - thaliaarchi:move-fd-pal, r=joboet
matthiaskrgr Apr 5, 2025
66dac34
Rollup merge of #136877 - Sky9x:const-inherent-ptr-replace, r=jhpratt
matthiaskrgr Apr 5, 2025
a5c6692
Rollup merge of #139121 - thaliaarchi:rename-thread_local-statik, r=N…
matthiaskrgr Apr 5, 2025
7ceb807
Merge from 5e17a2a91dd7dbefd8b4a1087c2e42257457deeb with conflicts
Apr 10, 2025
07ea6d9
Update toolchain to 2025-04-06
Apr 10, 2025
16f8e14
Update Kani version to 0e4cab92da84cfccbb0dd3066f5e2d9ef45cfbdd
Apr 10, 2025
b7c512f
Resolve merge conflict
tautschnig Apr 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion library/alloc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,4 @@ check-cfg = [
'cfg(no_global_oom_handling)',
'cfg(no_rc)',
'cfg(no_sync)',
'cfg(randomized_layouts)',
]
1 change: 1 addition & 0 deletions library/alloctests/tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ mod fmt;
mod heap;
mod linked_list;
mod misc_tests;
mod num;
mod rc;
mod slice;
mod sort;
Expand Down
69 changes: 69 additions & 0 deletions library/alloctests/tests/num.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
use std::fmt::{Debug, Display};
use std::str::FromStr;

fn assert_nb<Int: ToString + FromStr + Debug + Display + Eq>(value: Int) {
let s = value.to_string();
let s2 = format!("s: {}.", value);

assert_eq!(format!("s: {s}."), s2);
let Ok(ret) = Int::from_str(&s) else {
panic!("failed to convert into to string");
};
assert_eq!(ret, value);
}

macro_rules! uint_to_s {
($($fn_name:ident, $int:ident,)+) => {
$(
#[test]
fn $fn_name() {
assert_nb::<$int>($int::MIN);
assert_nb::<$int>($int::MAX);
assert_nb::<$int>(1);
assert_nb::<$int>($int::MIN / 2);
assert_nb::<$int>($int::MAX / 2);
}
)+
}
}
macro_rules! int_to_s {
($($fn_name:ident, $int:ident,)+) => {
$(
#[test]
fn $fn_name() {
assert_nb::<$int>($int::MIN);
assert_nb::<$int>($int::MAX);
assert_nb::<$int>(1);
assert_nb::<$int>(0);
assert_nb::<$int>(-1);
assert_nb::<$int>($int::MIN / 2);
assert_nb::<$int>($int::MAX / 2);
}
)+
}
}

int_to_s!(
test_i8_to_string,
i8,
test_i16_to_string,
i16,
test_i32_to_string,
i32,
test_i64_to_string,
i64,
test_i128_to_string,
i128,
);
uint_to_s!(
test_u8_to_string,
u8,
test_u16_to_string,
u16,
test_u32_to_string,
u32,
test_u64_to_string,
u64,
test_u128_to_string,
u128,
);
287 changes: 14 additions & 273 deletions library/core/src/bstr.rs → library/core/src/bstr/mod.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
//! The `ByteStr` type and trait implementations.

mod traits;

#[unstable(feature = "bstr_internals", issue = "none")]
pub use traits::{impl_partial_eq, impl_partial_eq_n, impl_partial_eq_ord};

use crate::borrow::{Borrow, BorrowMut};
use crate::cmp::Ordering;
use crate::ops::{
Deref, DerefMut, DerefPure, Index, IndexMut, Range, RangeFrom, RangeFull, RangeInclusive,
RangeTo, RangeToInclusive,
};
use crate::{fmt, hash};
use crate::fmt;
use crate::ops::{Deref, DerefMut, DerefPure};

/// A wrapper for `&[u8]` representing a human-readable string that's conventionally, but not
/// always, UTF-8.
Expand Down Expand Up @@ -91,6 +92,13 @@ impl ByteStr {
pub fn as_bytes(&self) -> &[u8] {
&self.0
}

#[doc(hidden)]
#[unstable(feature = "bstr_internals", issue = "none")]
#[inline]
pub fn as_bytes_mut(&mut self) -> &mut [u8] {
&mut self.0
}
}

#[unstable(feature = "bstr", issue = "134915")]
Expand Down Expand Up @@ -295,273 +303,6 @@ impl<'a> Default for &'a mut ByteStr {
// }
// }

#[unstable(feature = "bstr", issue = "134915")]
impl hash::Hash for ByteStr {
#[inline]
fn hash<H: hash::Hasher>(&self, state: &mut H) {
self.0.hash(state);
}
}

#[unstable(feature = "bstr", issue = "134915")]
impl Index<usize> for ByteStr {
type Output = u8;

#[inline]
fn index(&self, idx: usize) -> &u8 {
&self.0[idx]
}
}

#[unstable(feature = "bstr", issue = "134915")]
impl Index<RangeFull> for ByteStr {
type Output = ByteStr;

#[inline]
fn index(&self, _: RangeFull) -> &ByteStr {
self
}
}

#[unstable(feature = "bstr", issue = "134915")]
impl Index<Range<usize>> for ByteStr {
type Output = ByteStr;

#[inline]
fn index(&self, r: Range<usize>) -> &ByteStr {
ByteStr::from_bytes(&self.0[r])
}
}

#[unstable(feature = "bstr", issue = "134915")]
impl Index<RangeInclusive<usize>> for ByteStr {
type Output = ByteStr;

#[inline]
fn index(&self, r: RangeInclusive<usize>) -> &ByteStr {
ByteStr::from_bytes(&self.0[r])
}
}

#[unstable(feature = "bstr", issue = "134915")]
impl Index<RangeFrom<usize>> for ByteStr {
type Output = ByteStr;

#[inline]
fn index(&self, r: RangeFrom<usize>) -> &ByteStr {
ByteStr::from_bytes(&self.0[r])
}
}

#[unstable(feature = "bstr", issue = "134915")]
impl Index<RangeTo<usize>> for ByteStr {
type Output = ByteStr;

#[inline]
fn index(&self, r: RangeTo<usize>) -> &ByteStr {
ByteStr::from_bytes(&self.0[r])
}
}

#[unstable(feature = "bstr", issue = "134915")]
impl Index<RangeToInclusive<usize>> for ByteStr {
type Output = ByteStr;

#[inline]
fn index(&self, r: RangeToInclusive<usize>) -> &ByteStr {
ByteStr::from_bytes(&self.0[r])
}
}

#[unstable(feature = "bstr", issue = "134915")]
impl IndexMut<usize> for ByteStr {
#[inline]
fn index_mut(&mut self, idx: usize) -> &mut u8 {
&mut self.0[idx]
}
}

#[unstable(feature = "bstr", issue = "134915")]
impl IndexMut<RangeFull> for ByteStr {
#[inline]
fn index_mut(&mut self, _: RangeFull) -> &mut ByteStr {
self
}
}

#[unstable(feature = "bstr", issue = "134915")]
impl IndexMut<Range<usize>> for ByteStr {
#[inline]
fn index_mut(&mut self, r: Range<usize>) -> &mut ByteStr {
ByteStr::from_bytes_mut(&mut self.0[r])
}
}

#[unstable(feature = "bstr", issue = "134915")]
impl IndexMut<RangeInclusive<usize>> for ByteStr {
#[inline]
fn index_mut(&mut self, r: RangeInclusive<usize>) -> &mut ByteStr {
ByteStr::from_bytes_mut(&mut self.0[r])
}
}

#[unstable(feature = "bstr", issue = "134915")]
impl IndexMut<RangeFrom<usize>> for ByteStr {
#[inline]
fn index_mut(&mut self, r: RangeFrom<usize>) -> &mut ByteStr {
ByteStr::from_bytes_mut(&mut self.0[r])
}
}

#[unstable(feature = "bstr", issue = "134915")]
impl IndexMut<RangeTo<usize>> for ByteStr {
#[inline]
fn index_mut(&mut self, r: RangeTo<usize>) -> &mut ByteStr {
ByteStr::from_bytes_mut(&mut self.0[r])
}
}

#[unstable(feature = "bstr", issue = "134915")]
impl IndexMut<RangeToInclusive<usize>> for ByteStr {
#[inline]
fn index_mut(&mut self, r: RangeToInclusive<usize>) -> &mut ByteStr {
ByteStr::from_bytes_mut(&mut self.0[r])
}
}

#[unstable(feature = "bstr", issue = "134915")]
impl Eq for ByteStr {}

#[unstable(feature = "bstr", issue = "134915")]
impl PartialEq<ByteStr> for ByteStr {
#[inline]
fn eq(&self, other: &ByteStr) -> bool {
&self.0 == &other.0
}
}

#[doc(hidden)]
#[macro_export]
#[unstable(feature = "bstr_internals", issue = "none")]
macro_rules! impl_partial_eq {
($lhs:ty, $rhs:ty) => {
#[allow(unused_lifetimes)]
impl<'a> PartialEq<$rhs> for $lhs {
#[inline]
fn eq(&self, other: &$rhs) -> bool {
let other: &[u8] = other.as_ref();
PartialEq::eq(self.as_bytes(), other)
}
}

#[allow(unused_lifetimes)]
impl<'a> PartialEq<$lhs> for $rhs {
#[inline]
fn eq(&self, other: &$lhs) -> bool {
let this: &[u8] = self.as_ref();
PartialEq::eq(this, other.as_bytes())
}
}
};
}

#[doc(hidden)]
#[unstable(feature = "bstr_internals", issue = "none")]
pub use impl_partial_eq;

#[doc(hidden)]
#[macro_export]
#[unstable(feature = "bstr_internals", issue = "none")]
macro_rules! impl_partial_eq_ord {
($lhs:ty, $rhs:ty) => {
$crate::bstr::impl_partial_eq!($lhs, $rhs);

#[allow(unused_lifetimes)]
#[unstable(feature = "bstr", issue = "134915")]
impl<'a> PartialOrd<$rhs> for $lhs {
#[inline]
fn partial_cmp(&self, other: &$rhs) -> Option<Ordering> {
let other: &[u8] = other.as_ref();
PartialOrd::partial_cmp(self.as_bytes(), other)
}
}

#[allow(unused_lifetimes)]
#[unstable(feature = "bstr", issue = "134915")]
impl<'a> PartialOrd<$lhs> for $rhs {
#[inline]
fn partial_cmp(&self, other: &$lhs) -> Option<Ordering> {
let this: &[u8] = self.as_ref();
PartialOrd::partial_cmp(this, other.as_bytes())
}
}
};
}

#[doc(hidden)]
#[unstable(feature = "bstr_internals", issue = "none")]
pub use impl_partial_eq_ord;

#[doc(hidden)]
#[macro_export]
#[unstable(feature = "bstr_internals", issue = "none")]
macro_rules! impl_partial_eq_n {
($lhs:ty, $rhs:ty) => {
#[allow(unused_lifetimes)]
#[unstable(feature = "bstr", issue = "134915")]
impl<const N: usize> PartialEq<$rhs> for $lhs {
#[inline]
fn eq(&self, other: &$rhs) -> bool {
let other: &[u8] = other.as_ref();
PartialEq::eq(self.as_bytes(), other)
}
}

#[allow(unused_lifetimes)]
#[unstable(feature = "bstr", issue = "134915")]
impl<const N: usize> PartialEq<$lhs> for $rhs {
#[inline]
fn eq(&self, other: &$lhs) -> bool {
let this: &[u8] = self.as_ref();
PartialEq::eq(this, other.as_bytes())
}
}
};
}

#[doc(hidden)]
#[unstable(feature = "bstr_internals", issue = "none")]
pub use impl_partial_eq_n;

// PartialOrd with `[u8]` omitted to avoid inference failures
impl_partial_eq!(ByteStr, [u8]);
// PartialOrd with `&[u8]` omitted to avoid inference failures
impl_partial_eq!(ByteStr, &[u8]);
// PartialOrd with `str` omitted to avoid inference failures
impl_partial_eq!(ByteStr, str);
// PartialOrd with `&str` omitted to avoid inference failures
impl_partial_eq!(ByteStr, &str);
// PartialOrd with `[u8; N]` omitted to avoid inference failures
impl_partial_eq_n!(ByteStr, [u8; N]);
// PartialOrd with `[u8; N]` omitted to avoid inference failures
impl_partial_eq_n!(ByteStr, &[u8; N]);

#[unstable(feature = "bstr", issue = "134915")]
impl Ord for ByteStr {
#[inline]
fn cmp(&self, other: &ByteStr) -> Ordering {
Ord::cmp(&self.0, &other.0)
}
}

#[unstable(feature = "bstr", issue = "134915")]
impl PartialOrd for ByteStr {
#[inline]
fn partial_cmp(&self, other: &ByteStr) -> Option<Ordering> {
PartialOrd::partial_cmp(&self.0, &other.0)
}
}

#[unstable(feature = "bstr", issue = "134915")]
impl<'a> TryFrom<&'a ByteStr> for &'a str {
type Error = crate::str::Utf8Error;
Expand Down
Loading
Loading