-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Rollup of 16 pull requests #145280
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
Rollup of 16 pull requests #145280
Conversation
Currently, when setting the thread stack size fails, it would be rounded up to the nearest multiple of the page size and the code asserts that the next call to pthread_attr_setstacksize succeeds. This may be true for glibc, but it isn't true for musl, which not only enforces a minimum stack size, but also a maximum stack size of usize::MAX / 4 - PTHREAD_STACK_MIN [1], triggering the assert rather than erroring gracefully. There isn't any way to handle this properly other than bailing out and letting the user know it didn't succeed. [1]: https://git.musl-libc.org/cgit/musl/tree/src/thread/pthread_attr_setstacksize.c#n5 Signed-off-by: Jens Reidel <[email protected]>
_span could possibly be confused with the Span type in rustc
Use a time representation with 1900-01-01-00:00:00 at timezone -1440 min as anchor. This is the earliest time supported in UEFI. Signed-off-by: Ayush Singh <[email protected]>
Add tests to ensure that extream system times are still representable. Signed-off-by: Ayush Singh <[email protected]>
…medValueStr` Modify `AttributeTemplate` to support list of alternatives for list and name value attribute styles. Suggestions now provide more correct suggested code: ``` error[E0805]: malformed `used` attribute input --> $DIR/used_with_multi_args.rs:3:1 | LL | #[used(compiler, linker)] | ^^^^^^------------------^ | | | expected a single argument here | help: try changing it to one of the following valid forms of the attribute | LL - #[used(compiler, linker)] LL + #[used(compiler)] | LL - #[used(compiler, linker)] LL + #[used(linker)] | LL - #[used(compiler, linker)] LL + #[used] | ``` instead of the prior "masking" of the lack of this feature by suggesting pipe-separated lists: ``` error[E0805]: malformed `used` attribute input --> $DIR/used_with_multi_args.rs:3:1 | LL | #[used(compiler, linker)] | ^^^^^^------------------^ | | | expected a single argument here | help: try changing it to one of the following valid forms of the attribute | LL - #[used(compiler, linker)] LL + #[used(compiler|linker)] | LL - #[used(compiler, linker)] LL + #[used] | ```
This commit amends the documentation of `Vec::as_mut_ptr` and `Vec::into_raw_parts` to make it explicit that such calls may be paired with calls to `dealloc` with a suitable layout. This guarantee was effectively already provided by the docs of `Vec::from_raw_parts` mentioning `alloc`. Additionally, we copy-paste and adjust the “Memory layout” section from the documentation of `std::boxed` to `std::vec`. This explains the allocator guarantees in more detail.
- remove some stabilized target features from `gate.rs`
@bors r+ rollup=never p=5 |
While we're waiting, let's run a basic try-job. @bors try |
Rollup of 16 pull requests
The job Click to see the possible cause of the failure (guessed by this bot)
|
Or! The typo checker could make that PR the one that actually needs to be fixed. .-. |
@bors try cancel |
Try build cancelled. Cancelled workflows: |
Welp, should I kick spellcheck out or "overhaul SystemTime" >.< hmm, I guess I'll kick spellcheck out. |
@bors r- |
Successful merges:
cc
, and pass it viaSDKROOT
env var #131477 (Apple: Always pass SDK root when linking withcc
, and pass it viaSDKROOT
env var)sse4a
andtbm
target features #144542 (Stabilizesse4a
andtbm
target features)rustdoc::broken_intra_doc_links
for GitHub-flavored Markdown admonitions like[!NOTE]
#144921 (Don't emitrustdoc::broken_intra_doc_links
for GitHub-flavored Markdown admonitions like[!NOTE]
)#[allow_internal_unsafe]
to the new attribute system (attempt 2) #145155 (Port#[allow_internal_unsafe]
to the new attribute system (attempt 2))_span
to_trace
#145249 (Rename entered trace span variables from_span
to_trace
)pr-check-2
CI job #145253 (Document compiler and stdlib in stage1 inpr-check-2
CI job)Vec
’s allocator #145260 (Make explicit guarantees aboutVec
’s allocator)Failed merges:
SystemTime
methods #144519 (ConstifySystemTime
methods)r? @ghost
@rustbot modify labels: rollup
Create a similar rollup