Skip to content

Update subtree/library to 2025-02-10 #262

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 481 commits into from
Mar 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
481 commits
Select commit Hold shift + click to select a range
790a0c9
std::fs::DirEntry.metadata(): prefer use of lstat() on Emscripten
kleisauke Dec 9, 2024
0e213f9
Remove qualification of `std::cmp::Ordering` in `Ord` doc
mgsloan Dec 31, 2024
6693134
fix doc for missing Box allocator consistency
DiuDiu777 Jan 2, 2025
9203dbb
Try to write the panic message with a single `write_all` call
Zoxc Mar 15, 2024
0d30927
Bump backtrace to rust-lang/backtrace-rs@4d7906b
workingjubilee Jan 3, 2025
57c71d2
Move some things to `std::sync::poison` and reexport them in `std::sync`
GrigorenkoPV Dec 23, 2024
3ceae4d
path in detail
liigo Jan 2, 2025
f436a08
Switch rtems target to panic unwind
thesummer Nov 23, 2024
6dfef54
core: implement `bool::select_unpredictable`
joboet Dec 6, 2024
90eec01
core: improve comments
joboet Dec 9, 2024
e4c4671
core: use public method instead of instrinsic
joboet Dec 9, 2024
612a517
turn rustc_box into an intrinsic
RalfJung Jan 2, 2025
a58c6b0
sync to actual dep verions of backtrace
klensy Jan 3, 2025
ea9cd6a
Bump backtrace to 0.3.75
workingjubilee Jan 4, 2025
f6c34ae
Fix UWP build
bdbai Jan 3, 2025
f982362
do not in-place-iterate over flatmap/flatten
the8472 Jan 4, 2025
6a1200d
add regression test for unsound Flatten/FlatMap specialization
the8472 Jan 4, 2025
54905e2
library: fix adler{-> 2}.debug
matthiaskrgr Jan 5, 2025
56e77ee
Clarified the documentation on core::iter::from_fn and core::iter::su…
ranger-ross Jan 5, 2025
557bccd
Mark `slice::reverse` unstably const
okaneco Jan 4, 2025
4fc4af6
Add doc aliases for `libm` and IEEE names
tgross35 Jan 5, 2025
c90277d
chore: remove redundant words in comment
crystalstall Jan 6, 2025
54bfcec
Add support for wasm exception handling to Emscripten target
hoodmane Oct 17, 2024
249da44
[generic_assert] Constify methods used by the formatting system
c410-f3r Jan 5, 2025
b9e9246
Avoid naming variables `str`
joshtriplett Jan 7, 2025
f613804
Impl String::into_chars
tisonkun Dec 22, 2024
c4684f3
Implement Condvar::wait_timeout for targets without threads
surban Dec 18, 2024
510eb6d
More compelling env_clear() examples
kornelski Jan 6, 2025
f8e4c6e
add missing provenance APIs on NonNull
RalfJung Jan 8, 2025
b40099f
Remove some unnecessary `.into()` calls
estebank Jan 8, 2025
ede0450
update version placeholders
pietroalbini Jan 6, 2025
c64ee3d
update cfg(bootstrap)
pietroalbini Jan 8, 2025
544080a
fmt
pietroalbini Jan 8, 2025
04ee9b6
Improve prose around `as_slice` example of IterMut
hkBst Dec 21, 2024
e1555d0
Fix ptr::from_ref documentation example comment
madsmtm Dec 29, 2024
c55d5c5
Used pthread name functions returning result for FreeBSD and DragonFly
YohDeadfall Nov 4, 2024
4f73954
Rename the internal simpler `quote` macro to `minimal_quote`
SpriteOvO Jan 1, 2025
a163176
Append `TokenTree` with `ToTokens` in `proc_macro::quote!`
SpriteOvO Jan 5, 2025
d9484d7
Fix `proc_macro::quote!` for raw ident
SpriteOvO Jan 9, 2025
6c42898
alloc: remove unsound `IsZero` for raw pointers
joboet Jan 10, 2025
f8ca79c
Update a bunch of library types for MCP807
scottmcm Jan 8, 2025
db6cb45
Improve the safety documentation on new_unchecked
scottmcm Jan 11, 2025
193e271
Initial fs module for uefi
Ayush1325 Jan 10, 2025
4caffa9
Use `NonNull::without_provenance` within the standard library
samueltardieu Jan 10, 2025
2caf93e
update and clarify StructuralPartialEq docs
RalfJung Jan 11, 2025
a81076d
Make UniqueRc invariant for soundness
steffahn Jan 11, 2025
b879449
Add inherent versions of MaybeUninit methods for slices
clarfonthey Aug 18, 2024
d9388a8
Add #[inline] to copy_from_slice
saethlin Jan 11, 2025
0168ec0
Update the explanation for why we use box_new in vec!
saethlin Jan 11, 2025
aa9797a
path: Move is_absolute check to sys::path
Ayush1325 Jan 12, 2025
c7bfb6f
uefi: helpers: Introduce OwnedDevicePath
Ayush1325 Jan 12, 2025
210bfa3
use a single large catch_unwind in lang_start
RalfJung Jan 11, 2025
4bf947f
avoid nesting the user-defined main so deeply on the stack
RalfJung Jan 11, 2025
d1fda63
Add another `Vec::splice` example
cod10129 Jan 11, 2025
9702bad
Update compiler-builtins to 0.1.141
tgross35 Jan 7, 2025
b22fdce
Enforce syntactical stability of const traits in HIR
compiler-errors Jan 12, 2025
38482b7
Convert `struct FromBytesWithNulError` into enum
nyurik Dec 10, 2024
022bec9
Rename `pos` to `position`
nyurik Jan 11, 2025
3b4fb2b
Update compiler-builtins to 0.1.143
tgross35 Jan 15, 2025
00312d1
Update ReadDir::next in std::sys::pal::unix::fs to use `&raw const (*…
zachs18 Dec 23, 2024
71ac27a
Revert "Remove the Arc rt::init allocation for thread info"
joboet Nov 25, 2024
9ab82d7
std: lazily allocate the main thread handle
joboet Nov 25, 2024
1896505
add comments explaining main thread identification
joboet Nov 27, 2024
cbeb3d9
intrinsics: deprecate calling them via the unstable std::intrinsics path
RalfJung Jan 1, 2025
0d2cdfb
fix typo in typenames of pin documentation
DJMrTV Jan 14, 2025
4e50bc7
Less unsafe in `dangling`/`without_provenance`
scottmcm Jan 10, 2025
6893e1a
Adjust syntax
c410-f3r Dec 22, 2024
402c93a
Add missing safety descriptions to Arc's 'from_raw','increment_strong…
DiuDiu777 Dec 19, 2024
634b557
fix typo in library/alloc/src/sync.rs
DiuDiu777 Jan 16, 2025
1d31396
Clarify note in `std::sync::LazyLock` example
Jan 15, 2025
d7e3175
Move `std::pipe::*` into `std::io`
NobodyXu Jan 16, 2025
f7430ec
Fix import of pipe in kernel_copy.rs
NobodyXu Jan 16, 2025
0390462
Stabilize `float_next_up_down`
tgross35 Jan 17, 2025
a2154d7
Add references to the IEEE functions for `float_next_up_down`
tgross35 Jan 17, 2025
916aaf9
Revert "Auto merge of #134330 - scottmcm:no-more-rvalue-len, r=matthe…
lqd Jan 18, 2025
288c7ff
Improve `select_nth_unstable` documentation clarity
mgsloan Dec 31, 2024
34250e6
`then be` -> `be` based on feedback from @ibraheemdev
mgsloan Jan 18, 2025
1565e6a
Update library/core/src/slice/mod.rs
mgsloan Jan 19, 2025
9eb40d8
Update library/core/src/slice/mod.rs
mgsloan Jan 19, 2025
d6f56c4
Update library/core/src/slice/mod.rs
mgsloan Jan 19, 2025
fa5ca28
Update library/core/src/slice/mod.rs
mgsloan Jan 19, 2025
e0fa01d
Update library/core/src/slice/mod.rs
mgsloan Jan 19, 2025
4b4bdfb
Update library/core/src/slice/mod.rs
mgsloan Jan 19, 2025
5468fdd
Update library/core/src/slice/mod.rs
mgsloan Jan 19, 2025
1e10767
Update library/core/src/slice/mod.rs
mgsloan Jan 19, 2025
0b3a29c
Update library/core/src/slice/mod.rs
mgsloan Jan 19, 2025
29189f7
Update library/core/src/slice/mod.rs
mgsloan Jan 19, 2025
63303b9
Rewrap following accepting review suggestions from @ibraheemdev
mgsloan Jan 19, 2025
85f265b
cargo update
invalid-email-address Jan 19, 2025
c48b5c7
further improve panic_immediate_abort by removing rtprintpanic messages
klensy Jan 13, 2025
98d484b
remove unnecessary rustc_allowed_through_unstable_modules
RalfJung Jan 14, 2025
fa1809a
wasi/io: remove dead files
RalfJung Jan 14, 2025
a5431f7
doc: Point to methods on `Command` as alternatives to `set/remove_var`
clubby789 Jan 17, 2025
7edf2fd
Correct counting to four in cell module docs
TomFryersMidsummer Jan 20, 2025
b2e578e
Export likely(), unlikely() and cold_path() in std::hint
x17jiri Dec 1, 2024
b7b793f
1. Removed 'rustc_nounwind' 2. Rewording of comments
x17jiri Jan 20, 2025
83955aa
Recognise new IPv6 documentation range from RFC9637
bardiharborow Jan 19, 2025
d821f45
panic_unwind: add `#![warn(unreachable_pub)]`
Urgau Dec 13, 2024
e17247f
rtstartup: add `#![warn(unreachable_pub)]`
Urgau Dec 13, 2024
74faf66
core: add `#![warn(unreachable_pub)]`
Urgau Dec 13, 2024
7bd117a
core: `#[allow(unreachable_pub)]` on unreachable `pub use`
Urgau Jan 16, 2025
4857e29
Outline panicking code for `LocalKey::with`
wyfo Jan 7, 2025
dbc6a7d
Add an example of using `carrying_mul_add` to write wider multiplication
scottmcm Jan 20, 2025
f765aec
fix OsString::from_encoded_bytes_unchecked description
hkBst Jan 21, 2025
d04f76f
Remove test panic from File::open
ChrisDenton Jan 21, 2025
5b2e442
Library: Finalize dyn compatibility renaming
fmease Jan 22, 2025
ebf9284
Remove erroneous `unsafe` in `BTreeSet::upper_bound_mut`
GrigorenkoPV Jan 22, 2025
f970312
Implement `ByteStr` and `ByteString` types
joshtriplett Jan 2, 2025
e316ba0
Add `#[cfg(not(test))]` to some impls to work around https://github.c…
joshtriplett Jan 4, 2025
691f81d
Support `no_rc`, `no_sync`, and `no_global_oom_handling`
joshtriplett Jan 6, 2025
153baeb
Omit some more `From` impls to avoid inference failures
joshtriplett Jan 12, 2025
eadcc46
Add doc aliases for BStr and BString
joshtriplett Jan 22, 2025
5f3a610
Implement `CloneToUninit` for `ByteStr`
joshtriplett Jan 22, 2025
e568ee4
proc_macro: add `#![warn(unreachable_pub)]`
Urgau Jan 9, 2025
fa1fdf8
test: add `#![warn(unreachable_pub)]`
Urgau Jan 9, 2025
3f18a48
remove pointless allowed_through_unstable_modules on TryFromSliceError
RalfJung Jan 14, 2025
66b82f6
Implement `VecDeque::pop_front_if` & `VecDeque::pop_back_if`
GrigorenkoPV Jan 22, 2025
cea5d8e
Make `Vec::pop_if` a bit more presentable
GrigorenkoPV Jan 23, 2025
42ffe5f
Doc difference between extend and extend_from_slice
hkBst Jan 24, 2025
bccf5cf
Add `File already exists` error doc to `hard_link` function
Harshit933 Jan 12, 2025
5380aef
document order of items in iterator from drain
hkBst Jan 19, 2025
77cb2c1
Fix whitespace
hkBst Jan 19, 2025
97f13b0
Add memory layout documentation to generic NonZero<T>
carlsverre Jan 23, 2025
3220fc7
Update library/core/src/num/nonzero.rs
carlsverre Jan 24, 2025
43eb104
Fix `FormattingOptions` instantiation with `Default`
nyurik Jan 24, 2025
a60276a
Fix set_name in thread mod for NuttX
no1wudi Jan 24, 2025
ffacc2a
Improve and expand documentation of pipes
joshtriplett Jan 25, 2025
d1b11dc
ports last few library files to new intrinsic style
BLANKatGITHUB Jan 24, 2025
71f270a
docs: fix typo in std::pin overview
nvanbenschoten Jan 25, 2025
f7ad46a
fix(libtest): Deprecate '--logfile'
epage Dec 13, 2024
da7e123
Fix testing of the standard library with Emscripten
bjorn3 Jan 23, 2025
f5c42c8
Remove a bunch of emscripten test ignores
bjorn3 Jan 23, 2025
ba00e46
Update a bunch of comments from before wasi support was added
bjorn3 Jan 23, 2025
92b70d2
Add new target for supporting Neutrino QNX 6.1 with `io-socket` netwo…
flba-eb Nov 28, 2024
f5aa09d
Add support for QNX 7.1 with io-sock on x64
flba-eb Nov 29, 2024
6fa7086
add nto80 x86-64 and aarch64 target
AkhilTThomas Dec 6, 2024
a629c50
Add an `unchecked_div` alias to the `Div<NonZero<_>>` impls
scottmcm Jan 24, 2025
e1c898e
Put all coretests in a separate crate
bjorn3 Dec 4, 2024
a9f86b4
Update comment
bjorn3 Jan 23, 2025
a2a0b8f
Actually run the bstr test
bjorn3 Jan 26, 2025
7770689
Move `std::io::pipe` code into its own file
tbu- Jan 17, 2025
846217a
Update `std::io::{pipe, PipeReader, PipeWriter}` docs the new location
tbu- Jan 17, 2025
d282a0d
compiler_fence: fix example
RalfJung Jan 26, 2025
c53cc9d
Clarify WindowsMut (Lending)Iterator
hkBst Jan 20, 2025
5e7ee87
Implement phantom variance markers
jhpratt Jan 21, 2025
1c9ac12
fix doc for std::sync::mpmc
usamoi Jan 22, 2025
bb0a9a3
Implement `AtomicT::update` & `AtomicT::try_update`
GrigorenkoPV Dec 3, 2024
fd9c57c
alloc: add `#![warn(unreachable_pub)]`
Urgau Jan 11, 2025
d014318
add missing allocator safety in alloc crate
DiuDiu777 Jan 21, 2025
8e702fc
Document purpose of closure in from_fn.rs more clearly
hkBst Jan 22, 2025
f5c8fa0
Document powf and powi calls that always return 1.0
hkBst Jan 26, 2025
664a96f
Fix platform-specific doc string for AtomicUsize::from_mut to be plat…
hkBst Jan 22, 2025
d09b7f5
[Clippy] Add vec_reserve & vecdeque_reserve diagnostic items
wowinter13 Jan 25, 2025
0270aa2
Update comments and sort target_arch in c_char_definition
taiki-e Jan 28, 2025
e35b8fe
[cfg_match] Document the use of expressions
c410-f3r Jan 21, 2025
3b220ff
uefi: process: Fix args
Ayush1325 Jan 28, 2025
da79685
Test pipes also when not running on Windows and Linux simultaneously
tbu- Jan 26, 2025
edb0d58
optimize slice::ptr_rotate for compile-time-constant small rotates
edwloef Jan 21, 2025
0855975
split slice::ptr_rotate into three separate algorithms, to hopefully …
edwloef Jan 27, 2025
b61e678
add inline attribute and codegen test
edwloef Jan 28, 2025
062a33e
btree/node.rs: remove incorrect comment from pop_internal_level docs
btj Jan 28, 2025
3f30b61
btree/node.rs: pop_internal_level: does not invalidate other handles
btj Jan 29, 2025
1b99248
Cleanup docs for Allocator
hkBst Jan 29, 2025
0f0c4ac
Implement `int_from_ascii` (#134821)
niklasf Dec 27, 2024
85fcd28
uefi: Implement path
Ayush1325 Jan 14, 2025
2b47ea0
Add `AsyncFn*` to core prelude
Jan 21, 2025
67ca7a1
Remove minor future footgun in `impl Debug for MaybeUninit`
Sky9x Jan 30, 2025
2336ccd
Improve documentation for file locking
joshtriplett Jan 30, 2025
7901a3c
Stabilize `const_black_box`
tgross35 Jan 12, 2025
2b1ba78
float::min/max: mention the non-determinism around signed 0
RalfJung Jan 30, 2025
4d4e77f
atomic: extend compare_and_swap migration docs
RalfJung Jan 30, 2025
9d46792
Insert null checks for pointer dereferences when debug assertions are…
1c3t3a Dec 17, 2024
d147521
Fix off-by-one error causing driftsort to crash
uellenberg Jan 28, 2025
9fc2bab
Add documentation for derive(CoercePointee)
Darksonn Jan 31, 2025
aa37bb7
docs: Documented Send and Sync requirements for Mutex + MutexGuard
ranger-ross Jan 18, 2025
6740384
improve doc tests for (min/max/minmax).* functions
WaffleLapkin Jan 31, 2025
d68e21c
implement all min/max fns in terms of `<`/`is_lt`
WaffleLapkin Jan 30, 2025
3777262
stabilize `once_wait`
slanterns Jan 31, 2025
5206747
document ptr comparison being by address
hkBst Jan 31, 2025
c18c177
Fix sentence in process::abort
hkBst Jan 27, 2025
0e80c96
make rustc_encodable_decodable feature properly unstable
RalfJung Dec 13, 2024
ba503ed
remove Rustc{En,De}codable from library and compiler
RalfJung Jan 7, 2025
68e53b9
Update encode_utf16 to mention it is native endian
hkBst Jan 30, 2025
bc25d71
rustc_allowed_through_unstable_modules: require deprecation message
RalfJung Feb 2, 2025
9d86eb0
Docs for f16 and f128: correct a typo and add details
pthariensflame Jan 31, 2025
99c641f
OnceCell & OnceLock docs: Using (un)initialized consistently
Pyr0de Feb 3, 2025
ab533c8
black_box integer-input on fmt benches
pascaldekloe Jan 8, 2025
76ade38
no unsafe pointer and no overflowing_literals in fmt::Display of inte…
pascaldekloe Jan 8, 2025
5672cc0
Move std::env unit tests to integration tests
bjorn3 Jan 17, 2025
966746d
Move std::error unit tests to integration tests
bjorn3 Jan 17, 2025
ddd6042
Move std float unit tests to integration tests
bjorn3 Jan 17, 2025
7f5116b
Move std::num unit tests to integration tests
bjorn3 Jan 17, 2025
4f93a9b
Move std::panic unit tests to integration tests
bjorn3 Jan 17, 2025
d4ef07a
Move std::path unit tests to integration tests
bjorn3 Jan 17, 2025
6b6ffdd
Move std::time unit tests to integration tests
bjorn3 Jan 17, 2025
5c1d6f6
Move std::thread_local unit tests to integration tests
bjorn3 Jan 17, 2025
6e786a8
Move std::sync unit tests to integration tests
bjorn3 Jan 17, 2025
4664667
Fix benchmarking of libstd
bjorn3 Jan 17, 2025
6fd2540
Fix for SGX
bjorn3 Jan 23, 2025
a487707
Move env modifying tests to a separate integration test
bjorn3 Jan 23, 2025
06f6134
Remove stabilized feature gate
bjorn3 Jan 23, 2025
193c52f
std::range
pitaj Jan 26, 2025
c6a4948
implement unstable `new_range` feature
pitaj Jan 27, 2025
56b6ff5
primitive type migration from mod.rs to primitives.rs
ricci009 Feb 3, 2025
6b0040b
add UnsafeCell direct access APIs
pitaj Feb 1, 2025
afca9ef
std::fs: further simplify dirent64 handling
RalfJung Feb 3, 2025
c26d414
For NonZero impl macros, give unsigned impls access to the correspond…
joshtriplett Feb 3, 2025
54d096e
Add `cast_signed` and `cast_unsigned` methods for `NonZero` types
joshtriplett Feb 3, 2025
5d40d79
Add note about `FnPtr` being exposed as public bound
Urgau Feb 3, 2025
aaeee01
Add `unchecked_disjoint_bitor` with fallback intrinsic implementation
scottmcm Jan 20, 2025
78bc332
PR feedback
scottmcm Jan 22, 2025
e09f853
More PR feedback
scottmcm Feb 1, 2025
eaf50e7
Contracts core intrinsics.
pnkfelix Dec 2, 2024
d7a2384
contracts: added lang items that act as hooks for rustc-injected code…
pnkfelix Dec 2, 2024
caf8418
Express contracts as part of function header and lower it to the cont…
celinval Jan 9, 2025
92bf898
Desugars contract into the internal AST extensions
pnkfelix Dec 3, 2024
7cb9137
Separate contract feature gates for the internal machinery
pnkfelix Dec 3, 2024
d53bf43
Improve contracts intrisics and remove wrapper function
celinval Jan 17, 2025
644dfa4
Rename rustc_contract to contract
celinval Jan 31, 2025
a75a25f
Mark `std::fmt::from_fn` as `#[must_use]`
yotamofek Feb 3, 2025
1dc6239
uefi: process: Add support for command environment variables
Ayush1325 Jan 19, 2025
57c6481
std: move network code into `sys`
joboet Feb 2, 2025
c1437ee
implement inherent str constructors
m4rch3n1ng Feb 3, 2025
0f21e5b
specify a prim@slice in docs
m4rch3n1ng Feb 3, 2025
27a7514
Update `compiler-builtins` to 0.1.145
tgross35 Jan 16, 2025
487d7ff
Rename slice::take methods to split_off
cramertj Feb 4, 2025
d34477c
Add OneSidedRangeBound to eliminate panic in `split_point_of`
cramertj Feb 4, 2025
24100f6
Use `widening_mul`
TDecking Feb 1, 2025
61eaf91
Fix link in from_fn.rs
hkBst Feb 5, 2025
f931343
Fix unreachable_pub lint for hermit target
thaliaarchi Feb 5, 2025
c418773
tests(std): don't output to std{out,err} in `test_creation_flags` and…
jieyouxu Feb 6, 2025
dcfba8b
Stabilize `HashMap::get_many_mut` as `HashMap::get_disjoint_mut`
Urgau Jan 27, 2025
d736c5f
Stabilise 'Cursor::{get_mut, set_position}' in 'const' scenarios;
bjoernager Feb 6, 2025
93888a0
remove use of `feature(trait_upcasting)` from core tests
WaffleLapkin Dec 16, 2024
9c8778d
Remove some unnecessary parens in `assert!` conditions
estebank Jan 23, 2025
028267f
sys: net: Add UEFI stubs
Ayush1325 Feb 6, 2025
1fdbc7a
tests(std/net): remove outdated `base_port` calculation
jieyouxu Feb 6, 2025
59b6451
Move two windows process tests to tests/ui
ChrisDenton Feb 7, 2025
e01a3d4
std: move `io` module out of `pal`
joboet Jan 18, 2025
a8c3487
std: get rid of `sys_common::io`
joboet Jan 18, 2025
c62a207
Optimize `Rc::<str>::default()` implementation
Kijewski Jan 26, 2025
61d392b
Clean up 'HashMap' and 'HashSet' docs;
bjoernager Feb 7, 2025
1d75f41
Document `Sum::sum` returns additive identities for `[]`
JakenHerman Feb 7, 2025
0d22465
Make `AsyncFnOnce`, `AsyncFnMut`, `AsyncFn` non-`#[fundamental]`
steffahn Feb 8, 2025
c736a5f
Windows: remove readonly files
ChrisDenton Dec 23, 2024
64cf255
Update platform information for remove_file
ChrisDenton Dec 26, 2024
cadedd7
Windows: Test that deleting a running binary fails
ChrisDenton Jan 26, 2025
e98bfe6
Allow Rust to use a number of libc filesystem calls
erickt Jan 28, 2025
5e9cfe0
occured -> occurred
compiler-errors Feb 8, 2025
c99d2c5
Rustfmt
bjorn3 Feb 8, 2025
File filter

Filter by extension

Filter by extension


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

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

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ resolver = "1"
members = [
"std",
"sysroot",
"coretests",
]

exclude = [
Expand Down Expand Up @@ -32,7 +33,7 @@ codegen-units = 10000
[profile.release.package]
addr2line.debug = 0
addr2line.opt-level = "s"
adler.debug = 0
adler2.debug = 0
gimli.debug = 0
gimli.opt-level = "s"
miniz_oxide.debug = 0
Expand Down
2 changes: 1 addition & 1 deletion alloc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ edition = "2021"

[dependencies]
core = { path = "../core" }
compiler_builtins = { version = "=0.1.138", features = ['rustc-dep-of-std'] }
compiler_builtins = { version = "=0.1.145", features = ['rustc-dep-of-std'] }

[dev-dependencies]
rand = { version = "0.8.5", default-features = false, features = ["alloc"] }
Expand Down
1 change: 1 addition & 0 deletions alloc/benches/btree/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ pub fn iter_10k(b: &mut Bencher) {
}

#[bench]
#[cfg_attr(target_os = "emscripten", ignore)] // hits an OOM
pub fn iter_1m(b: &mut Bencher) {
bench_iter(b, 1_000, 1_000_000);
}
Expand Down
3 changes: 1 addition & 2 deletions alloc/benches/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
#![feature(iter_next_chunk)]
#![feature(repr_simd)]
#![feature(slice_partition_dedup)]
#![cfg_attr(bootstrap, feature(strict_provenance))]
#![cfg_attr(not(bootstrap), feature(strict_provenance_lints))]
#![feature(strict_provenance_lints)]
#![feature(test)]
#![deny(fuzzy_provenance_casts)]

Expand Down
11 changes: 11 additions & 0 deletions alloc/benches/slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,14 +366,25 @@ rotate!(rotate_medium_half, gen_random, 9158, 9158 / 2);
rotate!(rotate_medium_half_plus_one, gen_random, 9158, 9158 / 2 + 1);

// Intended to use more RAM than the machine has cache
#[cfg(not(target_os = "emscripten"))] // hits an OOM
rotate!(rotate_huge_by1, gen_random, 5 * 1024 * 1024, 1);
#[cfg(not(target_os = "emscripten"))] // hits an OOM
rotate!(rotate_huge_by9199_u64, gen_random, 5 * 1024 * 1024, 9199);
#[cfg(not(target_os = "emscripten"))] // hits an OOM
rotate!(rotate_huge_by9199_bytes, gen_random_bytes, 5 * 1024 * 1024, 9199);
#[cfg(not(target_os = "emscripten"))] // hits an OOM
rotate!(rotate_huge_by9199_strings, gen_strings, 5 * 1024 * 1024, 9199);
#[cfg(not(target_os = "emscripten"))] // hits an OOM
rotate!(rotate_huge_by9199_big, gen_big_random, 5 * 1024 * 1024, 9199);
#[cfg(not(target_os = "emscripten"))] // hits an OOM
rotate!(rotate_huge_by1234577_u64, gen_random, 5 * 1024 * 1024, 1234577);
#[cfg(not(target_os = "emscripten"))] // hits an OOM
rotate!(rotate_huge_by1234577_bytes, gen_random_bytes, 5 * 1024 * 1024, 1234577);
#[cfg(not(target_os = "emscripten"))] // hits an OOM
rotate!(rotate_huge_by1234577_strings, gen_strings, 5 * 1024 * 1024, 1234577);
#[cfg(not(target_os = "emscripten"))] // hits an OOM
rotate!(rotate_huge_by1234577_big, gen_big_random, 5 * 1024 * 1024, 1234577);
#[cfg(not(target_os = "emscripten"))] // hits an OOM
rotate!(rotate_huge_half, gen_random, 5 * 1024 * 1024, 5 * 1024 * 1024 / 2);
#[cfg(not(target_os = "emscripten"))] // hits an OOM
rotate!(rotate_huge_half_plus_one, gen_random, 5 * 1024 * 1024, 5 * 1024 * 1024 / 2 + 1);
5 changes: 5 additions & 0 deletions alloc/benches/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,11 @@ fn bench_in_place_collect_droppable(b: &mut Bencher) {
})
}

// node.js gives out of memory error to use with length 1_100_000
#[cfg(target_os = "emscripten")]
const LEN: usize = 4096;

#[cfg(not(target_os = "emscripten"))]
const LEN: usize = 16384;

#[bench]
Expand Down
5 changes: 1 addition & 4 deletions alloc/src/alloc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ use core::hint;
#[cfg(not(test))]
use core::ptr::{self, NonNull};

#[cfg(test)]
mod tests;

extern "Rust" {
// These are the magic symbols to call the global allocator. rustc generates
// them to call `__rg_alloc` etc. if there is a `#[global_allocator]` attribute
Expand Down Expand Up @@ -342,7 +339,7 @@ unsafe impl Allocator for Global {
}
}

/// The allocator for unique pointers.
/// The allocator for `Box`.
#[cfg(all(not(no_global_oom_handling), not(test)))]
#[lang = "exchange_malloc"]
#[inline]
Expand Down
Loading