Rollup of 5 pull requests - #162382
Conversation
Force u8/i8 numeric formatting on LLDB Resolves a very common annoyance with the existing visualizers. This doesn't touch the behavior that formats char pointers as c-strings since that's its own can of worms (and likely needs to be handled alongside adding the wide pointer visualizer). I disabled checking `Rc<str>` in `strings-and-strs.rs`, as this patch caused it to fail on `windows-gnu` and the fix is the wide pointer visualizer. Technically, even on `linux-gnu` the test only works because it's seemingly somewhat reliable for there to be a null byte directly after the `str` data, but that's obviously not something we should be relying on. Also fixes `tests\debuginfo\borrowed-unique-basic.rs` on `windows-msvc` as part of rust-lang#161657 (comment) r? @Kobzol, @jieyouxu --- try-job: aarch64-apple-1 try-job: x86_64-mingw-1
…, r=jieyouxu
Use `lldb.eTypeOptionHideChildren` for msvc tuples
Changes output from e.g. `(8, 5.5) { 0:8, 1:5.5 }` to just `(8, 5.5)` to match non-msvc handling.
Fixes the following tests on `windows-msvc` (see rust-lang#161657):
* `tests\debuginfo\borrowed-tuple.rs`
* `tests\debuginfo\box.rs`
* `tests\debuginfo\cross-crate-spans.rs`
* `tests\debuginfo\destructured-local.rs`
* `tests\debuginfo\pretty-std-collections.rs`
* `tests\debuginfo\simple-tuple.rs`
* `tests\debuginfo\tuple-in-tuple.rs`
Also partially fixes `tests\debuginfo\associated-types.rs`
r? @Kobzol, @jieyouxu
---
try-job: x86_64-msvc-1
try-job: aarch64-msvc-1
Use `#[repr(C)]` on debuginfo test structs This fixes a couple of issues. * LLDB reading PDB debug info re-orders fields and displays them in offset order instead of source-order like DWARF. While this has been [fixed upstream](llvm/llvm-project#218731), it'll be quite a while before it's reflected in CI runners and such * For all targets, the structs were often written (and named) under the assumption that they would have specific layouts. Nothing was actually enforcing those assumed layouts, so very often a type would be named e.g. `HasInternalPadding` but rust would reorder it such that no internal padding existed. `struct-with-destructor.rs` is still iffy. I'll test it when I get home and can update my main PC's LLDB. On my remote PC (lldb 22.1.2) it didn't fix the test, and it looked like the variable was straight up being read incorrectly: ``` // expected: (struct_with_destructor::NestedOuter) nested = {a:{a:{x:7890, y:9870}}} // got: (struct_with_destructor::NestedOuter) nested = {a:{a:{y:1378684509906, x:9870}} ``` On my laptop when manually inspecting it (CodeLLDB which uses 22.1.8 under the hood) everything looked fine, so it might have been a bug that LLDB patched. Part of the MSVC test fixes for rust-lang#161657 r? @Kobzol, @jieyouxu --- test-jobs: aarch64-apple-1 test-jobs: aarch64-msvc-1 test-jobs: x86_64-msvc-1 test-jobs: x86_64-mingw-1
…nyukang remove stale/duplicate tests Conversation from: https://rust-lang.zulipchat.com/#narrow/channel/122651-general/topic/Duplicate.20tests/with/621165039 * `recursion2.rs` -> `recursion1.rs` * `drop-track-field-assign-nonsend.rs` -> `field-assign-nonsend.rs` * `drop-track-field-assign.rs` -> `field-assign.rs` * `suggest-local-var-for-vector.rs` -> `suggest-storing-local-var-for-vector.rs` * `recursion-issue-105275.rs` -> `recursion-issue-105937.rs` * `migrate-fail.rs` -> `nll-fail.rs` * `migrate-pass.rs` -> `nll-pass.rs` * `issue-29914-2.rs` -> `issue-29914.rs` * `drop-tracking-parent-expression.rs` -> `parent-expression.rs` * `tuple-like-structs-cross-crate-7899.rs` -> `tuple-struct-cross-crate-7899.rs` * `E0508-fail.rs` -> `E0508.rs` * `ex3-both-anon-regions-one-is-struct-4.rs` -> `ex3-both-anon-regions-one-is-struct-3.rs` * `stability_cfg2.rs` -> `stability-cfg2.rs` * `issue-1802-2.rs` -> `issue-1802-1.rs` * `tool_lints_2018_preview.rs` -> `tool_lints-rpass.rs` * `issue-58951-2.rs` -> `issue-58951.rs` * `issue-74761-2.rs` -> `issue-74761.rs` * `issue-30276-feature-flagged.rs` -> `issue-30276.rs`
Add several new LLDB feature flags These flags aren't currently used anywhere, but the features they describe are *incredibly* useful (particularly for a wide pointer visualizer that I have in the works). This patch serves both to document them (especially a feature we *shouldn't* use), and to prep for future visualizers.
This comment has been minimized.
This comment has been minimized.
Rollup of 5 pull requests try-job: dist-various-1 try-job: test-various try-job: x86_64-gnu-aux try-job: x86_64-gnu-llvm-21-3 try-job: x86_64-msvc-1 try-job: aarch64-apple-1 try-job: aarch64-apple-2 try-job: x86_64-mingw-1 try-job: i686-msvc-1 try-job: i686-msvc-2
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 da47efd (parent) -> 5a2be9f (this PR) Test differencesShow 51 test diffsStage 1
Stage 2
Additionally, 3 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 5a2be9f5f075d31e3ca5526b5b029881ce441253 --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 (5a2be9f): 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. CyclesThis perf run didn't have relevant results for this metric. Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: 479.814s -> 476.006s (-0.79%) |
|
📌 Perf builds for each rolled up PR:
parent commit: da47efd272 In the case of a perf regression, run the following command for each PR you suspect might be the cause: |
Successful merges:
lldb.eTypeOptionHideChildrenfor msvc tuples #162359 (Uselldb.eTypeOptionHideChildrenfor msvc tuples)#[repr(C)]on debuginfo test structs #162364 (Use#[repr(C)]on debuginfo test structs)r? @ghost
Create a similar rollup