Repository navigation
Rollup of 5 pull requests - #166415
Rollup of 5 pull requests#166415
Conversation
Don't artificially suppress the `.` & `?` expectation after `return` that doesn't make any sense. `return.field` & `return?` are perfectly legal. Moreover, this rather simplistic check didn't even account for any of `return`'s "siblings" (`break`, `continue`, `yield`, `become`, `do yeet`).
…=camelid Parser: Clean up `parse_expr_dot_or_call_with` & simplify `parse_expr_prefix` <sub>(No LLM was or will be used by me during the entire creation process of this PR)</sub>
…kingjubilee Separate `Primitive::Bool` and make `#[repr($int)]` enums always use the ABI of $int This properly gives `bool` its own ABI, shared only with bool-like `enum`s that have **no explicit repr**. `#[repr($int)]` `enum`s now always use the ABI of `$int`. This PR makes **no language guarantees**, however it will help facilitate such guarantees, if they're decided on: rust-lang/unsafe-code-guidelines#628 Additionally, it seems to give LLVM slightly more information about the tags of certain enums, especially when it comes to variants with different sizes. Previously, bools were identified for the purposes of ABI as being any `u8` primitive that had a valid range of `0..=1`. An enum with `#[repr(u8)]` and with discriminants `0` and `1` would satisfy that condition and be treated like a bool. This is somewhat sketchy, and while no miscompilation has been found, I would not be surprised if the i1 Extension Situation could cause problems on some targets. fixes rust-lang#165026 cc rust-lang#165800. this PR doesn't make that situation any worse, but it is bool ABI related, and this PR adds a commented-out test related to this pre-existing situation.
…xt-solver, r=lqd Require the next-solver for unsafe binders We're approaching stabilization and trying to implement things for the old solver is a huge pain. r? adwinwhite
Move more rustc lint attributes to lint helpers. Part 2 of implementing rust-lang#160808 (For part 1, see rust-lang#163625)
…-alloc-impls, r=clarfonthey Unstably implement `StaticAllocator` on fundamental types Unstably implements `StaticAllocator` on `Box` and `Pin`. These types are fundamental, and we use `StaticAllocator` in bounds (specifically `impl From<Box<T, A>> for Pin<Box<T, A>> where A: StaticAllocator`, so adding impls for them would generally be already breaking due to coherence. The impls here are barely not breaking, because all `StaticAllocator` implementors are currently considered local to std, so any code that tries to observe the non-existence of these impls through coherence fails with something like "upstream could add a `StaticAllocator` impl to `Box<Global>`". This isn't really ideal, so to prevent any accidents in the future, this PR adds these `#[unstable_feature_bound]` impls. The impl for `Box` could be added stably, but I'd rather do that in a separate PR, because doing so would require FCP (it would allow `Box::into_pin(Box::new_in(1, Box::new(Global)))`), and I don't want this semver risk at the back of my mind for weeks. The impl for `Pin` is not correct, and only meant as a reservation impl (hence the separate "`internal_`" feature gate). See the `FIXME` comment above it. r? clarfonthey
|
@bors r+ p=5 force |
This comment has been minimized.
This comment has been minimized.
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 2772402 (parent) -> 20fe935 (this PR) Test differencesShow 108 test diffsStage 1
Stage 2
Additionally, 96 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 20fe935d50367c0ff8872c2ebfa050c5c99d9201 --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 |
|
📌 Perf builds for each rolled up PR:
parent commit: 2772402385 In the case of a perf regression, run the following command with the SHAs of each PR you suspect might be the cause: |
|
Finished benchmarking commit (20fe935): comparison URL. Overall result: ❌✅ regressions and improvements - please read:Our benchmarks found a performance regression caused by this PR. Next Steps:
@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 (secondary 2.5%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary -1.7%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: 462.881s -> 463.652s (0.17%) |
Successful merges:
parse_expr_dot_or_call_with& simplifyparse_expr_prefix#164537 (Parser: Clean upparse_expr_dot_or_call_with& simplifyparse_expr_prefix)Primitive::Booland make#[repr($int)]enums always use the ABI of $int #165481 (SeparatePrimitive::Booland make#[repr($int)]enums always use the ABI of $int)StaticAllocatoron fundamental types #166221 (Unstably implementStaticAllocatoron fundamental types)r? @ghost
Create a similar rollup