Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
983 commits
Select commit Hold shift + click to select a range
d0e1626
std fs tests: avoid matching on OS-provided error string
RalfJung May 10, 2026
517cf93
prepare fs tests for miri
RalfJung May 10, 2026
777751b
remove some miri test gates
RalfJung May 10, 2026
1dac21e
Constify Iterator-related methods and functions
Randl May 10, 2026
92a3f62
Merge pull request #2112 from sayantn/revert-passes
folkertdev May 10, 2026
bf07f8a
Merge pull request #2111 from sayantn/remove-heuristic
folkertdev May 10, 2026
d781394
Improve doc comments for f32::ceil() and f32::floor()
Wilfred May 10, 2026
bf87daa
Auto merge of #144537 - frank-king:feature/pin-drop, r=petrochenkov
bors May 10, 2026
395bcef
Rollup merge of #154972 - chorman0773:return_address, r=Mark-Simulacrum
JonathanBrouwer May 10, 2026
da2f216
Rollup merge of #156387 - RalfJung:fs-error-str, r=ChrisDenton
JonathanBrouwer May 10, 2026
5c2d3c7
Rollup merge of #156192 - xtqqczze:slice-from-raw-parts, r=Mark-Simul…
JonathanBrouwer May 10, 2026
97636a5
Rollup merge of #156365 - RalfJung:stream_send_recv_stress, r=nia-e
JonathanBrouwer May 10, 2026
e10a837
Migrate libraries from ptr::slice_from_raw_parts to .cast_slice
Paladynee May 6, 2026
4a11214
Add davidtwco and adamgemmell as maintainers
Amanieu May 10, 2026
f93c496
Auto merge of #156405 - JonathanBrouwer:rollup-yJcad1j, r=JonathanBro…
bors May 10, 2026
e372ac9
Fix unwanted "Available on XX-bit only"
GuillaumeGomez May 11, 2026
aee5795
Auto merge of #153975 - cyrgani:remove-f64-methods, r=scottmcm
bors May 11, 2026
527d07d
Merge pull request #2106 from sayantn/cvtf16s16
folkertdev May 11, 2026
94584d8
Rollup merge of #156357 - RalfJung:slow-test, r=Mark-Simulacrum
JonathanBrouwer May 11, 2026
e749e5b
Rollup merge of #156389 - RalfJung:miri-fs, r=Mark-Simulacrum
JonathanBrouwer May 11, 2026
3d5e7ed
Rollup merge of #156375 - RalfJung:kernel_copy-background-threads, r=…
JonathanBrouwer May 11, 2026
02714e3
Rollup merge of #156392 - Wilfred:float_ceil_docs, r=Mark-Simulacrum
JonathanBrouwer May 11, 2026
5931609
Rollup merge of #156426 - GuillaumeGomez:fix-cfg-display-integers, r=…
JonathanBrouwer May 11, 2026
5a47ce1
Show intrinsics::gpu in docs
Flakebi May 6, 2026
e58ae42
implement into_array for Vec<T>
bend-n May 6, 2026
df0c22c
loongarch: Use `intrinsics::simd` for vabsd
heiher May 6, 2026
39bd256
stabilize `feature(cfg_target_has_atomic_equal_alignment)`
WaffleLapkin Apr 8, 2026
10ca90e
rename `cfg(target_has_atomic_{equal=>primitive}_alignment)`
WaffleLapkin May 11, 2026
963a057
Correct small typo in gen-arm
sayantn May 11, 2026
17d31bf
Implement `vcmla_lane` with ARM intrinsics
sayantn May 11, 2026
6c054b2
enable f16/f128 doctests in Miri
RalfJung May 10, 2026
da55d24
Set target_has_reliable_* to reasonable values in Miri, and update co…
RalfJung May 10, 2026
118a2c6
re-enable checked_ilog2 test in Miri
RalfJung May 10, 2026
c2b54a1
update cfg(miri)-related comments
RalfJung May 10, 2026
30cdc94
Rollup merge of #156442 - Flakebi:gpu-docs, r=RalfJung
JonathanBrouwer May 11, 2026
84c3836
fix missing space in Rc::decrement_strong_count
ast-ral May 12, 2026
de7f4ae
Remove code for compiling and comparing C and Rust files, made the C …
sayantn Mar 9, 2026
a121299
Rollup merge of #156393 - RalfJung:core-miri-tests, r=tgross35
JonathanBrouwer May 12, 2026
df64cc2
Rollup merge of #156479 - ast-ral:dev-missing-space-decrement-strong-…
JonathanBrouwer May 12, 2026
e698378
Update iterator.rs
justinyaodu May 12, 2026
85869aa
zeroall/zeroupper *are* supported by Miri
RalfJung May 12, 2026
51662d2
Update/add comments for miri-ignored tests
RalfJung May 12, 2026
30166b0
remove/update various cfg(miri)
RalfJung May 12, 2026
846f4ff
explain ignore aarch64 tests
RalfJung May 12, 2026
e54294a
Move `std::io::Cursor` into `core::io`
bushrat011899 May 11, 2026
72722bd
Move `std::io::util` to `core::io`
bushrat011899 May 11, 2026
08d68da
Merge pull request #2114 from heiher/vabsd
folkertdev May 12, 2026
3d2cb52
Rollup merge of #156428 - bushrat011899:core_io_cursor, r=nia-e
JonathanBrouwer May 12, 2026
771463f
Rollup merge of #156431 - bushrat011899:core_io_util, r=nia-e
JonathanBrouwer May 12, 2026
59b6315
std::net::tcp: let the OS pick the port numbers
RalfJung May 10, 2026
d0c5e7b
Add `send_process_group_signal` to existing `unix_send_signal` feature
jmillikin May 13, 2026
6a3a105
Add `ChildExt::kill_process_group`
jmillikin May 13, 2026
884a132
loongarch: Use `intrinsics::simd` for vpick{ev,od}
heiher May 7, 2026
76bbefb
Generate rust bindings and test code
sayantn Apr 30, 2026
307a47f
Use pointers for the C definitions to resolve ABI inconsistencies
sayantn Apr 24, 2026
7c7cbf1
Make floats static, as rounding is not a real concern here anymore
sayantn May 7, 2026
a4c1b61
Modify the CI scripts to work with the new design
sayantn Mar 16, 2026
1bd0424
gen-arm: toggle `big_endian_inverse` where required
sayantn May 9, 2026
e53feba
Disable some `assert_instr` tests in big-endian
sayantn May 10, 2026
31bf036
Fix `_mm_sm3rnds2_epi32`
sayantn Apr 29, 2026
bba39a4
Disable some tests in x86 due to CI failures
sayantn May 10, 2026
43ea9ad
Implement OsStr::split_at
ChrisDenton May 11, 2026
24cc724
std: replace "safe" with "sound" in safety documentation
xtqqczze May 14, 2026
c522512
map_try_insert changes
malezjaa Apr 15, 2026
9a580f0
actually run the temp_dir doctest
RalfJung May 12, 2026
2cd9d88
Revert "Rollup merge of #154994 - dianne:no-dbg-temp, r=Mark-Simulacrum"
cuviper May 14, 2026
8a2246e
Revert "Rollup merge of #154074 - dianne:dbg-temp-scopes, r=Mark-Simu…
cuviper May 14, 2026
3bc073a
Revert "Rollup merge of #149869 - joboet:torn-dbg, r=Mark-Simulacrum"
cuviper May 14, 2026
d33effa
Restore `dbg!` regression tests
cuviper May 14, 2026
d5339d1
Require UTF-8 in `Utf8Pattern::StringPattern`
qaijuang May 13, 2026
3d71ae0
Auto merge of #155360 - malezjaa:try_insert_changes, r=cuviper
bors May 15, 2026
21dcbc9
Stabilize bool_to_result
LimpSquid May 15, 2026
ad0b378
Add pext/pdep as aliases for extract_bits/deposit_bits
niklasf May 15, 2026
df0582f
Rollup merge of #156493 - RalfJung:run-temp-dir, r=ChrisDenton
JonathanBrouwer May 15, 2026
b1a1fb5
Rollup merge of #156556 - qaijuang:issue-156491-str-replace-utf8-patt…
JonathanBrouwer May 15, 2026
fd6093a
Fix some typos in comments
Hawk777 May 1, 2026
68405c5
c ffi document fixes for c_short.md
lygstate Sep 21, 2025
5242798
updated map.rs .values() method to use assert instead of println!
BowLuckie May 16, 2026
a3ba92b
chore(deps): update rust crate gungraun to 0.19.0
renovate-bot May 15, 2026
16f2d2b
musl-math-sys: Fix a new clippy lint
tgross35 May 15, 2026
b966fb6
test: Allow `unstable_name_collisions`
tgross35 May 15, 2026
66f92e1
Updated `map.rs` functions to all use asserts instread of `println!` …
BowLuckie May 16, 2026
817d04c
fixed some bugs in hashmap documentation comments
BowLuckie May 16, 2026
900e2e5
removed extra space after `///`
BowLuckie May 16, 2026
872a84f
specialize Clone of array IntoIter
Paladynee May 16, 2026
ce5dc48
Fix compilation for espidf target by conditionally disabling process …
FelixLttks May 16, 2026
f40983b
Change division to multiplication in floating-point midpoint
oscargus May 16, 2026
97a1928
Remove `array::{try_,}from_trusted_iterator`
theemathas May 17, 2026
1ef1f0e
Remove `UncheckedIterator`
theemathas May 17, 2026
5e4e107
Fix typo in `format_into` docs: signed -> unsigned
joshtriplett May 17, 2026
cd422d2
change `other uses of const` to `raw pointers`
Cheese-Space May 17, 2026
d142cc9
Merge pull request #2063 from sayantn/intrinsic-test
Amanieu May 17, 2026
352d844
prefer T::IS_ZST over manual check
Lars-Schumann May 17, 2026
77a6b8c
Rollup merge of #156492 - RalfJung:cfg-miri, r=SimonSapin
JonathanBrouwer May 18, 2026
45529f2
Rollup merge of #155313 - numero-744:patch-1, r=SimonSapin
JonathanBrouwer May 18, 2026
c931521
Rollup merge of #156234 - bend-n:into_array_for_vec_t_via_boxed_array…
JonathanBrouwer May 18, 2026
0892230
Rollup merge of #156488 - justinyaodu:patch-2, r=SimonSapin
JonathanBrouwer May 18, 2026
2b5d7e5
Rollup merge of #156572 - xtqqczze:sound-env, r=SimonSapin
JonathanBrouwer May 18, 2026
c9dce8a
Rollup merge of #156624 - lygstate:c_ffi_docs_fixes, r=SimonSapin
JonathanBrouwer May 18, 2026
c56a688
Rollup merge of #156638 - FelixLttks:fix-espidf-sigkill, r=SimonSapin
JonathanBrouwer May 18, 2026
7c33890
Rollup merge of #156647 - oscargus:fasterfloatmidpoint, r=SimonSapin
JonathanBrouwer May 18, 2026
6cdc646
Rollup merge of #156668 - joshtriplett:format-into-typo, r=SimonSapin
JonathanBrouwer May 18, 2026
bb73cd6
Rollup merge of #156677 - Cheese-Space:main, r=SimonSapin
JonathanBrouwer May 18, 2026
b83459a
Auto merge of #149696 - jnodorp:clarify-utf16-errors, r=SimonSapin
bors May 18, 2026
0a60eb5
Add doc alias cfg-if for `cfg_select!`
joshtriplett May 18, 2026
9c8c00e
Add doc alias memoffset for `offset_of!`
joshtriplett May 18, 2026
35bcf2f
Add doc alias `home` for `home_dir`
joshtriplett May 18, 2026
d7359c7
Add doc alias `filetime` for `File::set_times`
joshtriplett May 18, 2026
f85df9a
Add doc alias `atty` for `is_terminal`
joshtriplett May 18, 2026
a1fc85f
Add diagnostic items for IoBufReader and StdinLock
JaafarTanoukhi May 18, 2026
38aaa0d
Widen 'widening_mul' result; Remove 'widening_mul' from 'u128' and 'i…
bjoernager May 16, 2026
210b3ec
update list of platforms vulnerable to TOCTOU
emilyalbini May 18, 2026
3970f82
Rollup merge of #156690 - joshtriplett:crate-aliases, r=SimonSapin
jhpratt May 18, 2026
89577c1
Rollup merge of #156702 - emilyalbini:ea-qyuqlszrnltt, r=noratrieb
jhpratt May 18, 2026
1b0fdd8
Rollup merge of #156709 - sayantn:stdarch-sync-2026-05-18, r=sayantn
JonathanBrouwer May 18, 2026
098c0d5
Rollup merge of #155006 - WaffleLapkin:stabilize_cfg_target_has_atomi…
JonathanBrouwer May 18, 2026
082ef85
Rollup merge of #156444 - ChrisDenton:os_str_split_at, r=nia-e
JonathanBrouwer May 18, 2026
3b8ea99
Rollup merge of #156661 - theemathas:del-unchecked-iter, r=SimonSapin
JonathanBrouwer May 18, 2026
5be0599
Rollup merge of #152367 - Conaclos:conaclos/FromBytesUntilNulError-im…
JonathanBrouwer May 18, 2026
2edb31e
Rollup merge of #156606 - niklasf:alias-pext-pdep, r=SimonSapin
JonathanBrouwer May 18, 2026
10e68d4
Rollup merge of #156630 - BowLuckie:main, r=clarfonthey
JonathanBrouwer May 18, 2026
6e11572
Rollup merge of #156644 - bjoernager:widening-mul, r=clarfonthey
JonathanBrouwer May 18, 2026
71f3245
Rollup merge of #156697 - JaafarTanoukhi:iobufreader-stdinlock-diag-i…
JonathanBrouwer May 18, 2026
33abaff
Auto merge of #156720 - JonathanBrouwer:rollup-vArjiS4, r=JonathanBro…
bors May 18, 2026
f274977
Rollup merge of #155840 - Lars-Schumann:prefer-is-zst, r=clarfonthey
JonathanBrouwer May 18, 2026
ddacc95
Auto merge of #156728 - JonathanBrouwer:rollup-Qv3EfnO, r=JonathanBro…
bors May 18, 2026
68bae73
intrinsic-test: run rustfmt on generated sources
davidtwco May 8, 2026
ceb2adc
intrinsic-test: remove all indentation logic
davidtwco May 19, 2026
400ca7f
loongarch: Use `intrinsics::simd` for vilv{h,l}
heiher May 8, 2026
3ee51b9
docs: remove duplicate "hermit" entry in OS constants list
kcx1 May 18, 2026
d338b83
tidy: alphabetize os constants list
kcx1 May 19, 2026
cd51cb1
Auto merge of #156589 - cuviper:revert-dbg-tearing, r=the8472
bors May 19, 2026
6a1b078
Add an example to the `NumBuffer` documentations
BurntSushi May 19, 2026
c864cbb
intrinsic-test: document arm intrinsic filtering
davidtwco May 7, 2026
005183f
intrinsic-test: document `--sample-percentage`
davidtwco May 8, 2026
2ff2d72
intrinsic-test: document `iter_specializations`
davidtwco May 8, 2026
ea3a28c
intrinsic-test: document `common::argument` module
davidtwco May 8, 2026
129bb9a
intrinsic-test: document `common::values`
davidtwco May 19, 2026
d574cac
intrinsic-test: document `common::intrinsic_helpers`
davidtwco May 19, 2026
b9833b7
intrinsic-test: document `common::gen_c`
davidtwco May 19, 2026
2b5900a
intrinsic-test: document `common::gen_rust`
davidtwco May 19, 2026
2a948ff
Rollup merge of #156747 - BurntSushi:ag/num-buffer-example, r=Guillau…
JonathanBrouwer May 20, 2026
1c42a6b
intrinsic-test: simplify `ArmIntrinsicType`
davidtwco May 7, 2026
ed45d4f
intrinsic-test: parsing of SVE types
davidtwco May 7, 2026
992e529
intrinsic-test: add SVE-specific constraints
davidtwco May 8, 2026
dad8dec
intrinsic-test: remove `arm::argument` module
davidtwco May 20, 2026
eb8c7a8
Merge pull request #2123 from heiher/vilv-h-l
adamgemmell May 20, 2026
44aee8b
Fix typos in `intrinsics::size_of_type_id` panic message and doc comment
SpriteOvO May 7, 2026
55571a2
Add `TypeId::variants` method to get number of variants for `type_info`
SpriteOvO May 7, 2026
d0f8ea8
Add `TypeId::fields` method to get number of fields for `type_info`
SpriteOvO May 7, 2026
a372d43
loongarch: Use `intrinsics::simd` for vrepl{128}ve{0,i}
heiher May 11, 2026
2229d4a
Rollup merge of #156242 - Jamesbarford:feat/remove-alwaysinline+targe…
JonathanBrouwer May 21, 2026
901695c
Correct doc of Vec::into_array: Returns Err(Self) instead of None
Teufelchen1 May 21, 2026
83b2a0f
Fix chunk count
adamgemmell May 21, 2026
718ce22
Don't run doctests
adamgemmell May 21, 2026
4df2368
Add unstable Share trait
P8L1 May 21, 2026
63ec28e
Implement Share for shared references
P8L1 May 21, 2026
e0810b3
Add `TypeId::field` method to get a field representing type for `type…
SpriteOvO May 10, 2026
77621e8
Add Share impl for Rc
P8L1 May 21, 2026
025dc9b
Add Share impl for Arc
P8L1 May 21, 2026
c12ee11
Add Share impl for mpsc Sender
P8L1 May 21, 2026
c9bfecb
Add Share impl for mpsc SyncSender
P8L1 May 21, 2026
39c786e
Auto merge of #152112 - Kobzol:vec-deque-strongly-typed, r=joboet
bors May 22, 2026
35d9605
Remove provisional Share trait FIXME notes
P8L1 May 22, 2026
e2784ea
Document unstable Share trait semantics
P8L1 May 22, 2026
b98c0b0
Add `#[doc(alias = "phi")]` for float GOLDEN_RATIO constants
okaneco May 22, 2026
f2f5d87
Clarify Share trait docs
P8L1 May 22, 2026
d33cf9a
stdarch-gen-hexagon-scalar: Do not emit inline(always) if target_feat…
taiki-e May 23, 2026
e07bc42
Workaround rustfmt issue around impl const
taiki-e May 23, 2026
97b880b
Make hint::cold_path #[cold] so that it works even if the MIR inliner…
saethlin May 23, 2026
c21ae89
Rewrite documentation that said to implement `Into`
joshtriplett May 24, 2026
c0b7d43
Rollup merge of #156828 - P8L1:share-trait-core-bootstrap, r=SimonSapin
JonathanBrouwer May 24, 2026
c3e1fc9
Rollup merge of #156830 - okaneco:phi_doc_alias, r=SimonSapin
JonathanBrouwer May 24, 2026
184ee83
Return result instead of option by Arc/Rc/Box::into_array
Teufelchen1 May 21, 2026
108d55e
Merge pull request #2130 from adamgemmell/dev/adagem01/chunk-size
folkertdev May 24, 2026
96f7bf3
Rollup merge of #156810 - Teufelchen1:fix_doc_typo, r=SimonSapin
jhpratt May 24, 2026
b9342e7
Add intrinsic-test GCC run
sayantn May 11, 2026
8d7cffb
Add intrinsic-test ICX run
sayantn May 14, 2026
1667603
loongarch: CRC intrinsics require loongarch64
Gelbpunkt May 23, 2026
37f3916
loongarch: Align CRC intrinsic signatures with clang and GCC
Gelbpunkt May 24, 2026
679325f
Merge pull request #2127 from davidtwco/intrinsic-test-remove-arm-arg…
folkertdev May 24, 2026
eeb2538
Merge pull request #2136 from Gelbpunkt/la64-crc
sayantn May 25, 2026
872905d
Auto merge of #156900 - folkertdev:stdarch-sync-2026-05-25, r=folkertdev
bors May 25, 2026
199d262
Merge pull request #2129 from heiher/vrepl-128-ve-0-i
Amanieu May 25, 2026
4c9fc4f
Auto merge of #156594 - LimpSquid:stabilize-bool-to-result, r=SimonSapin
bors May 25, 2026
5d5d113
Rollup merge of #156909 - joshtriplett:into-docs, r=SimonSapin
JonathanBrouwer May 25, 2026
5fc9289
Auto merge of #156930 - JonathanBrouwer:rollup-NuilniS, r=JonathanBro…
bors May 25, 2026
9a7c522
add optional output-dir argument
xonx4l May 26, 2026
12aba59
symcheck: Only ELFv1 ppc64 doesn't set `.note.GNU-stack`
Gelbpunkt May 26, 2026
4cfb489
Rollup merge of #156959 - folkertdev:stdarch-sync-2026-05-26, r=folke…
JonathanBrouwer May 26, 2026
b8dac4f
Rollup merge of #156161 - mejrs:this_formatargs, r=oli-obk
JonathanBrouwer May 26, 2026
f91c5ed
Rollup merge of #156761 - kcx1:fix/156730, r=tgross35
JonathanBrouwer May 26, 2026
9954a25
[AIX] Sync compiler and std with libc changes
amy-kwan May 26, 2026
69b52ee
Auto merge of #156385 - RalfJung:tcp-ports, r=nia-e
bors May 26, 2026
6b10aff
std: Fix thread::available_parallelism on Redox targets
willnode May 27, 2026
d611d6f
Upgrade taiki-e/install-action to 2.79.8
Gelbpunkt May 16, 2026
3eb7094
net tests: let the OS pick the port numbers
RalfJung May 27, 2026
6b0a531
wip
Sa4dUs May 11, 2026
1952423
offload_kernel builtin macro wip
Sa4dUs May 16, 2026
9c3a0de
MIR inlining: allow backends to opt-in to inlining intrinsics
RalfJung May 10, 2026
5164728
Rollup merge of #156390 - Randl:iter_related_const, r=oli-obk
GuillaumeGomez May 27, 2026
4ca0693
Rollup merge of #157002 - willnode:redox-nproc, r=bjorn3
GuillaumeGomez May 27, 2026
1ac624b
`FieldId` wraps FRT `TypeId` instead of the actual field `TypeId`
SpriteOvO May 27, 2026
74eb531
Auto merge of #157037 - tgross35:update-builtins, r=tgross35
bors May 28, 2026
471a777
Rollup merge of #156403 - SpriteOvO:type-info-refactor-variant, r=oli…
matthiaskrgr May 28, 2026
3c9b8b9
Add splitting caveats to `{read,write}_volatile`
scottmcm May 25, 2026
962f603
enable file_lock_double_unlock test on Unix targets as well
RalfJung May 28, 2026
82b43b1
make file locking docs a bit more clear
RalfJung May 28, 2026
517c5bf
Rollup merge of #157046 - RalfJung:file_lock_double_unlock, r=Mark-Si…
JonathanBrouwer May 28, 2026
88e7dc1
Stabilize Path::is_empty
ChrisDenton May 28, 2026
58199a4
Remove a hack introduced back when unwinding through extern "C" was UB
bjorn3 May 28, 2026
054d8d2
Implement Encode and Decode for proc_macro::TokenStream wrapper type
bjorn3 May 28, 2026
78a205b
Remove outdated comment
bjorn3 May 28, 2026
c9d80ae
Use platform independent encoding for integers in proc-macro RPC
bjorn3 May 28, 2026
3b4b1d7
Move handle counters to the server side
bjorn3 May 28, 2026
c2664ab
Enable requesting shared-memory at kernel launch-time via offload
ZuseZ4 May 28, 2026
ab76f7a
Auto merge of #156634 - Paladynee:lib/array-intoiter-spec-clone, r=jo…
bors May 29, 2026
b6a3206
Stop needing an alloca for `catch_unwind`
scottmcm May 23, 2026
fb85ebb
android: implement file locking by calling flock
RalfJung May 27, 2026
cdf59ea
miri: support flock on android
RalfJung May 27, 2026
711ac38
Rollup merge of #156867 - scottmcm:WIP-no-alloca-for-catch-unwind, r=…
JonathanBrouwer May 29, 2026
6dc06d8
Rollup merge of #148345 - PSeitz:add_inline, r=joboet
JonathanBrouwer May 29, 2026
8be0368
Rollup merge of #156931 - scottmcm:caveat-volatile-loads, r=RalfJung
JonathanBrouwer May 29, 2026
a9f8d09
Rollup merge of #156991 - amy-kwan:amy-kwan/aix-libc-changes, r=JohnT…
JonathanBrouwer May 29, 2026
e4957dc
Rollup merge of #157038 - RalfJung:android-flock, r=workingjubilee
JonathanBrouwer May 29, 2026
dfc6a01
Make `std::sys::io::io_slice` compatible with `core`
bushrat011899 May 13, 2026
5731040
Move `std::io::IoSlice(Mut)` to `core::io`
bushrat011899 May 13, 2026
6c72ac2
Move `IoSlice(Mut)` tests from `std` to `coretests`
bushrat011899 May 13, 2026
0d418f3
add docs
Sa4dUs May 29, 2026
510670a
Detect `clflushopt` in `is_x86_feature_detected!`
jlpetz May 29, 2026
3281928
Rollup merge of #157076 - bjorn3:proc_macro_refactors4, r=petrochenkov
JonathanBrouwer May 29, 2026
d83fe60
Rollup merge of #154835 - ZuseZ4:offload-sharedmem, r=oli-obk
JonathanBrouwer May 29, 2026
ca83f3c
Rollup merge of #157065 - ChrisDenton:stable-path-is-empty, r=joboet
JonathanBrouwer May 29, 2026
de5c78b
Rollup merge of #157098 - jlpetz:clflushopt-target-feature, r=folkertdev
JonathanBrouwer May 29, 2026
2e728a8
Auto merge of #155849 - bushrat011899:io_slice_in_core, r=nia-e
bors May 30, 2026
e36e62b
Rollup merge of #156863 - saethlin:silly-cold-path, r=jackh726
JonathanBrouwer May 30, 2026
87fef70
Auto merge of #157161 - JonathanBrouwer:rollup-3MNUPwu, r=JonathanBro…
bors May 30, 2026
3ff5f0c
Rollup merge of #157006 - RalfJung:udp-ports, r=jhpratt
JonathanBrouwer May 30, 2026
962a4ed
Rollup merge of #151690 - xtqqczze:env-var, r=jhpratt
JonathanBrouwer May 30, 2026
68a50b1
Rollup merge of #155826 - devnexen:uefi_stdio_fix, r=jhpratt
JonathanBrouwer May 30, 2026
a1fb9a1
Rollup merge of #156109 - Paladynee:lib/cast-slice-improvements, r=jh…
JonathanBrouwer May 30, 2026
1ece843
Rollup merge of #156642 - Sa4dUs:offload-macro, r=ZuseZ4
JonathanBrouwer May 30, 2026
28c51fb
directory handles: add Dir::metadata
RalfJung May 31, 2026
79690b2
Replace version placeholders with 1.97.0
cuviper May 25, 2026
b22bf2b
Update `cfg(bootstrap)` for the new stage0
cuviper May 26, 2026
c2995e0
Reformat with the new stage0
cuviper May 26, 2026
fef86ec
Clarify documentation of `Option::{zip, zip_with}()`.
kpreid May 31, 2026
f3bec16
Rollup merge of #157206 - kpreid:zip-doc, r=jhpratt
jhpratt May 31, 2026
ac15268
Rollup merge of #157192 - RalfJung:dir-metadata, r=the8472
jhpratt May 31, 2026
c916a06
Auto merge of #157219 - jhpratt:rollup-70ooTMg, r=jhpratt
bors May 31, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
120 changes: 28 additions & 92 deletions Cargo.lock

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

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,6 @@ rustflags = [
rustc-std-workspace-core = { path = 'rustc-std-workspace-core' }
rustc-std-workspace-alloc = { path = 'rustc-std-workspace-alloc' }
rustc-std-workspace-std = { path = 'rustc-std-workspace-std' }

# See comments in `library/windows-sys/Cargo.toml` for why this is patched
windows-sys = { path = 'windows-sys' }
16 changes: 8 additions & 8 deletions alloc/src/alloc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,12 @@ impl Global {
#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
fn alloc_impl_runtime(layout: Layout, zeroed: bool) -> Result<NonNull<[u8]>, AllocError> {
match layout.size() {
0 => Ok(NonNull::slice_from_raw_parts(layout.dangling_ptr(), 0)),
0 => Ok(layout.dangling_ptr().cast_slice(0)),
// SAFETY: `layout` is non-zero in size,
size => unsafe {
let raw_ptr = if zeroed { alloc_zeroed(layout) } else { alloc(layout) };
let ptr = NonNull::new(raw_ptr).ok_or(AllocError)?;
Ok(NonNull::slice_from_raw_parts(ptr, size))
Ok(ptr.cast_slice(size))
},
}
}
Expand Down Expand Up @@ -261,7 +261,7 @@ impl Global {
if zeroed {
raw_ptr.add(old_size).write_bytes(0, new_size - old_size);
}
Ok(NonNull::slice_from_raw_parts(ptr, new_size))
Ok(ptr.cast_slice(new_size))
},

// SAFETY: because `new_layout.size()` must be greater than or equal to `old_size`,
Expand Down Expand Up @@ -297,7 +297,7 @@ impl Global {
// SAFETY: conditions must be upheld by the caller
0 => unsafe {
self.deallocate(ptr, old_layout);
Ok(NonNull::slice_from_raw_parts(new_layout.dangling_ptr(), 0))
Ok(new_layout.dangling_ptr().cast_slice(0))
},

// SAFETY: `new_size` is non-zero. Other conditions must be upheld by the caller
Expand All @@ -307,7 +307,7 @@ impl Global {

let raw_ptr = realloc_nonnull(ptr, old_layout, new_size);
let ptr = NonNull::new(raw_ptr).ok_or(AllocError)?;
Ok(NonNull::slice_from_raw_parts(ptr, new_size))
Ok(ptr.cast_slice(new_size))
},

// SAFETY: because `new_size` must be smaller than or equal to `old_layout.size()`,
Expand Down Expand Up @@ -388,7 +388,7 @@ impl Global {
#[rustc_const_unstable(feature = "const_heap", issue = "79597")]
const fn alloc_impl_const(layout: Layout, zeroed: bool) -> Result<NonNull<[u8]>, AllocError> {
match layout.size() {
0 => Ok(NonNull::slice_from_raw_parts(layout.dangling_ptr(), 0)),
0 => Ok(layout.dangling_ptr().cast_slice(0)),
// SAFETY: `layout` is non-zero in size,
size => unsafe {
let raw_ptr = core::intrinsics::const_allocate(layout.size(), layout.align());
Expand All @@ -397,7 +397,7 @@ impl Global {
// SAFETY: the pointer returned by `const_allocate` is valid to write to.
ptr.write_bytes(0, size);
}
Ok(NonNull::slice_from_raw_parts(ptr, size))
Ok(ptr.cast_slice(size))
},
}
}
Expand Down Expand Up @@ -442,7 +442,7 @@ impl Global {

#[unstable(feature = "allocator_api", issue = "32838")]
#[rustc_const_unstable(feature = "const_heap", issue = "79597")]
unsafe impl const Allocator for Global {
const unsafe impl Allocator for Global {
#[inline]
#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> {
Expand Down
Loading
Loading