Skip to content
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

Rust 1.72.0 #49

Draft
wants to merge 290 commits into
base: rust-1.71.1
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
290 commits
Select commit Hold shift + click to select a range
aff348a
Update runtime guarantee for `select_nth_unstable`
Sp00ph May 26, 2023
7cd2f42
Update current impl comment for `select_nth_unstable_by_key`
Sp00ph May 28, 2023
dbbf172
Rollup merge of #112045 - Sp00ph:update_current_impl, r=Amanieu
matthiaskrgr May 29, 2023
7f2aeea
Make `TrustedStep` require `Copy`
scottmcm May 29, 2023
7cee309
fix comment on Allocator trait
reez12g May 30, 2023
ffe677f
Remove array_zip
workingjubilee May 30, 2023
0f4296a
Rollup merge of #107916 - reez12g:issue-107040, r=Amanieu
Noratrieb May 30, 2023
0b2cfa5
Rollup merge of #111543 - Urgau:uplift_invalid_utf8_in_unchecked, r=W…
Noratrieb May 30, 2023
725eb66
Swap out CURRENT_RUSTC_VERSION to 1.71.0
Mark-Simulacrum May 29, 2023
91157c5
Bump to latest beta compiler
Mark-Simulacrum May 30, 2023
beac94e
Auto merge of #109698 - epage:wtf, r=Amanieu
bors May 30, 2023
6f8cb2e
Explicit set `workspace.resolver = "1"`
weihanglo May 30, 2023
ae17488
Auto merge of #112120 - weihanglo:update-cargo, r=ehuss
bors May 31, 2023
a9e5f5c
Rollup merge of #112096 - workingjubilee:array-unzip, r=scottmcm
matthiaskrgr May 31, 2023
0fad623
Auto merge of #112127 - matthiaskrgr:rollup-77pt893, r=matthiaskrgr
bors May 31, 2023
165d750
Rollup merge of #112103 - Mark-Simulacrum:bootstrap-update, r=clubby789
matthiaskrgr May 31, 2023
601399c
Add diagnostic items for `ptr::cast_mut` and `ptr::from_ref`
Urgau May 17, 2023
405badc
Auto merge of #111076 - notriddle:notriddle/silence-private-dep-trait…
bors May 31, 2023
39aa19e
remove reference to Into in ? operator core/std docs, fix 111655
anna-singleton May 31, 2023
0fcf546
use c literals in library
klensy May 16, 2023
e101f9e
Fix bug in utf16_to_utf8 for zero length strings
ShaneEverittM Jun 1, 2023
31278ff
Auto merge of #111567 - Urgau:uplift_cast_ref_to_mut, r=b-naber
bors Jun 1, 2023
6ed7117
Rollup merge of #112141 - anna-singleton:issue-111655-fix, r=thomcc
Dylan-DPC Jun 1, 2023
ac00fcc
doc: improve explanation
tshepang Jun 1, 2023
de0d0cc
Require that const param tys implement ConstParamTy
BoxyUwU May 16, 2023
047d3ed
Impl ConstParamTy for tuples, make PartialStructuralEq a supertrait too
compiler-errors May 17, 2023
e344e84
Rollup merge of #112154 - ShaneEverittM:zero-len-utf16, r=thomcc
matthiaskrgr Jun 1, 2023
9b3bf41
Stabilize 'const_cstr_methods'
tgross35 Feb 3, 2023
d194926
Rollup merge of #111670 - compiler-errors:const-param-ty, r=BoxyUwU
compiler-errors Jun 2, 2023
cad170c
fix ptr cast
klensy Jun 2, 2023
492faec
Fix typo in `std::cell` module docs
K0UR05H Jun 2, 2023
04efffd
Retry to fork/spawn with exponential backoff
flba-eb Mar 18, 2023
a97184c
Only determine clock res once; give up before sleeping more than 1 se…
flba-eb Jun 2, 2023
193c6d0
Rollup merge of #111647 - klensy:cstr, r=oli-obk
matthiaskrgr Jun 2, 2023
98c267e
Rollup merge of #112206 - k0ur0x:typo, r=Nilstrieb
matthiaskrgr Jun 2, 2023
5877b03
Auto merge of #109432 - flba-eb:108594_forkspawn_exponential_backoff,…
bors Jun 3, 2023
51f02cb
Rollup merge of #111702 - cgwalters:option-map-or-else-with-result, r…
matthiaskrgr Jun 3, 2023
03a5dbb
Rollup merge of #109093 - Dante-Broggi:patch-2, r=joshtriplett
matthiaskrgr Jun 4, 2023
dc45200
Rollup merge of #112172 - tshepang:patch-1, r=Mark-Simulacrum
matthiaskrgr Jun 4, 2023
ec43acc
Remove ExtendWith and ExtendElement
GrishaVar Jun 4, 2023
62329cf
Use 128 bits for TypeId hash
thomcc Apr 5, 2023
7d30c62
Avoid unwind across `extern "C"` in `thread_local::fast_local.rs`
thomcc Jun 4, 2023
9d75c1b
Rollup merge of #112263 - GrishaVar:remove-extend-element, r=scottmcm
GuillaumeGomez Jun 5, 2023
c88e92d
Std support improvement for ps vita target
nikarh Jun 4, 2023
ab08bf5
Simplified bool to int conversion
nikarh Jun 5, 2023
4b56644
std: available_parallelism using native netbsd api first
devnexen Jun 2, 2023
58d8be6
Bumped libc version
nikarh Jun 6, 2023
b8eaa20
Fix documentation build on FreeBSD
dankm Jun 6, 2023
2ec23ee
Auto merge of #111819 - nikarh:vita-improved, r=Amanieu
bors Jun 7, 2023
da6ff89
Auto merge of #96875 - SabrinaJewson:noop-waker, r=m-ou-se
bors Jun 7, 2023
e5a8352
Safe Transmute: Disable coinduction support
bryangarza Jun 7, 2023
3099f89
Fix typo
thomcc Jun 8, 2023
2423e10
Auto merge of #112292 - thomcc:tls-ohno, r=m-ou-se
bors Jun 8, 2023
28a73a6
Allow undropped_manually_drops for some tests
Urgau May 13, 2023
5a64f27
Rollup merge of #109953 - thomcc:thomcc/typeid128, r=WaffleLapkin
matthiaskrgr Jun 8, 2023
578cfd9
Fix intra-doc links from pointer appearing in windows HANDLE type alias
GuillaumeGomez Jun 8, 2023
c363dfa
Merge branch 'master' into binary-heap-ta
yanchith Jun 9, 2023
c94ce58
Reallocatorize after merge
yanchith Jun 9, 2023
7894f54
Add allocator function
yanchith Jun 9, 2023
f656585
Pass tidy again
yanchith Jun 9, 2023
e602fee
Don't explicitly name Global
yanchith Jun 9, 2023
46e7e94
Auto merge of #111530 - Urgau:uplift_undropped_manually_drops, r=comp…
bors Jun 9, 2023
a786491
Auto merge of #112465 - GuillaumeGomez:rollup-gyh5buc, r=GuillaumeGomez
bors Jun 9, 2023
6c13e3b
Add diagnostic items for `f32::NAN` and `f64::NAN`
Urgau May 20, 2023
3bbb09d
Lazy load ntdll functions on UWP
bdbai Jun 10, 2023
c107466
Keep uwp specific code in sync with windows-sys
bdbai Jun 10, 2023
1b1530d
Auto merge of #111818 - Urgau:uplift_cmp_nan, r=cjgillot
bors Jun 10, 2023
0d8be2e
abs_sub: fix typo 0[-:][+.]0
icecream17 Jun 10, 2023
a022a63
implement `Sync` for `mpsc::Sender`
ibraheemdev May 2, 2023
7dca083
Rollup merge of #112484 - bdbai:fix/uwpntdll, r=ChrisDenton
matthiaskrgr Jun 10, 2023
31e002f
Rollup merge of #112497 - icecream17:patch-1, r=Mark-Simulacrum
matthiaskrgr Jun 10, 2023
baeec37
reorder attributes to make miri-test-libstd work again
RalfJung Jun 11, 2023
be9a1d2
Remove explicit lifetimes
yanchith Jun 11, 2023
f1a4535
Impl allocator function for iterators
yanchith Jun 11, 2023
07bb050
make sure the standard library compiles properly with synthetic targets
pietroalbini Jun 8, 2023
b1919dd
Implement `TryFrom<&OsStr>` for `&str`
aticu Jun 17, 2022
e029489
Revert "Fix intra-doc links from pointer appearing in windows HANDLE …
GuillaumeGomez Jun 12, 2023
9a9e598
add benchmark
the8472 Jan 2, 2023
e7ec667
optimize slice::Iter::fold
the8472 Jan 1, 2023
8967cb7
Add windows_sys typedef for Win ARM32
bdbai Jun 11, 2023
4d7363d
Add comment for arm_shim in generate-windows-sys
bdbai Jun 12, 2023
dbe2bc3
Fix typo in mod.rs
eltociear Jun 12, 2023
1047ece
Auto merge of #99339 - yanchith:binary-heap-ta, r=Amanieu
bors Jun 13, 2023
1dde18c
Rollup merge of #112558 - eltociear:patch-21, r=thomcc
matthiaskrgr Jun 13, 2023
abd6bb5
Auto merge of #112575 - matthiaskrgr:rollup-7a8d7tg, r=matthiaskrgr
bors Jun 13, 2023
65fefd8
Fix building the documentation on FreeBSD.
Jun 13, 2023
183e08a
ignore core, alloc and test tests that require unwinding on panic=abort
pietroalbini Jun 5, 2023
74128bd
Auto merge of #112314 - ferrocene:pa-core-alloc-abort, r=bjorn3
bors Jun 13, 2023
30aed8a
fix: get the l4re target working again
hargoniX Jun 13, 2023
f24820a
Alter `Display` for `Ipv6Addr` for IPv4-compatible addresses
clarfonthey Jun 14, 2023
b288334
Bump stdarch
scottmcm Jun 14, 2023
566a10c
remove drain-on-drop behavior from vec::DrainFilter and add #[must_use]
the8472 Nov 15, 2022
002ee8e
remove drain-on-drop behavior from BTree{Set,Map}::DrainFilter and ad…
the8472 Nov 15, 2022
af4efeb
remove drain-on-drop behavior from linked_list::DrainFilter and add #…
the8472 Nov 15, 2022
5a0e770
s/drain_filter/extract_if/ for Vec, Btree{Map,Set} and LinkedList
the8472 Apr 8, 2023
6acd7ee
update hashbrown and replace Hash{Set,Map}::DrainFilter with ExtractIf
the8472 Jun 8, 2023
3db55ed
Auto merge of #110662 - bryangarza:safe-transmute-reference-types, r=…
bors Jun 14, 2023
f21bc1e
Auto merge of #112418 - ferrocene:pa-mir-opt-panic, r=ozkanonur,saethlin
bors Jun 14, 2023
ddea1a6
Fix typo
AntoniosBarotsis Jun 14, 2023
4cf3b36
Mention `env!` in `option_env!`'s docs
GrigorenkoPV Jun 14, 2023
7b29910
Rollup merge of #98202 - aticu:impl_tryfrom_osstr_for_str, r=Amanieu
matthiaskrgr Jun 14, 2023
55deca8
Rollup merge of #107619 - stepancheg:hash-set-insert, r=Amanieu
matthiaskrgr Jun 14, 2023
0221337
Rollup merge of #109814 - est31:stabilize_string_leak, r=Amanieu
matthiaskrgr Jun 14, 2023
e705af9
Rollup merge of #111974 - Sp00ph:update_guarantees, r=Amanieu
matthiaskrgr Jun 14, 2023
56d02ae
Auto merge of #112624 - matthiaskrgr:rollup-db6ta1b, r=matthiaskrgr
bors Jun 14, 2023
700c908
Fix `Ipv6Addr: Display` tests
clarfonthey Jun 14, 2023
749900b
Fix `SocketAddrV6: Display` tests
clarfonthey Jun 14, 2023
599ca56
Auto merge of #112625 - matthiaskrgr:rollup-jcobj3g, r=matthiaskrgr
bors Jun 14, 2023
ebee2ff
use indexed loop instead of ptr bumping
the8472 Jun 12, 2023
83e727b
Auto merge of #104455 - the8472:dont-drain-on-drop, r=Amanieu
bors Jun 15, 2023
9be2174
Correct types in method descriptions of `NonZero*` types
zica87 Jun 15, 2023
150347d
Auto merge of #106343 - the8472:slice-iter-fold, r=scottmcm
bors Jun 15, 2023
8ef507a
Extend `unused_must_use` to cover block exprs
jieyouxu Jun 11, 2023
f6accf8
Rollup merge of #112621 - GrigorenkoPV:env, r=jyn514
matthiaskrgr Jun 15, 2023
3e5d326
privacy: Do not mark items reachable farther than their nominal visib…
petrochenkov Jun 15, 2023
e3673d6
remove unused field
the8472 Jun 15, 2023
98d72cf
Rollup merge of #112529 - jieyouxu:block-expr-unused-must-use, r=oli-obk
GuillaumeGomez Jun 15, 2023
c43c3dd
std: only depend on dlmalloc for wasm*-unknown
cuviper Jun 15, 2023
f643c2d
Rollup merge of #112535 - RalfJung:miri-test-libstd, r=cuviper
Dylan-DPC Jun 16, 2023
c101b4d
Rollup merge of #112579 - MikaelUrankar:freebsd_docs, r=cuviper
Dylan-DPC Jun 16, 2023
d08ab88
slice::from_raw_parts: mention no-wrap-around condition
RalfJung Jun 16, 2023
dc86e79
Launch a non-unwinding panic for misaligned pointer deref
saethlin Jun 13, 2023
ce3edd7
`#[lang_item]` for `core::ptr::Unique`
Vanille-N Jun 15, 2023
c8d7adf
Rollup merge of #111074 - WaffleLapkin:🌟unsizes_your_buf_reader🌟, r=A…
compiler-errors Jun 16, 2023
a35b190
Rollup merge of #112226 - devnexen:netbsd_affinity, r=cuviper
compiler-errors Jun 16, 2023
bc50a9b
Rollup merge of #112662 - Vanille-N:symbol_unique, r=RalfJung
compiler-errors Jun 16, 2023
26fd461
remove box_free and replace with drop impl
beepster4096 Aug 1, 2022
5030f57
[libs] Simplify `unchecked_{shl,shr}`
scottmcm Jun 16, 2023
1e20083
Apply changes to fix python linting errors
tgross35 Jun 10, 2023
369a002
Extend io::copy buffer reuse to BufReader too
the8472 Jun 5, 2023
b1f6e39
Rollup merge of #112352 - dankm:fbsd_doc_fix, r=thomcc
matthiaskrgr Jun 17, 2023
972a8f5
Rollup merge of #112644 - zica87:nonZeroTypes, r=Mark-Simulacrum
matthiaskrgr Jun 17, 2023
76d1908
Auto merge of #112739 - matthiaskrgr:rollup-8cfggml, r=matthiaskrgr
bors Jun 17, 2023
1286862
Auto merge of #100036 - DrMeepster:box_free_free_box, r=oli-obk
bors Jun 17, 2023
c0cfa28
Rollup merge of #112610 - scottmcm:update-stdarch, r=Amanieu
matthiaskrgr Jun 17, 2023
5c87bf0
Fix windows `Socket::connect_timeout` overflow
eval-exec Jun 9, 2023
dba1056
Add unit test for `TcpStream::connect_timeout`
eval-exec Jun 11, 2023
9ab83b2
Auto merge of #112746 - matthiaskrgr:rollup-se59bfd, r=matthiaskrgr
bors Jun 17, 2023
3a7c906
Auto merge of #112595 - hargoniX:l4re_fix, r=Mark-Simulacrum
bors Jun 17, 2023
6b89333
Auto merge of #112599 - saethlin:cleaner-panics, r=thomcc
bors Jun 18, 2023
f664f6c
alloc: Implement PartialOrd for `Vec`s over different allocators
gootorov Jun 14, 2023
69bea2e
alloc: Allow comparing `Box`s over different allocators
gootorov Jun 14, 2023
46e290e
Rollup merge of #107200 - mina86:c, r=Amanieu
matthiaskrgr Jun 18, 2023
c487615
Rollup merge of #112685 - cuviper:wasm-dlmalloc, r=Mark-Simulacrum
matthiaskrgr Jun 18, 2023
ec467ca
Use BorrowFlag instead of explicit isize
Danvil Jun 18, 2023
38af2f5
Add unit test to connect to an unreachable address
eval-exec Jun 18, 2023
16f0980
Same for BorrowRef
Danvil Jun 18, 2023
e6ebddb
[doc] poll_fn: explain how to pin captured state safely
danielhenrymantilla Apr 5, 2023
61712f9
Bump compiler_builtins
Patryk27 Jun 18, 2023
c40d80f
Auto merge of #112724 - scottmcm:simpler-unchecked-shifts, r=Mark-Sim…
bors Jun 19, 2023
0bc2753
Rollup merge of #109970 - danielhenrymantilla:add-poll-fn-pin-clarifi…
matthiaskrgr Jun 19, 2023
297d040
Rollup merge of #112757 - Danvil:patch-1, r=Mark-Simulacrum
matthiaskrgr Jun 19, 2023
a623256
Introduce `alloc::::UniqueRc`
eholk May 19, 2023
a71bf45
Auto merge of #111849 - eholk:uniquearc, r=Mark-Simulacrum
bors Jun 20, 2023
2d73c4b
Rollup merge of #112499 - tgross35:py-ruff-fixes, r=Mark-Simulacrum
compiler-errors Jun 20, 2023
8ec2e41
Rollup merge of #112606 - clarfonthey:ip-display, r=thomcc
compiler-errors Jun 20, 2023
8a78f58
Auto merge of #112817 - compiler-errors:rollup-0eqomra, r=compiler-er…
bors Jun 20, 2023
feeca35
Add rustc_do_not_implement_via_object
compiler-errors Jun 2, 2023
4769028
Merge attrs, better validation
compiler-errors Jun 16, 2023
21e34dc
Auto merge of #112320 - compiler-errors:do-not-impl-via-obj, r=lcnr
bors Jun 20, 2023
70016cb
Ignore `connect_timeout` unit test on SGX platform
eval-exec Jun 20, 2023
cec7f65
Remove useless unit tests
eval-exec Jun 20, 2023
b167953
Rollup merge of #112464 - eval-exec:exec/fix-connect_timeout-overflow…
GuillaumeGomez Jun 20, 2023
bae491b
Remove `LineColumn`, `Span::start`, `Span::end`
jhpratt May 14, 2023
42e1e7b
`Span::{before, after}` → `Span::{start, end}`
jhpratt May 14, 2023
8b76a5b
Add `Span::{line, column}`
jhpratt May 14, 2023
eb498ef
Merge proc_macro_span_shrink and proc_macro_span
jhpratt Jun 6, 2023
d503552
relaxed orderings in `thread::park` example
ibraheemdev Jun 21, 2023
cee2eca
Fix typo in `eprintln` docs
clubby789 Jun 21, 2023
adfcb61
Auto merge of #106450 - albertlarsan68:fix-arc-ptr-eq, r=Amanieu
bors Jun 21, 2023
dcef97c
Rollup merge of #112632 - gootorov:vec_alloc_partialeq, r=dtolnay
Noratrieb Jun 21, 2023
1e50543
Auto merge of #112877 - Nilstrieb:rollup-5g5hegl, r=Nilstrieb
bors Jun 21, 2023
7258c89
Warn on unused offset_of!() result
ChayimFriedman2 Jun 8, 2023
c916185
"Memory Orderings" -> "Memory Ordering"
m-ou-se Jun 21, 2023
6cde7df
Rollup merge of #99587 - ibraheemdev:park-orderings, r=m-ou-se
GuillaumeGomez Jun 21, 2023
24a54ba
Rollup merge of #112863 - clubby789:stderr-typo, r=albertlarsan68
GuillaumeGomez Jun 21, 2023
8ccfe39
Auto merge of #111684 - ChayimFriedman2:unused-offset-of, r=WaffleLapkin
bors Jun 21, 2023
815e9b4
wip: Support Apple tvOS in libstd
thomcc Oct 12, 2022
cbe79a4
Finish up preliminary tvos support in libstd
thomcc Mar 15, 2023
fdfaa94
Avoid fork/exec spawning on tvOS/watchOS, as those functions are mark…
thomcc Jun 4, 2023
77d5502
Update tvOS support elsewhere in the stdlib
thomcc Jun 4, 2023
2f15b34
Actually save all the files
thomcc Jun 4, 2023
535e157
Specialize StepBy<Range<{integer}>>
the8472 May 22, 2023
3ee1a28
add inline annotation to concrete impls
the8472 Jun 22, 2023
481300f
DirEntry::file_name: improve explanation
tshepang Jun 23, 2023
69970ef
Expose `compiler-builtins-weak-intrinsics` feature for `-Zbuild-std`
Amanieu Jun 23, 2023
cbdbd8d
Rollup merge of #112704 - RalfJung:dont-wrap-slices, r=ChrisDenton
matthiaskrgr Jun 23, 2023
8526c21
Rollup merge of #111087 - ibraheemdev:patch-15, r=dtolnay
compiler-errors Jun 24, 2023
8a825b6
Rollup merge of #112763 - Patryk27:bump-compiler-builtins, r=Amanieu
compiler-errors Jun 24, 2023
92c2097
Move arm32 shim to c.rs
ChrisDenton Jun 24, 2023
624560d
Remove unnecessary `path` attribute
ChrisDenton Jun 24, 2023
9b3b9ee
Rollup merge of #112950 - tshepang:patch-4, r=Mark-Simulacrum
matthiaskrgr Jun 25, 2023
656bdf8
Rollup merge of #112956 - Amanieu:weak-intrinsics, r=Mark-Simulacrum
matthiaskrgr Jun 25, 2023
a976ed6
Rollup merge of #113009 - ChrisDenton:remove-path, r=workingjubilee
matthiaskrgr Jun 25, 2023
20ae416
Always inline primitive data types.
Jerrody Jun 25, 2023
c4c6e13
Auto merge of #113001 - ChrisDenton:win-arm32-shim, r=thomcc
bors Jun 25, 2023
36278d1
doccomments for StepBy specializations
the8472 Jun 22, 2023
ee0d7ad
StepBy<Range<{int <= usize}>> can be TrustedLen
the8472 Jun 25, 2023
c053ee3
Mark the StepBy specialization as unsafe
the8472 Jun 25, 2023
8367761
Auto merge of #111850 - the8472:external-step-by, r=scottmcm
bors Jun 26, 2023
1b42084
Auto merge of #113024 - Jerrody:master, r=thomcc
bors Jun 26, 2023
1c997f4
Rollup merge of #112677 - the8472:remove-unusued-field, r=JohnTitor
TaKO8Ki Jun 26, 2023
6419fe0
str docs: remove "Basic usage" text where not useful
tshepang Jun 26, 2023
70c7202
Make `rustc_on_unimplemented` std-agnostic
Rageking8 Jun 26, 2023
e044356
Rollup merge of #112628 - gootorov:box_alloc_partialeq, r=joshtriplett
matthiaskrgr Jun 27, 2023
6d51c2c
std: edit [T]::swap docs
marcospb19 Jun 26, 2023
400f736
Rollup merge of #111571 - jhpratt:proc-macro-span, r=m-ou-se
Dylan-DPC Jun 28, 2023
a455c94
Rollup merge of #112670 - petrochenkov:typriv, r=eholk
matthiaskrgr Jun 29, 2023
2bfce11
Rollup merge of #113054 - Rageking8:make-`rustc_on_unimplemented`-std…
matthiaskrgr Jun 29, 2023
6cb2299
Fix document examples of Vec::from_raw_parts and Vec::from_raw_parts_in
lizhanhui Jun 29, 2023
7ebb6df
make HashMap::or_insert_with example more simple
tshepang Jun 29, 2023
67062ab
Rollup merge of #107624 - tgross35:const-cstr-methods, r=dtolnay
matthiaskrgr Jun 30, 2023
367a7dc
Mark wrapped intrinsics as inline(always)
lu-zero Jun 30, 2023
952a074
std docs: factorize literal in Barrier example
guilliamxavier Jun 30, 2023
c94a69f
Rollup merge of #113072 - tshepang:patch-1, r=cuviper
matthiaskrgr Jun 30, 2023
1fe8d3c
Rollup merge of #113153 - tshepang:patch-6, r=cuviper
matthiaskrgr Jun 30, 2023
9b1b9fa
Return `Ok` on kill if process has already exited
ChrisDenton Jun 13, 2023
27ad775
Auto merge of #113194 - lu-zero:intrinsics-inline, r=thomcc
bors Jul 1, 2023
cebb579
Auto merge of #111992 - ferrocene:pa-panic-abort-tests-bench, r=m-ou-se
bors Jul 1, 2023
f0b35a5
fixed documentation of from<CString> for Rc<CStr>: Arc -> Rc
nurmukhametdaniyar Jul 2, 2023
029d226
Rollup merge of #113147 - lizhanhui:fix_vec_from_raw_parts_doc_exampl…
matthiaskrgr Jul 2, 2023
a9c633a
Rollup merge of #113202 - guilliamxavier:patch-1, r=workingjubilee
matthiaskrgr Jul 2, 2023
e944018
downgrade compiler_builtins
Noratrieb Jul 2, 2023
5af8651
Rollup merge of #113253 - nurmukhametdaniyar:rc_from_cstr_doc_fix, r=…
matthiaskrgr Jul 2, 2023
cdad96d
Update std to backtrace 0.3.68
workingjubilee Jun 29, 2023
c95ee77
Auto merge of #113271 - matthiaskrgr:rollup-2ik4vaj, r=matthiaskrgr
bors Jul 3, 2023
329d337
enable test_join test in Miri
RalfJung Jul 3, 2023
e1c8513
Test Child::kill behaviour on exited process
ChrisDenton Jul 1, 2023
4db987c
Revert "alloc: Allow comparing `Box`s over different allocators"
tgross35 Jul 4, 2023
a9d307a
Workaround for old android not having echo
ChrisDenton Jul 5, 2023
c579240
Auto merge of #112594 - ChrisDenton:process=-kill, r=Amanieu
bors Jul 5, 2023
f96ac99
Revert "fix ptr cast"
fmease Jul 4, 2023
776d882
Revert "use c literals in library"
fmease Jul 4, 2023
5a9fb37
Add support for NetBSD/riscv64 aka. riscv64gc-unknown-netbsd.
he32 Jul 5, 2023
4a1a2b1
Update compiler-builtins to 0.1.95
jyn514 Jul 5, 2023
20e02a8
Rollup merge of #113356 - he32:netbsd-riscv64, r=oli-obk
compiler-errors Jul 5, 2023
19faeaa
Auto merge of #113287 - RalfJung:miri-test-libstd, r=JohnTitor
bors Jul 5, 2023
b8dab3e
Rollup merge of #113334 - fmease:revert-lexing-c-str-lits, r=compiler…
fee1-dead Jul 6, 2023
c464184
Auto merge of #113269 - jyn514:update-compiler-builtins, r=Amanieu
bors Jul 6, 2023
8f6f9bd
Rollup merge of #112008 - intruder-kat:master, r=Nilstrieb
compiler-errors Jul 7, 2023
7871709
Rollup merge of #113318 - tgross35:113283-allocator-trait-eq, r=m-ou-se
compiler-errors Jul 7, 2023
be91fd8
Sync portable-simd to 2023 July 07
workingjubilee Jul 7, 2023
2ff2960
Rollup merge of #113064 - marcospb19:add-note-in-vec-swap-docs, r=Mar…
matthiaskrgr Jul 8, 2023
d9fe2ab
Replace version placeholder to 1.72
Mark-Simulacrum Jul 10, 2023
070e8ca
avoid tls access while iterating through mpsc thread entries
ibraheemdev Jul 19, 2023
f761850
Upgrade std to gimli 0.28.0
cuviper Aug 14, 2023
22fc544
Partially revert #107200
joshtriplett Aug 16, 2023
bf62129
Merge commit '22fc544a713c1182881ce9d487a31ca76886315a' into rust-1.72.0
thomcc Aug 24, 2023
cea2b39
bump 1.71.1 to 1.72.0
thomcc Aug 24, 2023
2327ecc
no public deps
thomcc Aug 24, 2023
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: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ on:
- rust-1.70.0
- rust-1.71.0
- rust-1.71.1
- rust-1.72.0
pull_request:
branches:
- 1.67.1
- rust-1.69.0
- rust-1.70.0
- rust-1.71.0
- rust-1.71.1
- rust-1.72.0

