Skip to content

Merge subtree update for toolchain nightly-2025-04-23 #340

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 24, 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
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
cf5b8ff
Promise `array::from_fn` in generated in order of increasing indices
scottmcm Mar 29, 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
d774629
std: make `cmath` functions safe
joboet 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
c09288c
std: clarify Mutex::get_mut more clearly
xizheyin 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
86f5fa2
Revert "Disable `f16` on Aarch64 without `neon`"
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
3c1bc2d
std: clarify RefCell::get_mut more clearly
xizheyin Mar 31, 2025
382f937
std: clarify RwLock::get_mut more clearly
xizheyin Mar 31, 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
fc371d7
Add `_value` methods to proc_macro lib
GuillaumeGomez Apr 4, 2025
83e0cb8
Optimize slice Iter::nth
kornelski Mar 16, 2025
d187786
Optimize slice Windows::nth
kornelski Mar 16, 2025
2dbcfcd
Optimize setting the slice to empty in slice Iter
kornelski Mar 16, 2025
49287f3
Update windows-bindgen to 0.61.0
ChrisDenton 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
503251e
bootstrap: Only add `rustc_randomized_layouts` if the crate has it
GuillaumeGomez Apr 4, 2025
b74a032
Update `rustc-literal-escaper` version to `0.0.2`
GuillaumeGomez 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
3ac6a89
std: Fix build for NuttX targets
thaliaarchi Mar 26, 2025
b240086
tidy: Fix paths to coretests and alloctests
thaliaarchi Mar 29, 2025
2dc9bbd
cargo update
invalid-email-address Apr 6, 2025
849596c
Polymorphize `array::IntoIter`'s iterator impl
scottmcm Apr 6, 2025
a3afaef
Rollup merge of #139123 - thaliaarchi:core-alloc-test-paths, r=bjorn3
Zalathar Apr 6, 2025
71a55a4
doc changes
doodooboy-bit Apr 6, 2025
fff6267
Rollup merge of #138562 - kornelski:nth-panic, r=Noratrieb
GuillaumeGomez Apr 6, 2025
77cfda6
Rollup merge of #138876 - thaliaarchi:trusty-stdio, r=Noratrieb
GuillaumeGomez Apr 6, 2025
aa70748
Rollup merge of #139072 - nickkuk:align_to_uninit_mut, r=Mark-Simulacrum
GuillaumeGomez Apr 6, 2025
90fd71b
Rollup merge of #139367 - GuillaumeGomez:proc-macro-values, r=Urgau
GuillaumeGomez Apr 6, 2025
96ef343
update docs
Skgland Apr 6, 2025
0b8a1cd
Auto merge of #136077 - rust-lang:cargo_update, r=clubby789
bors Apr 6, 2025
83ed8e3
Auto merge of #138951 - jwnrt:alloc-raw-vec-strict-prov, r=Noratrieb
bors Apr 6, 2025
12c4e7d
Rollup merge of #139455 - Skgland:remove_rust-intrinsic_ABI, r=oli-obk
Zalathar Apr 7, 2025
32cc982
f*::NAN: guarantee that this is a quiet NaN
RalfJung Apr 7, 2025
efe414a
update intrinsics/mod.rs comment about const intrinsics
RalfJung Apr 7, 2025
d96e3e7
Enable contracts for const functions
celinval Feb 25, 2025
462105c
document panic behavior of Vec::resize and Vec::resize_with
jogru0 Apr 7, 2025
195ff5b
libtest: Pass the test's panic payload as Option instead of Result
Zalathar Apr 8, 2025
7085885
Fix deprecation note for std::intrinsics
smanilov Apr 8, 2025
a972589
Update 'u8'-to-and-from-'i8' suggestions;
bjoernager Apr 8, 2025
910a867
Rollup merge of #139500 - jogru0:117437, r=tgross35
matthiaskrgr Apr 8, 2025
c5a4094
Fix unreachable expression warning
celinval Apr 8, 2025
ff64fc4
Rollup merge of #139526 - smanilov:issue-139505, r=RalfJung
matthiaskrgr Apr 8, 2025
c7222e8
Avoid verbatim paths in Command::current_dir
ChrisDenton Mar 24, 2025
5e74776
Auto merge of #139552 - matthiaskrgr:rollup-b194mk8, r=matthiaskrgr
bors Apr 9, 2025
ad3dc4a
Speed up `String::push` and `String::insert`
lincot May 6, 2024
ea11540
Add missing `black_box` in `String` benchmarks
lincot Apr 8, 2025
b61acfb
Remove redundant words
timesince Apr 9, 2025
1575738
replace version placeholder
BoxyUwU Mar 31, 2025
7dd1036
update cfgs
BoxyUwU Apr 2, 2025
e552ad6
intra-doc link
BoxyUwU Apr 3, 2025
5b5b1e2
Rollup merge of #138869 - ChrisDenton:command-curdir, r=tgross35
matthiaskrgr Apr 9, 2025
a3b67d3
Rollup merge of #138993 - CAD97:cfg_match_semitransparent, r=dtolnay
matthiaskrgr Apr 9, 2025
d904053
Rollup merge of #139099 - scottmcm:from_fn_docs, r=Amanieu
matthiaskrgr Apr 9, 2025
06dee73
Ensure `swap_nonoverlapping` is really always untyped
scottmcm Feb 22, 2025
b672b1d
Auto merge of #124810 - lincot:speed-up-string-push-and-string-insert…
bors Apr 9, 2025
39987b9
Rollup merge of #139164 - xizheyin:issue-139034, r=joboet
matthiaskrgr Apr 9, 2025
c96ea2a
Rollup merge of #139532 - bjoernager:master, r=tgross35
matthiaskrgr Apr 9, 2025
a7ba49a
Rollup merge of #139575 - timesince:master, r=wesleywiser
matthiaskrgr Apr 9, 2025
1e4dce6
Auto merge of #139595 - matthiaskrgr:rollup-kaa8aim, r=matthiaskrgr
bors Apr 9, 2025
fe6b3f4
update miniz_oxide to 0.8.8
oyvindln Apr 9, 2025
9054e9d
Auto merge of #139279 - BoxyUwU:bump-boostrap, r=jieyouxu
bors Apr 10, 2025
8df3f93
PR feedback
scottmcm Apr 9, 2025
3fae1c3
cfi: do not transmute function pointers in formatting code
Darksonn Apr 10, 2025
315f182
Update `compiler-builtins` to 0.1.153
tgross35 Apr 9, 2025
e017596
add `simd_insert_dyn` and `simd_extract_dyn`
folkertdev Feb 22, 2025
df8d99a
Auto merge of #137412 - scottmcm:redo-swap, r=cuviper
bors Apr 10, 2025
0d4f906
Apply suggestions from code review
celinval Apr 10, 2025
4e136a0
indirect-const-stabilize the `exact_div` intrinsic
scottmcm Mar 31, 2025
51e9b40
Rollup merge of #137447 - folkertdev:simd-extract-insert-dyn, r=scottmcm
Zalathar Apr 11, 2025
f9a32ef
Rollup merge of #139447 - izarma:issue-108131-fix, r=scottmcm
Zalathar Apr 11, 2025
b337b15
Rollup merge of #139600 - tgross35:update-builtins, r=tgross35
Zalathar Apr 11, 2025
71b3d68
cfi: Remove #[no_sanitize(cfi)] for extern weak functions
1c3t3a Apr 11, 2025
5d44bfa
Implement Default for raw pointers
ChrisDenton Apr 6, 2025
485eff7
Remove proc_macro::SourceFile::is_real().
m-ou-se Apr 11, 2025
17c68d1
sync::mpsc: add miri reproducer of double free
petrosagg Apr 10, 2025
5b1acd9
sync::mpsc: prevent double free on `Drop`
petrosagg Apr 8, 2025
2c3a474
Replace proc_macro::SourceFile by Span::{file, local_file}.
m-ou-se Apr 11, 2025
37170a5
Fix profiler_builtins build script to handle full path to profiler lib
Apr 11, 2025
7b95216
Update library/core/src/fmt/rt.rs
Darksonn Apr 11, 2025
278f039
Use with_native_path for Windows
ChrisDenton Apr 11, 2025
b40d106
rustdoc-search: add unbox flag to Result aliases
notriddle Apr 11, 2025
5762b35
Rollup merge of #137835 - scottmcm:signum, r=compiler-errors
jhpratt Apr 11, 2025
d1d4180
Auto merge of #139430 - scottmcm:polymorphic-array-into-iter, r=cuviper
bors Apr 11, 2025
26f2e18
docs: clarify uint exponent for `is_power_of_two`
Rudxain Apr 12, 2025
d3f21b6
Move args into std::sys
thaliaarchi Apr 12, 2025
8aa438a
cfg(kcfi)
Darksonn Apr 12, 2025
c5fd627
Use unsupported args for espidf and vita
thaliaarchi Apr 12, 2025
43b6c47
Unify owned Args types between platforms
thaliaarchi Apr 12, 2025
25aed7f
Fix typo in documentation
GenYuLi Apr 12, 2025
cc74b34
Rollup merge of #139163 - scottmcm:stabilize-exact_div, r=RalfJung
ChrisDenton Apr 12, 2025
f1124a0
Rollup merge of #139276 - tgross35:enable-f16-without-neon, r=Mark-Si…
ChrisDenton Apr 12, 2025
cd3a125
Rollup merge of #139382 - ChrisDenton:windows-bindgen-0-61, r=Mark-Si…
ChrisDenton Apr 12, 2025
2b92d8d
Rollup merge of #139688 - rust-lang:notriddle/io-result-unbox, r=Guil…
ChrisDenton Apr 12, 2025
4f06d6d
Rollup merge of #139701 - Rudxain:doc-pow2, r=tgross35
ChrisDenton Apr 12, 2025
5497097
Rollup merge of #139713 - GenYuLi:master, r=compiler-errors
ChrisDenton Apr 12, 2025
04029ed
Move `select_unpredictable` to the `hint` module
Amanieu Apr 12, 2025
a57be39
cargo update
invalid-email-address Apr 13, 2025
5c9d14a
Rollup merge of #139107 - joboet:safe_cmath, r=ibraheemdev
ChrisDenton Apr 13, 2025
4af2452
Extend the chaining logic to slices too
scottmcm Mar 24, 2025
3b9a4b0
Initial `UnsafePinned`/`UnsafeUnpin` impl [Part 1: Libs]
Sky9x Feb 14, 2025
3df6b18
Auto merge of #139734 - ChrisDenton:rollup-28qn740, r=ChrisDenton
bors Apr 13, 2025
cd098f7
Auto merge of #138881 - scottmcm:more-chaining-ord, r=Mark-Simulacrum
bors Apr 13, 2025
320f165
Rollup merge of #138972 - thaliaarchi:nuttx-build, r=Mark-Simulacrum
ChrisDenton Apr 13, 2025
f6ee8a2
Rollup merge of #139511 - Zalathar:panic-payload, r=Mark-Simulacrum
ChrisDenton Apr 13, 2025
087649b
Rollup merge of #139605 - oyvindln:update_miniz_oxide_0_8, r=Mark-Sim…
ChrisDenton Apr 13, 2025
ed9ccd0
Rollup merge of #139677 - jchecahi:profiler-builtin-rtlib-path-fix, r…
ChrisDenton Apr 13, 2025
2cbb559
Rollup merge of #139683 - ChrisDenton:windows-with-native, r=tgross35…
ChrisDenton Apr 13, 2025
50f5112
Rollup merge of #139710 - thaliaarchi:move-args-pal, r=joboet
ChrisDenton Apr 13, 2025
ef96788
Rollup merge of #139726 - Amanieu:select_unpredictable_hint, r=dtolnay
ChrisDenton Apr 13, 2025
ec60cd5
std/thread: Use default stack size from menuconfig for NuttX
no1wudi Apr 13, 2025
d84a83b
Auto merge of #139746 - ChrisDenton:rollup-eq08b2e, r=ChrisDenton
bors Apr 13, 2025
b7ac487
std: sys: process: uefi: Use NULL stdin by default
Ayush1325 Apr 8, 2025
3f3732a
std: sys: stdio: uefi: Tread UNSUPPORTED Status as read(0)
Ayush1325 Apr 13, 2025
27bed75
std: sys: process: uefi: Allow specifying Stdin
Ayush1325 Apr 10, 2025
fc85ced
Hermit: Unify std::env::args with Unix
thaliaarchi Apr 12, 2025
0e2c537
Rollup merge of #137043 - Sky9x:unsafe-pinned-pt1-libs, r=tgross35,Ra…
jhpratt Apr 13, 2025
2554815
Avoid unused clones in Cloned<I> and Copied<I>
thaliaarchi Apr 13, 2025
fb95ebb
Report span of test when should_panic test failed
xizheyin Mar 17, 2025
e45b238
Clarify why SGX code specifies linkage/symbol names for certain statics
Apr 14, 2025
aa425a8
ptr docs: add missing backtics around 'usize'
RalfJung Apr 14, 2025
543820f
Auto merge of #138603 - xizheyin:issue-137405, r=chenyukang
bors Apr 14, 2025
5db3c5f
Auto merge of #139814 - matthiaskrgr:rollup-lxkkcz6, r=matthiaskrgr
bors Apr 14, 2025
7ace926
Fix: Map EOPNOTSUPP to ErrorKind::Unsupported on Unix
0x79de Apr 14, 2025
62e50de
Rollup merge of #139745 - thaliaarchi:iter-unused-clone-copy, r=joboet
matthiaskrgr Apr 14, 2025
2bca634
std: add Output::exit_ok
lolbinarycat Apr 8, 2025
8ff0ee1
Basic tests of MPMC receiver cloning
glyn Apr 15, 2025
caa9632
Rollup merge of #138374 - celinval:issue-136925-const-contract, r=com…
Zalathar Apr 15, 2025
e458986
Rollup merge of #139517 - Ayush1325:uefi-cmd-stdin-null, r=joboet
Zalathar Apr 15, 2025
39e05bf
Rollup merge of #139554 - lolbinarycat:std-output-exit_ok, r=tgross35
Zalathar Apr 15, 2025
f162c7f
Rollup merge of #139671 - m-ou-se:proc-macro-span, r=dtolnay
Zalathar Apr 15, 2025
504f564
Rollup merge of #139750 - no1wudi:fix, r=tgross35
Zalathar Apr 15, 2025
887af61
Rollup merge of #139822 - 0x79de:fix-eopnotsupp-mapping, r=dtolnay
Zalathar Apr 15, 2025
a40f2d0
Rollup merge of #139836 - glyn:test-mpmc-receiver-cloning, r=jhpratt
Zalathar Apr 15, 2025
143021c
Remove #![feature(no_sanitize)]
tamird Apr 14, 2025
18b4143
Use full path for core::mem::transmute
Darksonn Apr 14, 2025
829afa8
Add comment
Darksonn Apr 14, 2025
885f27c
Auto merge of #139845 - Zalathar:rollup-u5u5y1v, r=Zalathar
bors Apr 15, 2025
34c490a
Implement `pin!()` using `super let`.
m-ou-se Mar 27, 2025
8c88f85
Auto merge of #139632 - Darksonn:cfi-fmt, r=m-ou-se
bors Apr 15, 2025
3429b5f
Add warning comment to `Take::get_ref` and `Chain::get_ref`
joshtriplett Apr 15, 2025
26513b9
Also remove the no_sanitize feature for std
1c3t3a Apr 15, 2025
5d82f7a
Update stdarch submodule
GuillaumeGomez Apr 16, 2025
c7c402d
fix incorrect type in cstr `to_string_lossy()` docs
jnqnfe Apr 16, 2025
9a520f8
Rollup merge of #139667 - 1c3t3a:remove-no-sanitize, r=m-ou-se
matthiaskrgr Apr 16, 2025
ee40d87
fix missing word in comment
mumbleskates Apr 17, 2025
ed7cbf2
Fix drop handling in `hint::select_unpredictable`
Amanieu Apr 17, 2025
779deec
Point UNIX_EPOCH to associated constant in SystemTime docs
coolreader18 Apr 17, 2025
ed28bd2
Be more specific about the error in the SystemTime example
coolreader18 Apr 17, 2025
220a2e5
Update `compiler-builtins` to 0.1.155
tgross35 Apr 16, 2025
9267d04
Rollup merge of #139483 - RalfJung:nan, r=tgross35
matthiaskrgr Apr 17, 2025
1b2ff29
Rollup merge of #139977 - Amanieu:select_unpredictable_drop, r=RalfJung
matthiaskrgr Apr 17, 2025
ee51ea6
Rollup merge of #139553 - petrosagg:channel-double-free, r=RalfJung,t…
matthiaskrgr Apr 18, 2025
4b57af8
Rollup merge of #139934 - tgross35:update-builtins, r=tgross35
matthiaskrgr Apr 18, 2025
35b0ea7
LocalKey<T>: document that the dtor should not panic
ShE3py Apr 18, 2025
36a886a
rtprintpanic: clarify that the error is aborting the process
ShE3py Apr 18, 2025
efaf4e0
Auto merge of #139996 - matthiaskrgr:rollup-0nka2hw, r=matthiaskrgr
bors Apr 18, 2025
9ab89ad
Invert `<CString as Deref>::deref` and `CString::as_c_str`
tamird Apr 18, 2025
4cb999a
Move `<CStr as Debug>` test to coretests
tamird Apr 18, 2025
1585382
Remove errant doc comment lines
tamird Apr 18, 2025
6130899
std: Use fstatat() on illumos
pfmooney Apr 18, 2025
1f202b0
Sort Unix env constants alphabetically by target_os
thaliaarchi Apr 15, 2025
0411c52
Combine env consts into std::sys::env_consts
thaliaarchi Apr 15, 2025
05ebb95
Handle unsupported fallback
thaliaarchi Apr 15, 2025
913b8f5
Auto merge of #139114 - m-ou-se:super-let-pin, r=davidtwco
bors Apr 19, 2025
6b3d1e9
add next_index to Enumerate
jogru0 Apr 8, 2025
f5e95cb
added doctest for Enumerate::next_index
jogru0 Apr 19, 2025
f89b8ee
added test for Enumerate::next_index on empty iterator
jogru0 Apr 19, 2025
efd7912
Rollup merge of #139535 - ChrisDenton:default-ptr, r=tgross35
ChrisDenton Apr 19, 2025
cfa1b2a
Rollup merge of #139922 - jnqnfe:cstr_doc_fix, r=jhpratt
ChrisDenton Apr 19, 2025
e3adc21
Rollup merge of #140016 - pfmooney:illumos-fstatat, r=jhpratt
ChrisDenton Apr 19, 2025
b9cfe06
Rollup merge of #139868 - thaliaarchi:move-env-consts-pal, r=joboet
ChrisDenton Apr 19, 2025
9bff288
Rollup merge of #139533 - jogru0:130711, r=Mark-Simulacrum
ChrisDenton Apr 19, 2025
d9af121
docs: fix typo change from inconstants to invariants
c-git Apr 19, 2025
d0721d4
Auto merge of #140043 - ChrisDenton:rollup-vwf0s9j, r=ChrisDenton
bors Apr 20, 2025
07de1a6
stabilize `naked_functions`
folkertdev Dec 18, 2024
e3fdd2f
simd intrinsics with mask: accept unsigned integer masks
RalfJung Mar 3, 2025
987e8cd
Rollup merge of #137953 - RalfJung:simd-intrinsic-masks, r=WaffleLapkin
ChrisDenton Apr 20, 2025
8427db1
Rollup merge of #140054 - c-git:patch-1, r=joboet
ChrisDenton Apr 20, 2025
19a9fe5
Update `libc` to 0.2.172 for std
Berrysoft Apr 20, 2025
2ab28f3
Rollup merge of #138870 - beetrees:tier-2-nans, r=RalfJung
ChrisDenton Apr 20, 2025
1f234b5
Auto merge of #140079 - ChrisDenton:rollup-2h5cg94, r=ChrisDenton
bors Apr 20, 2025
9178adb
Auto merge of #139727 - rust-lang:cargo_update, r=Mark-Simulacrum
bors Apr 21, 2025
3ecfe0e
cleanup redundant pattern instances
jogru0 Apr 21, 2025
49649b6
Replace colon with parentheses, add missing period
tamird Apr 18, 2025
79729f9
Rollup merge of #139946 - mumbleskates:any-fix-missing-word, r=jhpratt
ChrisDenton Apr 21, 2025
f5c78cd
Rollup merge of #139982 - coolreader18:time-doc-tweak, r=jhpratt
ChrisDenton Apr 21, 2025
e4a3c15
Rollup merge of #140009 - ShE3py:tls-abort, r=thomcc
ChrisDenton Apr 21, 2025
7f7d45c
Rollup merge of #134213 - folkertdev:stabilize-naked-functions, r=tgr…
ChrisDenton Apr 21, 2025
b6fae47
Rollup merge of #139711 - thaliaarchi:hermit-args, r=jhpratt
ChrisDenton Apr 21, 2025
809c35f
Rollup merge of #139795 - jethrogb:jb/sgx-linkage-comments, r=joboet
ChrisDenton Apr 21, 2025
a33105e
Rollup merge of #140111 - jogru0:redundant_pattern, r=compiler-errors
ChrisDenton Apr 21, 2025
9be04dc
Rollup merge of #140118 - tamird:cstr-cleanup, r=joboet
ChrisDenton Apr 21, 2025
98e2a42
Auto merge of #140127 - ChrisDenton:rollup-2kye32h, r=ChrisDenton
bors Apr 21, 2025
54a7b4f
Rollup merge of #140081 - Berrysoft:update-libc-172, r=tgross35
ChrisDenton Apr 22, 2025
c3f0c4d
Merge branch 'subtree/library'
Apr 23, 2025
247811d
Update toolchain to 2025-04-23
Apr 23, 2025
ab2554b
Update Kani version to 2879207097a875f22768aec1e972c9b87b01b1b6
Apr 23, 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
4 changes: 2 additions & 2 deletions library/Cargo.lock

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

