Repository navigation
Rollup of 3 pull requests - #165668
Rollup of 3 pull requests#165668
Conversation
…table, r=tiif declare_tool_lint: allow use without `default_field_values` feature Followup to rust-lang#164329 It's somewhat inconvenient, for 3rd party lint tool authors, to have to enable a feature that's really an implementation detail of the macro.
Do not suggest deriving Clone on foreign types in noop_method_call Fixes rust-lang#134471 Only suggest the derive for local types. The test uses an aux crate because UI tests hide suggestions that point into std rust-lang#131782
… r=hanna-kruppe Avoid Terminator:None in coroutine transform Another step towards changing `Option<Terminator>` to `Terminator` in `BasicBlockData`. More info in [this thread](https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/vibe.20check.20-.20removing.20Option.20from.20Terminator/with/637588808). This case is an example of one of the main reasons the `Terminator: None` is used: We need to link blocks together by their ids, but some of those ids are not yet assigned. The previous code did this by first allocating the block with `None` terminator and then filled those terminators later, using the allocated block ids. This is nice because it reduces the chance of mixing up those block ids - the block id is already in the list on that specific id (index), so we know we're linking the correct one. If we replaced this with code that calls `blocks.next_index()` to get the assumed id of next block, link the blocks together and push them to the list later, there's a chance that some further changes to the code will break this assumption - just reordering the `push` statements will link the blocks incorrectly. `next_index` and `push` are currently not connected through the type system, so their coupling is implicit. In this PR, we instead add a new kind of push function to the `IndexVec`, which allows us to get the next index (id of the next block) in the push operation, such that we can use it to link other blocks before finalizing the new one. The downside of this method is that it makes the structure a bit unobvious (at least in this case), I'd like to get more feedback on that. As a bit more complex alternative, we could have some `reserve -> commit` style api instead (similar to Entry api). This one might be more useful for complex cases which need to push and link multiple blocks, those currently cannot be handled by the method from this PR. Or we could just take the risk and use the `next_index` method and hope that we always catch it with tests.
|
Rollup of everything. @bors r+ rollup=never 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 ba58c66 (parent) -> 4de0e38 (this PR) Test differencesShow 18 test diffsStage 1
Stage 2
Additionally, 12 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 4de0e38612353dc524009a12ad43f0c05a5f8c6e --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 (4de0e38): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis perf run didn't have relevant results for this metric. Max RSS (memory usage)This perf run didn't have relevant results for this metric. CyclesResults (primary -1.5%)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: 484.686s -> 483.729s (-0.20%) |
|
📌 Perf builds for each rolled up PR:
parent commit: ba58c66e24 In the case of a perf regression, run the following command with the SHAs of each PR you suspect might be the cause: |
Successful merges:
default_field_valuesfeature #164990 (declare_tool_lint: allow use withoutdefault_field_valuesfeature)r? @ghost
Create a similar rollup