jobs:
test_x86_84:
Expand Down Expand Up @@ -116,7 +118,7 @@ jobs:
export RUSTUP_HOME="$HOME/.rustup"
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source "$HOME/.cargo/env"
rustup toolchain install 1.71.1
rustup toolchain install 1.72.0
cargo --version

- name: Print env
Expand Down
35 changes: 21 additions & 14 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions library/alloc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ compiler-builtins-mem = ['compiler_builtins/mem']
compiler-builtins-c = ["compiler_builtins/c"]
compiler-builtins-no-asm = ["compiler_builtins/no-asm"]
compiler-builtins-mangled-names = ["compiler_builtins/mangled-names"]
compiler-builtins-weak-intrinsics = ["compiler_builtins/weak-intrinsics"]
12 changes: 6 additions & 6 deletions library/alloc/benches/btree/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -385,15 +385,15 @@ pub fn clone_slim_100_and_clear(b: &mut Bencher) {
#[bench]
pub fn clone_slim_100_and_drain_all(b: &mut Bencher) {
let src = slim_map(100);
b.iter(|| src.clone().drain_filter(|_, _| true).count())
b.iter(|| src.clone().extract_if(|_, _| true).count())
}

#[bench]
pub fn clone_slim_100_and_drain_half(b: &mut Bencher) {
let src = slim_map(100);
b.iter(|| {
let mut map = src.clone();
assert_eq!(map.drain_filter(|i, _| i % 2 == 0).count(), 100 / 2);
assert_eq!(map.extract_if(|i, _| i % 2 == 0).count(), 100 / 2);
assert_eq!(map.len(), 100 / 2);
})
}
Expand Down Expand Up @@ -456,15 +456,15 @@ pub fn clone_slim_10k_and_clear(b: &mut Bencher) {
#[bench]
pub fn clone_slim_10k_and_drain_all(b: &mut Bencher) {
let src = slim_map(10_000);
b.iter(|| src.clone().drain_filter(|_, _| true).count())
b.iter(|| src.clone().extract_if(|_, _| true).count())
}

#[bench]
pub fn clone_slim_10k_and_drain_half(b: &mut Bencher) {
let src = slim_map(10_000);
b.iter(|| {
let mut map = src.clone();
assert_eq!(map.drain_filter(|i, _| i % 2 == 0).count(), 10_000 / 2);
assert_eq!(map.extract_if(|i, _| i % 2 == 0).count(), 10_000 / 2);
assert_eq!(map.len(), 10_000 / 2);
})
}
Expand Down Expand Up @@ -527,15 +527,15 @@ pub fn clone_fat_val_100_and_clear(b: &mut Bencher) {
#[bench]
pub fn clone_fat_val_100_and_drain_all(b: &mut Bencher) {
let src = fat_val_map(100);
b.iter(|| src.clone().drain_filter(|_, _| true).count())
b.iter(|| src.clone().extract_if(|_, _| true).count())
}

#[bench]
pub fn clone_fat_val_100_and_drain_half(b: &mut Bencher) {
let src = fat_val_map(100);
b.iter(|| {
let mut map = src.clone();
assert_eq!(map.drain_filter(|i, _| i % 2 == 0).count(), 100 / 2);
assert_eq!(map.extract_if(|i, _| i % 2 == 0).count(), 100 / 2);
assert_eq!(map.len(), 100 / 2);
})
}
Expand Down
8 changes: 4 additions & 4 deletions library/alloc/benches/btree/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@ pub fn clone_100_and_clear(b: &mut Bencher) {
#[bench]
pub fn clone_100_and_drain_all(b: &mut Bencher) {
let src = slim_set(100);
b.iter(|| src.clone().drain_filter(|_| true).count())
b.iter(|| src.clone().extract_if(|_| true).count())
}

#[bench]
pub fn clone_100_and_drain_half(b: &mut Bencher) {
let src = slim_set(100);
b.iter(|| {
let mut set = src.clone();
assert_eq!(set.drain_filter(|i| i % 2 == 0).count(), 100 / 2);
assert_eq!(set.extract_if(|i| i % 2 == 0).count(), 100 / 2);
assert_eq!(set.len(), 100 / 2);
})
}
Expand Down Expand Up @@ -140,15 +140,15 @@ pub fn clone_10k_and_clear(b: &mut Bencher) {
#[bench]
pub fn clone_10k_and_drain_all(b: &mut Bencher) {
let src = slim_set(10_000);
b.iter(|| src.clone().drain_filter(|_| true).count())
b.iter(|| src.clone().extract_if(|_| true).count())
}

#[bench]
pub fn clone_10k_and_drain_half(b: &mut Bencher) {
let src = slim_set(10_000);
b.iter(|| {
let mut set = src.clone();
assert_eq!(set.drain_filter(|i| i % 2 == 0).count(), 10_000 / 2);
assert_eq!(set.extract_if(|i| i % 2 == 0).count(), 10_000 / 2);
assert_eq!(set.len(), 10_000 / 2);
})
}
Expand Down
2 changes: 1 addition & 1 deletion library/alloc/benches/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Disabling on android for the time being
// See https://github.com/rust-lang/rust/issues/73535#event-3477699747
#![cfg(not(target_os = "android"))]
#![feature(btree_drain_filter)]
#![feature(btree_extract_if)]
#![feature(iter_next_chunk)]
#![feature(repr_simd)]
#![feature(slice_partition_dedup)]
Expand Down
9 changes: 5 additions & 4 deletions library/alloc/src/alloc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@

#[cfg(not(test))]
use core::intrinsics;
#[cfg(all(bootstrap, not(test)))]
use core::intrinsics::{min_align_of_val, size_of_val};

#[cfg(all(bootstrap, not(test)))]
use core::ptr::Unique;
#[cfg(not(test))]
use core::ptr::{self, NonNull};
Expand Down Expand Up @@ -38,7 +40,6 @@ extern "Rust" {
#[rustc_nounwind]
fn __rust_alloc_zeroed(size: usize, align: usize) -> *mut u8;

#[cfg(not(bootstrap))]
static __rust_no_alloc_shim_is_unstable: u8;
}

Expand Down Expand Up @@ -96,7 +97,6 @@ pub unsafe fn alloc(layout: Layout) -> *mut u8 {
unsafe {
// Make sure we don't accidentally allow omitting the allocator shim in
// stable code until it is actually stabilized.
#[cfg(not(bootstrap))]
core::ptr::read_volatile(&__rust_no_alloc_shim_is_unstable);

__rust_alloc(layout.size(), layout.align())
Expand Down Expand Up @@ -337,14 +337,15 @@ unsafe fn exchange_malloc(size: usize, align: usize) -> *mut u8 {
}
}

#[cfg_attr(not(test), lang = "box_free")]
#[cfg(all(bootstrap, not(test)))]
#[lang = "box_free"]
#[inline]
// This signature has to be the same as `Box`, otherwise an ICE will happen.
// When an additional parameter to `Box` is added (like `A: Allocator`), this has to be added here as
// well.
// For example if `Box` is changed to `struct Box<T: ?Sized, A: Allocator>(Unique<T>, A)`,
// this function has to be changed to `fn box_free<T: ?Sized, A: Allocator>(Unique<T>, A)` as well.
pub(crate) unsafe fn box_free<T: ?Sized, A: Allocator>(ptr: Unique<T>, alloc: A) {
unsafe fn box_free<T: ?Sized, A: Allocator>(ptr: Unique<T>, alloc: A) {
unsafe {
let size = size_of_val(ptr.as_ref());
let align = min_align_of_val(ptr.as_ref());
Expand Down
10 changes: 9 additions & 1 deletion library/alloc/src/boxed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1211,8 +1211,16 @@ impl<T: ?Sized, A: Allocator> Box<T, A> {

#[stable(feature = "rust1", since = "1.0.0")]
unsafe impl<#[may_dangle] T: ?Sized, A: Allocator> Drop for Box<T, A> {
#[inline]
fn drop(&mut self) {
// FIXME: Do nothing, drop is currently performed by compiler.
// the T in the Box is dropped by the compiler before the destructor is run

let ptr = self.0;

unsafe {
let layout = Layout::for_value_raw(ptr.as_ptr());
self.1.deallocate(From::from(ptr.cast()), layout)
}
}
}

Expand Down
Loading