6 changes: 3 additions & 3 deletions library/alloc/src/ffi/c_str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ impl CString {
#[stable(feature = "as_c_str", since = "1.20.0")]
#[rustc_diagnostic_item = "cstring_as_c_str"]
pub fn as_c_str(&self) -> &CStr {
&*self
unsafe { CStr::from_bytes_with_nul_unchecked(self.as_bytes_with_nul()) }
}

/// Converts this `CString` into a boxed [`CStr`].
Expand Down Expand Up @@ -705,14 +705,14 @@ impl ops::Deref for CString {

#[inline]
fn deref(&self) -> &CStr {
unsafe { CStr::from_bytes_with_nul_unchecked(self.as_bytes_with_nul()) }
self.as_c_str()
}
}

#[stable(feature = "rust1", since = "1.0.0")]
impl fmt::Debug for CString {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
fmt::Debug::fmt(&**self, f)
fmt::Debug::fmt(self.as_c_str(), f)
}
}

Expand Down
6 changes: 0 additions & 6 deletions library/alloctests/tests/c_str2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,6 @@ fn build_with_zero2() {
assert!(CString::new(vec![0]).is_err());
}

#[test]
fn formatted() {
let s = CString::new(&b"abc\x01\x02\n\xE2\x80\xA6\xFF"[..]).unwrap();
assert_eq!(format!("{s:?}"), r#""abc\x01\x02\n\xe2\x80\xa6\xff""#);
}

#[test]
fn borrowed() {
unsafe {
Expand Down
4 changes: 2 additions & 2 deletions library/core/src/any.rs
Original file line number Diff line number Diff line change
Expand Up @@ -772,8 +772,8 @@ impl hash::Hash for TypeId {
// (especially given the previous point about the lower 64 bits being
// high quality on their own).
// - It is correct to do so -- only hashing a subset of `self` is still
// with an `Eq` implementation that considers the entire value, as
// ours does.
// compatible with an `Eq` implementation that considers the entire
// value, as ours does.
self.t.1.hash(state);
}
}
Expand Down
2 changes: 1 addition & 1 deletion library/core/src/arch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub macro asm("assembly template", $(operands,)* $(options($(option),*))?) {
///
/// [Rust By Example]: https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html
/// [reference]: https://doc.rust-lang.org/nightly/reference/inline-assembly.html
#[unstable(feature = "naked_functions", issue = "90957")]
#[stable(feature = "naked_functions", since = "CURRENT_RUSTC_VERSION")]
#[rustc_builtin_macro]
pub macro naked_asm("assembly template", $(operands,)* $(options($(option),*))?) {
/* compiler built-in */
Expand Down
3 changes: 1 addition & 2 deletions library/core/src/bstr/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ use crate::ops::{Deref, DerefMut, DerefPure};
/// presented as hex escape sequences.
///
/// The `Display` implementation behaves as if the `ByteStr` were first lossily converted to a
/// `str`, with invalid UTF-8 presented as the Unicode replacement character: �
///
/// `str`, with invalid UTF-8 presented as the Unicode replacement character (�).
#[unstable(feature = "bstr", issue = "134915")]
#[repr(transparent)]
#[doc(alias = "BStr")]
Expand Down
1 change: 0 additions & 1 deletion library/core/src/ffi/c_str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ impl Error for FromBytesWithNulError {
/// within the slice.
///
/// This error is created by the [`CStr::from_bytes_until_nul`] method.
///
#[derive(Clone, PartialEq, Eq, Debug)]
#[stable(feature = "cstr_from_bytes_until_nul", since = "1.69.0")]
pub struct FromBytesUntilNulError(());
Expand Down
10 changes: 5 additions & 5 deletions library/core/src/intrinsics/simd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ pub unsafe fn simd_shuffle<T, U, V>(x: T, y: T, idx: U) -> V;
///
/// `U` must be a vector of pointers to the element type of `T`, with the same length as `T`.
///
/// `V` must be a vector of signed integers with the same length as `T` (but any element size).
/// `V` must be a vector of integers with the same length as `T` (but any element size).
///
/// For each pointer in `ptr`, if the corresponding value in `mask` is `!0`, read the pointer.
/// Otherwise if the corresponding value in `mask` is `0`, return the corresponding value from
Expand All @@ -325,7 +325,7 @@ pub unsafe fn simd_gather<T, U, V>(val: T, ptr: U, mask: V) -> T;
///
/// `U` must be a vector of pointers to the element type of `T`, with the same length as `T`.
///
/// `V` must be a vector of signed integers with the same length as `T` (but any element size).
/// `V` must be a vector of integers with the same length as `T` (but any element size).
///
/// For each pointer in `ptr`, if the corresponding value in `mask` is `!0`, write the
/// corresponding value in `val` to the pointer.
Expand All @@ -349,7 +349,7 @@ pub unsafe fn simd_scatter<T, U, V>(val: T, ptr: U, mask: V);
///
/// `U` must be a pointer to the element type of `T`
///
/// `V` must be a vector of signed integers with the same length as `T` (but any element size).
/// `V` must be a vector of integers with the same length as `T` (but any element size).
///
/// For each element, if the corresponding value in `mask` is `!0`, read the corresponding
/// pointer offset from `ptr`.
Expand All @@ -372,7 +372,7 @@ pub unsafe fn simd_masked_load<V, U, T>(mask: V, ptr: U, val: T) -> T;
///
/// `U` must be a pointer to the element type of `T`
///
/// `V` must be a vector of signed integers with the same length as `T` (but any element size).
/// `V` must be a vector of integers with the same length as `T` (but any element size).
///
/// For each element, if the corresponding value in `mask` is `!0`, write the corresponding
/// value in `val` to the pointer offset from `ptr`.
Expand Down Expand Up @@ -556,7 +556,7 @@ pub unsafe fn simd_bitmask<T, U>(x: T) -> U;
///
/// `T` must be a vector.
///
/// `M` must be a signed integer vector with the same length as `T` (but any element size).
/// `M` must be an integer vector with the same length as `T` (but any element size).
///
/// For each element, if the corresponding value in `mask` is `!0`, select the element from
/// `if_true`. If the corresponding value in `mask` is `0`, select the element from
Expand Down
2 changes: 1 addition & 1 deletion library/core/src/slice/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2814,7 +2814,7 @@ impl<T> [T] {
let half = size / 2;
let mid = base + half;

// SAFETY: the call is made safe by the following inconstants:
// SAFETY: the call is made safe by the following invariants:
// - `mid >= 0`: by definition
// - `mid < size`: `mid = size / 2 + size / 4 + size / 8 ...`
let cmp = f(unsafe { self.get_unchecked(mid) });
Expand Down
6 changes: 6 additions & 0 deletions library/coretests/tests/ffi/cstr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,9 @@ fn compares_as_u8s() {
assert_eq!(Ord::cmp(a, b), Ord::cmp(a_bytes, b_bytes));
assert_eq!(PartialOrd::partial_cmp(a, b), PartialOrd::partial_cmp(a_bytes, b_bytes));
}

#[test]
fn debug() {
let s = c"abc\x01\x02\n\xE2\x80\xA6\xFF";
assert_eq!(format!("{s:?}"), r#""abc\x01\x02\n\xe2\x80\xa6\xff""#);
}
2 changes: 1 addition & 1 deletion library/std/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ miniz_oxide = { version = "0.8.0", optional = true, default-features = false }
addr2line = { version = "0.24.0", optional = true, default-features = false }

[target.'cfg(not(all(windows, target_env = "msvc")))'.dependencies]
libc = { version = "0.2.171", default-features = false, features = [
libc = { version = "0.2.172", default-features = false, features = [
'rustc-dep-of-std',
], public = true }

Expand Down
2 changes: 1 addition & 1 deletion library/std/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3265,7 +3265,7 @@ impl Hash for Path {
if !verbatim {
component_start += match tail {
[b'.'] => 1,
[b'.', sep @ _, ..] if is_sep_byte(*sep) => 1,
[b'.', sep, ..] if is_sep_byte(*sep) => 1,
_ => 0,
};
}
Expand Down
2 changes: 1 addition & 1 deletion library/std/src/rt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ macro_rules! rtprintpanic {
macro_rules! rtabort {
($($t:tt)*) => {
{
rtprintpanic!("fatal runtime error: {}\n", format_args!($($t)*));
rtprintpanic!("fatal runtime error: {}, aborting\n", format_args!($($t)*));
crate::sys::abort_internal();
}
}
Expand Down
4 changes: 3 additions & 1 deletion library/std/src/sys/alloc/sgx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ use crate::sys::pal::waitqueue::SpinMutex;
// The current allocator here is the `dlmalloc` crate which we've got included
// in the rust-lang/rust repository as a submodule. The crate is a port of
// dlmalloc.c from C to Rust.
//
// Specifying linkage/symbol name is solely to ensure a single instance between this crate and its unit tests
#[cfg_attr(test, linkage = "available_externally")]
#[unsafe(export_name = "_ZN16__rust_internals3std3sys3sgx5alloc8DLMALLOCE")]
#[unsafe(export_name = "_ZN16__rust_internals3std3sys5alloc3sgx8DLMALLOCE")]
static DLMALLOC: SpinMutex<dlmalloc::Dlmalloc<Sgx>> =
SpinMutex::new(dlmalloc::Dlmalloc::new_with_allocator(Sgx {}));

Expand Down
35 changes: 0 additions & 35 deletions library/std/src/sys/args/hermit.rs

This file was deleted.

8 changes: 4 additions & 4 deletions library/std/src/sys/args/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
#![forbid(unsafe_op_in_unsafe_fn)]

cfg_if::cfg_if! {
if #[cfg(all(target_family = "unix", not(any(target_os = "espidf", target_os = "vita"))))] {
if #[cfg(any(
all(target_family = "unix", not(any(target_os = "espidf", target_os = "vita"))),
target_os = "hermit",
))] {
mod unix;
pub use unix::*;
} else if #[cfg(target_family = "windows")] {
mod windows;
pub use windows::*;
} else if #[cfg(target_os = "hermit")] {
mod hermit;
pub use hermit::*;
} else if #[cfg(all(target_vendor = "fortanix", target_env = "sgx"))] {
mod sgx;
pub use sgx::*;
Expand Down
1 change: 1 addition & 0 deletions library/std/src/sys/args/sgx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use crate::sys::pal::abi::usercalls::raw::ByteBuffer;
use crate::sys_common::FromInner;
use crate::{fmt, slice};

// Specifying linkage/symbol name is solely to ensure a single instance between this crate and its unit tests
#[cfg_attr(test, linkage = "available_externally")]
#[unsafe(export_name = "_ZN16__rust_internals3std3sys3sgx4args4ARGSE")]
static ARGS: AtomicUsize = AtomicUsize::new(0);
Expand Down
6 changes: 5 additions & 1 deletion library/std/src/sys/args/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
#![allow(dead_code)] // runtime init functions not used during testing

use crate::ffi::CStr;
#[cfg(target_os = "hermit")]
use crate::os::hermit::ffi::OsStringExt;
#[cfg(not(target_os = "hermit"))]
use crate::os::unix::ffi::OsStringExt;

#[path = "common.rs"]
Expand Down Expand Up @@ -73,6 +76,7 @@ pub fn args() -> Args {
target_os = "illumos",
target_os = "emscripten",
target_os = "haiku",
target_os = "hermit",
target_os = "l4re",
target_os = "fuchsia",
target_os = "redox",
Expand Down Expand Up @@ -100,7 +104,7 @@ mod imp {

unsafe fn really_init(argc: isize, argv: *const *const u8) {
// These don't need to be ordered with each other or other stores,
// because they only hold the unmodified system-provide argv/argc.
// because they only hold the unmodified system-provided argv/argc.
ARGC.store(argc, Ordering::Relaxed);
ARGV.store(argv as *mut _, Ordering::Relaxed);
}
Expand Down
6 changes: 4 additions & 2 deletions library/std/src/sys/pal/sgx/abi/tls/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,17 @@ const USIZE_BITS: usize = 64;
const TLS_KEYS: usize = 128; // Same as POSIX minimum
const TLS_KEYS_BITSET_SIZE: usize = (TLS_KEYS + (USIZE_BITS - 1)) / USIZE_BITS;

// Specifying linkage/symbol name is solely to ensure a single instance between this crate and its unit tests
#[cfg_attr(test, linkage = "available_externally")]
#[unsafe(export_name = "_ZN16__rust_internals3std3sys3sgx3abi3tls14TLS_KEY_IN_USEE")]
#[unsafe(export_name = "_ZN16__rust_internals3std3sys3pal3sgx3abi3tls14TLS_KEY_IN_USEE")]
static TLS_KEY_IN_USE: SyncBitset = SYNC_BITSET_INIT;
macro_rules! dup {
((* $($exp:tt)*) $($val:tt)*) => (dup!( ($($exp)*) $($val)* $($val)* ));
(() $($val:tt)*) => ([$($val),*])
}
// Specifying linkage/symbol name is solely to ensure a single instance between this crate and its unit tests
#[cfg_attr(test, linkage = "available_externally")]
#[unsafe(export_name = "_ZN16__rust_internals3std3sys3sgx3abi3tls14TLS_DESTRUCTORE")]
#[unsafe(export_name = "_ZN16__rust_internals3std3sys3pal3sgx3abi3tls14TLS_DESTRUCTORE")]
static TLS_DESTRUCTOR: [AtomicUsize; TLS_KEYS] = dup!((* * * * * * *) (AtomicUsize::new(0)));

unsafe extern "C" {
Expand Down
6 changes: 4 additions & 2 deletions library/std/src/sys/pal/sgx/os.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,13 @@ pub fn current_exe() -> io::Result<PathBuf> {
unsupported()
}

// Specifying linkage/symbol name is solely to ensure a single instance between this crate and its unit tests
#[cfg_attr(test, linkage = "available_externally")]
#[unsafe(export_name = "_ZN16__rust_internals3std3sys3sgx2os3ENVE")]
#[unsafe(export_name = "_ZN16__rust_internals3std3sys3pal3sgx2os3ENVE")]
static ENV: AtomicUsize = AtomicUsize::new(0);
// Specifying linkage/symbol name is solely to ensure a single instance between this crate and its unit tests
#[cfg_attr(test, linkage = "available_externally")]
#[unsafe(export_name = "_ZN16__rust_internals3std3sys3sgx2os8ENV_INITE")]
#[unsafe(export_name = "_ZN16__rust_internals3std3sys3pal3sgx2os8ENV_INITE")]
static ENV_INIT: Once = Once::new();
type EnvStore = Mutex<HashMap<OsString, OsString>>;

Expand Down
3 changes: 2 additions & 1 deletion library/std/src/sys/pal/sgx/thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ mod task_queue {
}
}

// Specifying linkage/symbol name is solely to ensure a single instance between this crate and its unit tests
#[cfg_attr(test, linkage = "available_externally")]
#[unsafe(export_name = "_ZN16__rust_internals3std3sys3sgx6thread10TASK_QUEUEE")]
#[unsafe(export_name = "_ZN16__rust_internals3std3sys3pal3sgx6thread10TASK_QUEUEE")]
static TASK_QUEUE: Mutex<Vec<Task>> = Mutex::new(Vec::new());

pub(super) fn lock() -> MutexGuard<'static, Vec<Task>> {
Expand Down
6 changes: 5 additions & 1 deletion library/std/src/thread/local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,16 @@ use crate::fmt;
///
/// Initialization is dynamically performed on the first call to a setter (e.g.
/// [`with`]) within a thread, and values that implement [`Drop`] get
/// destructed when a thread exits. Some caveats apply, which are explained below.
/// destructed when a thread exits. Some platform-specific caveats apply, which
/// are explained below.
/// Note that, should the destructor panics, the whole process will be [aborted].
///
/// A `LocalKey`'s initializer cannot recursively depend on itself. Using a
/// `LocalKey` in this way may cause panics, aborts or infinite recursion on
/// the first call to `with`.
///
/// [aborted]: crate::process::abort
///
/// # Single-thread Synchronization
///
/// Though there is no potential race with other threads, it is still possible to
Expand Down
5 changes: 3 additions & 2 deletions library/std/src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ pub struct Instant(time::Instant);
/// println!("{}", elapsed.as_secs());
/// }
/// Err(e) => {
/// // an error occurred!
/// println!("Error: {e:?}");
/// // the system clock went backwards!
/// println!("Great Scott! {e:?}");
/// }
/// }
/// }
Expand Down Expand Up @@ -245,6 +245,7 @@ pub struct Instant(time::Instant);
/// > structure cannot represent the new point in time.
///
/// [`add`]: SystemTime::add
/// [`UNIX_EPOCH`]: SystemTime::UNIX_EPOCH
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[stable(feature = "time2", since = "1.8.0")]
pub struct SystemTime(time::SystemTime);
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# standard library we currently track.

[toolchain]
channel = "nightly-2025-04-21"
channel = "nightly-2025-04-23"
components = ["llvm-tools-preview", "rustc-dev", "rust-src", "rustfmt"]
2 changes: 1 addition & 1 deletion tool_config/kani-version.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# incompatible with the verify-std repo.

[kani]
commit = "228c5a5f078ff7b46d67724ed8362865266d709f"
commit = "2879207097a875f22768aec1e972c9b87b01b1b6"
Loading