Skip to content
Closed
Changes from 2 commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
ba350ff
fix: re-enable self-assignment
notJoon Aug 10, 2025
de13718
test: Add rustdoc test for enum negative overflow
eval-exec Aug 10, 2025
20a134f
rustdoc: Use `discr`s `Display` impl to render the value with the cor…
eval-exec Aug 10, 2025
cd4676c
Turn _span into _trace as trace span name
Stypox Aug 11, 2025
6603fe1
Port `#[allow_internal_unsafe]` to the new attribute system (attempt 2)
scrabsha Aug 3, 2025
d523b9f
Support using #[unstable_feature_bound] on trait
tiif Aug 11, 2025
9a8facb
Update rustc dev guide
tiif Aug 11, 2025
bcf87e4
Update error message
tiif Aug 11, 2025
0ccbe8f
std: sys: pal: uefi: Overhaul Time
Ayush1325 Apr 14, 2025
35906ea
std: sys: pal: uefi: tests: Add systemtime tests
Ayush1325 May 24, 2025
79a134a
Document compiler and stdlib in stage1 in `pr-check-2` CI job
Kobzol Aug 11, 2025
c022ed9
don't emit rustdoc::broken_intra_doc_links for stuff like [!NOTE]
lolbinarycat Aug 4, 2025
189f264
Allow attr entries to declare list of alternatives for `List` and `Na…
estebank Aug 11, 2025
625143b
Add link to docs on malformed attributes
estebank Aug 11, 2025
6bb29af
Add link to invalid `repr` error
estebank Aug 11, 2025
413ca5d
fix tests
estebank Aug 11, 2025
19df24b
Make explicit guarantees about `Vec`’s allocator
SabrinaJewson Aug 11, 2025
50d8b80
Update books
rustbot Aug 11, 2025
32ee26c
Add more docs to templates for attrs with incorrect arguments
estebank Aug 11, 2025
adccb8d
Rework `NameValueStr`
estebank Aug 11, 2025
45e2449
Respond to review comments
SabrinaJewson Aug 11, 2025
1dc37df
Simplify `add_apple_sdk`
madsmtm Aug 11, 2025
928dd11
fix clippy test
estebank Aug 11, 2025
1cc44bf
Pass Apple SDK root to compiler driver via SDKROOT env var
madsmtm Aug 11, 2025
f4a9110
Only warn when invoking xcrun
madsmtm Aug 11, 2025
1d13162
Always attempt to invoke xcrun to get the Apple SDK
madsmtm Aug 11, 2025
86853b3
Account for new `assert!` desugaring in `!condition` suggestion
estebank Aug 11, 2025
39c5d6d
Factor out InherentImplCannotUnsafe
camsteffen Jul 30, 2025
fa73390
Move trait impl modifier errors to parsing
camsteffen Jul 30, 2025
3aa0ac0
Tweak trait modifier errors
camsteffen Jul 30, 2025
5bc23ce
Extract ast TraitImplHeader
camsteffen Jul 22, 2025
bf266dc
Propagate TraitImplHeader to hir
camsteffen Jul 24, 2025
25fe461
std: thread: Return error if setting thread stack size fails
Gelbpunkt Jul 20, 2025
f336cc7
Make I-miscompile imply I-prioritize
theemathas Aug 12, 2025
1ce4b37
Handle the `capacity == 0` case
SabrinaJewson Aug 12, 2025
e454022
bootstrap: Only warn about `rust.debug-assertions` if downloading rustc
Zalathar Aug 12, 2025
b025050
Rollup merge of #131477 - madsmtm:sdkroot-via-env-var, r=nnethercote
Zalathar Aug 12, 2025
53f6f5a
Rollup merge of #139806 - Ayush1325:uefi-systemtime, r=joboet
Zalathar Aug 12, 2025
b381e40
Rollup merge of #144210 - Gelbpunkt:thread-stack-size-musl, r=jhpratt
Zalathar Aug 12, 2025
303674c
Rollup merge of #144386 - camsteffen:imploftrait, r=fmease
Zalathar Aug 12, 2025
0e15115
Rollup merge of #144921 - lolbinarycat:rustdoc-intra-doc-gfm-141866, …
Zalathar Aug 12, 2025
65e1f84
Rollup merge of #145155 - scrabsha:push-tkvwkolzooyq, r=jdonszelmann
Zalathar Aug 12, 2025
93e2056
Rollup merge of #145214 - notJoon:fix/enable-self-assignment, r=petro…
Zalathar Aug 12, 2025
1ca2aec
Rollup merge of #145216 - eval-exec:fix-145125-enum-rustdoc, r=fmease
Zalathar Aug 12, 2025
7423e0c
Rollup merge of #145238 - estebank:attr-overhaul, r=jdonszelmann
Zalathar Aug 12, 2025
9c50e31
Rollup merge of #145249 - Stypox:_span-to-_trace, r=joshtriplett
Zalathar Aug 12, 2025
cfae921
Rollup merge of #145251 - tiif:support_trait, r=BoxyUwU
Zalathar Aug 12, 2025
a55cf66
Rollup merge of #145253 - Kobzol:pr-check-2-doc-stage-1, r=jieyouxu
Zalathar Aug 12, 2025
422b3a2
Rollup merge of #145260 - SabrinaJewson:vec-allocator-docs, r=dtolnay
Zalathar Aug 12, 2025
9d16f12
Rollup merge of #145263 - rustbot:docs-update, r=ehuss
Zalathar Aug 12, 2025
c60edfe
Rollup merge of #145273 - estebank:not-not, r=samueltardieu
Zalathar Aug 12, 2025
6c9c053
Rollup merge of #145283 - theemathas:patch-1, r=Noratrieb
Zalathar Aug 12, 2025
3755901
Rollup merge of #145291 - Zalathar:no-warning, r=Kobzol
Zalathar Aug 12, 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
10 changes: 9 additions & 1 deletion library/std/src/sys/pal/unix/thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,15 @@ impl Thread {
let page_size = os::page_size();
let stack_size =
(stack_size + page_size - 1) & (-(page_size as isize - 1) as usize - 1);
assert_eq!(libc::pthread_attr_setstacksize(attr.as_mut_ptr(), stack_size), 0);

// Some libc implementations, e.g. musl, place an upper bound
// on the stack size, in which case we can only gracefully return
// an error here.
if libc::pthread_attr_setstacksize(attr.as_mut_ptr(), stack_size) != 0 {
assert_eq!(libc::pthread_attr_destroy(attr.as_mut_ptr()), 0);
drop(Box::from_raw(data));
return Err(io::Error::other("invalid stack size"));
}
}
};
}
Expand Down