Rollup of 5 pull requests#154659
Conversation
Duration::as_secs() returns u64 but l_linger field type is narrower, c_int on most unix platforms, c_ushort on cygwin and windows. clamping before the cast, consistent with how set_timeout handles this.
Checking that they really do use thin pointers.
- Add some explanatory comments. - Rename `OpaqueListContents` as `ExternTy`. I've always found both the "opaque" and "contents" parts of this name to be confusing. Calling it `ExternTy` makes it clear that all that matters is it's an extern type.
- Merge the `List` and `ListWithCachedTypeInfo` impls by referring to the shared underlying type, `RawList`. This required increasing the visibility of `RawList`. - Explain why a separate impl is needed for `RawList`. - Remove an incorrect FIXME comment. Fat reference types will always need a separate impl. (To be sure, one could use `T: ?Sized` to merge the impls for `&T` and `&[T]` and it would compile but it would behave incorrectly because `&T` needs one word of storage and `&[T]` needs two words of storage. I tried it and it did not go well.)
…ight thing specifically this emits an error when - a custom target is used - `RiscV32 if self.llvm_abiname == "ilp32e"` this abi is used for 32-bit embedded targets, and clang/llvm document that the ABI may change in the future.
…tgross35 c-variadic: error when we can't guarantee that the backend does the right thing tracking issue: rust-lang#44930 r? workingjubilee as discussed in [#t-lang > stabilizing &rust-lang#96;c_variadic&rust-lang#96;](https://rust-lang.zulipchat.com/#narrow/channel/213817-t-lang/topic/stabilizing.20.60c_variadic.60/with/574691397), display an error when we can't guarantee that the codegen backend (only LLVM is supported at the moment) does the right thing.
…nieu std::net: clamp linger timeout value to prevent silent truncation. Duration::as_secs() returns u64 but l_linger field type is narrower, c_int on most unix platforms, c_ushort on cygwin and windows. clamping before the cast, consistent with how set_timeout handles this.
Fix `mismatched_lifetime_syntaxes` suggestions for hidden path lifetimes close: rust-lang#154493 r? shepmaster cc: @chenyukang
fix pin docs This PR fixes a small grammatical error in the projection section of the pin docs. There is probably more than one answer for the fix, but I felt that this correction was the *smallest*.
…iper Clarify `ty::List` `ty::List` is an unusual type. This commit clarifies some things about it. Details in individual commits. r? @cuviper
|
@bors r+ rollup=never p=5 |
This comment has been minimized.
This comment has been minimized.
|
📌 Perf builds for each rolled up PR:
previous master: 12ab1cf1fd In the case of a perf regression, run the following command for each PR you suspect might be the cause: |
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 12ab1cf (parent) -> 3ebe60c (this PR) Test differencesShow 34 test diffsStage 1
Stage 2
Additionally, 26 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 3ebe60c8c30d1175019dcbdb957441cd84aa1220 --output-dir test-dashboardAnd then open Job duration changes
How to interpret the job duration changes?Job durations can vary a lot, based on the actual runner instance |
|
Finished benchmarking commit (3ebe60c): comparison URL. Overall result: ✅ improvements - 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 2.5%, secondary -0.2%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary 2.1%)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: 482.203s -> 483.835s (0.34%) |
Successful merges:
mismatched_lifetime_syntaxessuggestions for hidden path lifetimes #154592 (Fixmismatched_lifetime_syntaxessuggestions for hidden path lifetimes)ty::List#154648 (Clarifyty::List)r? @ghost
Create a similar rollup