-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Rollup of 17 pull requests #145300
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 17 pull requests #145300
Conversation
_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.
Reduce indentation and avoid needless checks (checking the target OS and vendor is unnecessary).
This is more in-line with what Apple's tooling expects, and allows us to better support custom compiler drivers (such as certain Homebrew and Nixpkgs compilers) that prefer their own `-isysroot` flag. Effectively, we now invoke the compiler driver as-if it was invoked as `xcrun -sdk $sdk_name $tool`.
To allow using zig-cc or similar as the compiler driver.
The exact reasoning why we do not always pass the SDK root when linking on macOS eludes me, but I suspect it's because we want to support compiler drivers which do not support the `-isysroot` option. Since we now pass the SDK root via the environment variable SDKROOT, compiler drivers that don't support it can just ignore it. Similarly, since we only warn when xcrun fails, users that expect their compiler driver to provide the SDK location can do so now.
`rustc` is going to change the desugaring of `assert!` to be ```rust match condition { true => {} _ => panic!(), } ``` which will make the edge-case of `condition` being `impl Not<Output = bool>` while not being `bool` itself no longer a straightforward suggestion, but `!!condition` will coerce the expression to be `bool`, so it can be machine applicable.
This is a technically a breaking change for what can be parsed in `#[cfg(false)]`.
☀️ Test successful - checks-actions |
What is this?This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.Comparing a153133 (parent) -> d9dba3a (this PR) Test differencesShow 709 test diffsStage 1
Stage 2
(and 338 additional test diffs) Additionally, 271 doctest diffs were found. These are ignored, as they are noisy. Job group index
Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard d9dba3a55476ae2da5d4e5bce8a81b341c675750 --output-dir test-dashboard And then open Job duration changes
How to interpret the job duration changes?Job durations can vary a lot, based on the actual runner instance |
📌 Perf builds for each rolled up PR:
previous master: a1531335fe In the case of a perf regression, run the following command for each PR you suspect might be the cause: |
Finished benchmarking commit (d9dba3a): comparison URL. Overall result: ❌ regressions - no action needed@rustbot label: -perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary 1.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary -2.5%, secondary -3.2%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 465.439s -> 464.325s (-0.24%) |
Successful merges:
cc
, and pass it viaSDKROOT
env var #131477 (Apple: Always pass SDK root when linking withcc
, and pass it viaSDKROOT
env var)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)assert!
desugaring in!condition
suggestion #145273 (Account for newassert!
desugaring in!condition
suggestion)rust.debug-assertions
if downloading rustc #145291 (bootstrap: Only warn aboutrust.debug-assertions
if downloading rustc)r? @ghost
@rustbot modify labels: rollup
Create a similar rollup