Skip to content
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 6 pull requests #124769

Closed
wants to merge 23 commits into from
Closed

Rollup of 6 pull requests #124769

wants to merge 23 commits into from

Conversation

fmease
Copy link
Member

@fmease fmease commented May 5, 2024

Successful merges:

r? @ghost
@rustbot modify labels: rollup

Create a similar rollup

madsmtm and others added 23 commits April 19, 2024 05:51
Allow allow enums like `Result<T, E>` to be used across FFI if the
T/E can be niche optimized and the non-niche-optimized type is FFI safe.
Fields are disallowed so checking the top attribute is enough.
Tests both `T` and `E` for niche variant optimization lints
Couldn't find documentation supporting that single-variant
`#[repr(Rust)]` enums with RHS assigned work as expected with this
change.

```rust
enum Variants {
  A = 17,
} // Would this be zero sized optimized guaranteed?
```
Summary:
I landed a fix last year to enable `DW_TAG_variant_part` encoding in LLDBs (https://reviews.llvm.org/D149213). This PR is a corresponding fix in synthetic formatters to decode that information.
This is in no way perfect implementation but at least it improves the status quo. But most types of enums will be visible and debuggable in some way.
I've also updated most of the existing tests that touch enums and re-enabled test cases based on LLDB for enums.

Test Plan:
ran tests `./x test tests/debuginfo/`. Also tested manually in LLDB CLI and LLDB VSCode

Other Thoughs
A better approach would probably be adopting [formatters from codelldb](https://github.com/vadimcn/codelldb/blob/master/formatters/rust.py). There is some neat hack that hooks up summary provider via synthetic provider which can ultimately fix more display issues for Rust types and enums too. But getting it to work well might take more time that I have right now.
Triagebot: Rename `macos` ping group to `apple`

Expand the scope of the macOS ping group to all Apple targets.

Blocked on rust-lang/team#1436 (rename in `team` repo)
Blocked on rust-lang/rustc-dev-guide#1964 (referenced documentation link)

`@rustbot` label O-macos O-ios O-tvos O-watchos O-visionos
Add `rustfmt` cfg to well known cfgs list

This PR adds the `rustfmt` cfg to the well known cfgs list.

Related to rust-lang#124735
…, r=Mark-Simulacrum

Implement lldb formattter for "clang encoded" enums (LLDB 18.1+) (v2)

This PR is identical to rust-lang#124458, which was approved and merged but then removed from master by a force-push due to a [CI bug](https://rust-lang.zulipchat.com/#narrow/stream/242791-t-infra/topic/ci.20broken.3F).

Original PR description:

---

## Summary:

fixes rust-lang#79530

I landed a fix last year to enable `DW_TAG_variant_part` encoding in LLDBs (https://reviews.llvm.org/D149213). This PR is a corresponding fix in synthetic formatters to decode that information.

This is in no way perfect implementation but at least it improves the status quo. But most types of enums will be visible and debuggable in some way.

I've also updated most of the existing tests that touch enums and re-enabled test cases based on LLDB for enums.

## Test Plan:
ran tests `./x test tests/debuginfo/`. Also tested manually in LLDB CLI and LLDB VSCode

## Other Thoughs:
A better approach would probably be adopting [formatters from codelldb](https://github.com/vadimcn/codelldb/blob/master/formatters/rust.py). There is some neat hack that hooks up summary provider via synthetic provider which can ultimately fix more display issues for Rust types and enums too. But getting it to work well might take more time that I have right now.
Support Result<T, E> across FFI when niche optimization can be used (v2)

This PR is identical to rust-lang#122253, which was approved and merged but then removed from master by a force-push due to a [CI bug](https://rust-lang.zulipchat.com/#narrow/stream/242791-t-infra/topic/ci.20broken.3F).

r? ghost

Original PR description:

---

Allow allow enums like `Result<T, E>` to be used across FFI if the T/E can be niche optimized and the non-niche-optimized type is FFI safe.

Implementation of rust-lang/rfcs#3391
Tracking issue: rust-lang#110503

Additional ABI and codegen tests were added in rust-lang#115372
…, r=jackh726

[resubmission] Meta: Enable the brand new triagebot transfer command

rust-lang#124725, rust-lang#124725 (comment)

r? ghost
@rustbot rustbot added A-meta Area: Issues & PRs about the rust-lang/rust repository itself S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. rollup A PR which is a rollup labels May 5, 2024
@fmease
Copy link
Member Author

fmease commented May 5, 2024

@bors r+ rollup=never p=6

@bors
Copy link
Contributor

bors commented May 5, 2024

📌 Commit 31e2302 has been approved by fmease

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 5, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request May 5, 2024
Rollup of 6 pull requests

Successful merges:

 - rust-lang#124146 (Triagebot: Rename `macos` ping group to `apple`)
 - rust-lang#124742 (Add `rustfmt` cfg to well known cfgs list)
 - rust-lang#124745 (Implement lldb formattter for "clang encoded" enums (LLDB 18.1+) (v2))
 - rust-lang#124747 (Support Result<T, E> across FFI when niche optimization can be used (v2))
 - rust-lang#124765 ([rustdoc] Fix bad color for setting cog in ayu theme)
 - rust-lang#124768 ([resubmission] Meta: Enable the brand new triagebot transfer command)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors
Copy link
Contributor

bors commented May 5, 2024

⌛ Testing commit 31e2302 with merge be0e608...

@rust-log-analyzer
Copy link
Collaborator

The job x86_64-msvc failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
failures:

---- [debuginfo-cdb] tests\debuginfo\msvc-pretty-enums.rs stdout ----

error: check directive(s) from `C:\a\rust\rust\tests\debuginfo\msvc-pretty-enums.rs` not found in debugger output. errors:
    (msvc-pretty-enums.rs:86) `a                : Some [Type: enum2$<core::option::Option<msvc_pretty_enums::CStyleEnum> >]`
    (msvc-pretty-enums.rs:90) `b                : None [Type: enum2$<core::option::Option<msvc_pretty_enums::CStyleEnum> >]`
    (msvc-pretty-enums.rs:93) `c                : Tag1 [Type: enum2$<msvc_pretty_enums::NicheLayoutEnum>]`
    (msvc-pretty-enums.rs:96) `d                : Data [Type: enum2$<msvc_pretty_enums::NicheLayoutEnum>]`
    (msvc-pretty-enums.rs:97) `    [+0x000] my_data          : High (0x10) [Type: msvc_pretty_enums::CStyleEnum]`
    (msvc-pretty-enums.rs:100) `e                : Tag2 [Type: enum2$<msvc_pretty_enums::NicheLayoutEnum>]`
    (msvc-pretty-enums.rs:103) `f                : Some [Type: enum2$<core::option::Option<ref$<u32> > >]`
    (msvc-pretty-enums.rs:104) `    [+0x000] __0              : 0x[...] : 0x1 [Type: unsigned int *]`
    (msvc-pretty-enums.rs:107) `g                : None [Type: enum2$<core::option::Option<ref$<u32> > >]`
    (msvc-pretty-enums.rs:110) `h                : Some [Type: enum2$<core::option::Option<u32> >]`
    (msvc-pretty-enums.rs:111) `    [+0x004] __0              : 0xc [Type: unsigned int]`
    (msvc-pretty-enums.rs:114) `i                : None [Type: enum2$<core::option::Option<u32> >]`
    (msvc-pretty-enums.rs:117) `j                : High (0x10) [Type: msvc_pretty_enums::CStyleEnum]`
    (msvc-pretty-enums.rs:120) `k                : Some [Type: enum2$<core::option::Option<alloc::string::String> >]`
    (msvc-pretty-enums.rs:121) `    [+0x000] __0              : "IAMA optional string!" [Type: alloc::string::String]`
    (msvc-pretty-enums.rs:124) `l                : Ok [Type: enum2$<core::result::Result<u32,enum2$<msvc_pretty_enums::Empty> > >]`
    (msvc-pretty-enums.rs:125) `    [+0x000] __0              : 0x2a [Type: unsigned int]`
    (msvc-pretty-enums.rs:128) ` niche128_some    : Some [Type: enum2$<core::option::Option<core::num::nonzero::NonZero<i128> > >]`
    (msvc-pretty-enums.rs:130) `    [+0x000] __0 [...] [Type: core::num::nonzero::NonZero<i128>]`
    (msvc-pretty-enums.rs:133) ` niche128_none    : None [Type: enum2$<core::option::Option<core::num::nonzero::NonZero<i128> > >]`
    (msvc-pretty-enums.rs:136) ` wrapping_niche128_untagged : X [Type: enum2$<msvc_pretty_enums::Wrapping128Niche>]`
    (msvc-pretty-enums.rs:137) `    [+0x[...]] __0              [Type: msvc_pretty_enums::Wrapping128]`
    (msvc-pretty-enums.rs:140) ` wrapping_niche128_none1 : Y [Type: enum2$<msvc_pretty_enums::Wrapping128Niche>]`
    (msvc-pretty-enums.rs:141) `    [+0x[...]] __0              [Type: msvc_pretty_enums::Wrapping128]`
    (msvc-pretty-enums.rs:144) ` wrapping_niche128_none2 : Z [Type: enum2$<msvc_pretty_enums::Wrapping128Niche>]`
    (msvc-pretty-enums.rs:145) `    [+0x[...]] __0              [Type: msvc_pretty_enums::Wrapping128]`
    (msvc-pretty-enums.rs:148) ` direct_tag_128_a,d : A [Type: enum2$<msvc_pretty_enums::DirectTag128>]`
    (msvc-pretty-enums.rs:149) `     [+0x[...]] __0              : 42 [Type: unsigned int]`
    (msvc-pretty-enums.rs:152) ` direct_tag_128_b,d : B [Type: enum2$<msvc_pretty_enums::DirectTag128>]`
    (msvc-pretty-enums.rs:153) `     [+0x[...]] __0              : 137 [Type: unsigned int]`
    (msvc-pretty-enums.rs:156) ` niche_w_fields_1_some,d : A [Type: enum2$<msvc_pretty_enums::NicheLayoutWithFields1>]`
    (msvc-pretty-enums.rs:157) `     [+0x[...]] __0              : 0x[...] : 77 [Type: unsigned char *]`
    (msvc-pretty-enums.rs:158) `     [+0x[...]] __1              : 7 [Type: unsigned int]`
    (msvc-pretty-enums.rs:161) ` niche_w_fields_1_none,d : B [Type: enum2$<msvc_pretty_enums::NicheLayoutWithFields1>]`
    (msvc-pretty-enums.rs:162) `     [+0x[...]] __0              : 99 [Type: unsigned int]`
    (msvc-pretty-enums.rs:165) ` niche_w_fields_2_some,d : A [Type: enum2$<msvc_pretty_enums::NicheLayoutWithFields2>]`
    (msvc-pretty-enums.rs:166) `     [+0x[...]] __0              : 800 [Type: core::num::nonzero::NonZero<u32>]`
    (msvc-pretty-enums.rs:167) `     [+0x[...]] __1              : 900 [Type: unsigned __int64]`
    (msvc-pretty-enums.rs:170) ` niche_w_fields_2_none,d : B [Type: enum2$<msvc_pretty_enums::NicheLayoutWithFields2>]`
    (msvc-pretty-enums.rs:171) `     [+0x[...]] __0              : 1000 [Type: unsigned __int64]`
    (msvc-pretty-enums.rs:174) ` niche_w_fields_3_some,d : A [Type: enum2$<msvc_pretty_enums::NicheLayoutWithFields3>]`
    (msvc-pretty-enums.rs:175) `     [+0x[...]] __0              : 137 [Type: unsigned char]`
    (msvc-pretty-enums.rs:176) `     [+0x[...]] __1              : true [Type: bool]`
    (msvc-pretty-enums.rs:179) ` niche_w_fields_3_niche1,d : B [Type: enum2$<msvc_pretty_enums::NicheLayoutWithFields3>]`
    (msvc-pretty-enums.rs:180) `     [+0x[...]] __0              : 12 [Type: unsigned char]`
    (msvc-pretty-enums.rs:183) ` niche_w_fields_3_niche2,d : C [Type: enum2$<msvc_pretty_enums::NicheLayoutWithFields3>]`
    (msvc-pretty-enums.rs:184) `     [+0x[...]] __0              : false [Type: bool]`
    (msvc-pretty-enums.rs:187) ` niche_w_fields_3_niche3,d : D [Type: enum2$<msvc_pretty_enums::NicheLayoutWithFields3>]`
    (msvc-pretty-enums.rs:188) `     [+0x[...]] __0              : 34 [Type: unsigned char]`
    (msvc-pretty-enums.rs:191) ` niche_w_fields_3_niche4,d : E [Type: enum2$<msvc_pretty_enums::NicheLayoutWithFields3>]`
    (msvc-pretty-enums.rs:192) `     [+0x[...]] __0              : 56 [Type: unsigned char]`
    (msvc-pretty-enums.rs:195) ` niche_w_fields_3_niche5,d : F [Type: enum2$<msvc_pretty_enums::NicheLayoutWithFields3>]`
    (msvc-pretty-enums.rs:198) ` niche_w_fields_std_result_ok,d : Ok [Type: enum2$<core::result::Result<alloc::boxed::Box<slice2$<u8>,alloc::alloc::Global>,u64> >]`
    (msvc-pretty-enums.rs:199) `    [+0x[...]] __0              [Type: alloc::boxed::Box<slice2$<u8>,alloc::alloc::Global>]`
    (msvc-pretty-enums.rs:200) `        [+0x[...]] data_ptr         : [...]`
    (msvc-pretty-enums.rs:201) `        [+0x[...]] length           : 3 [...]`
    (msvc-pretty-enums.rs:204) ` niche_w_fields_std_result_err,d : Err [Type: enum2$<core::result::Result<alloc::boxed::Box<slice2$<u8>,alloc::alloc::Global>,u64> >]`
    (msvc-pretty-enums.rs:205) `    [+0x[...]] __0              : 789 [Type: unsigned __int64]`
    (msvc-pretty-enums.rs:208) ` arbitrary_discr1,d : Abc [Type: enum2$<msvc_pretty_enums::ArbitraryDiscr>]`
    (msvc-pretty-enums.rs:209) `     [+0x[...]] __0              : 1234 [Type: unsigned int]`
    (msvc-pretty-enums.rs:212) ` arbitrary_discr2,d : Def [Type: enum2$<msvc_pretty_enums::ArbitraryDiscr>]`
    (msvc-pretty-enums.rs:213) `     [+0x[...]] __0              : 5678 [Type: unsigned int]`
the following subset of check directive(s) was found successfully:
    (msvc-pretty-enums.rs:80) `a                : Some [Type: enum2$<core::option::Option<msvc_pretty_enums::CStyleEnum> >]`
    (msvc-pretty-enums.rs:81) `    [+0x000] __0              : Low (0x2) [Type: msvc_pretty_enums::CStyleEnum]`
    (msvc-pretty-enums.rs:87) `    [+0x000] __0              : Low (0x2) [Type: msvc_pretty_enums::CStyleEnum]`
status: exit code: 0
command: PATH="C:\a\rust\rust\build\x86_64-pc-windows-msvc\stage2\lib\rustlib\x86_64-pc-windows-msvc\lib;C:\Program Files (x86)\Windows Kits\10\bin\x64;C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64;C:\a\rust\rust\build\x86_64-pc-windows-msvc\stage0-bootstrap-tools\x86_64-pc-windows-msvc\release\deps;C:\a\rust\rust\build\x86_64-pc-windows-msvc\stage0\bin;C:\Program Files\PowerShell\7;C:\a\_temp\msys64\mingw64\bin;C:\a\_temp\msys64\usr\local\bin;C:\a\_temp\msys64\usr\bin;C:\a\_temp\msys64\usr\bin;C:\a\rust\rust\ninja;C:\hostedtoolcache\windows\Python\3.12.3\x64\Scripts;C:\hostedtoolcache\windows\Python\3.12.3\x64;C:\a\rust\rust\sccache;C:\a\_temp\setup-msys2;C:\Program Files\MongoDB\Server\5.0\bin;C:\aliyun-cli;C:\vcpkg;C:\cf-cli;C:\Program Files (x86)\NSIS;C:\tools\zstd;C:\Program Files\Mercurial;C:\hostedtoolcache\windows\stack\2.15.5\x64;C:\cabal\bin;C:\ghcup\bin;C:\mingw64\bin;C:\Program Files\dotnet;C:\Program Files\MySQL\MySQL Server 5.7\bin;C:\Program Files\R\R-4.3.3\bin\x64;C:\SeleniumWebDrivers\GeckoDriver;C:\SeleniumWebDrivers\EdgeDriver;C:\SeleniumWebDrivers\ChromeDriver;C:\Program Files (x86)\sbt\bin;C:\Program Files (x86)\GitHub CLI;C:\Program Files\Git\bin;C:\Program Files (x86)\pipx_bin;C:\npm\prefix;C:\hostedtoolcache\windows\go\1.21.9\x64\bin;C:\hostedtoolcache\windows\Python\3.7.9\x64\Scripts;C:\hostedtoolcache\windows\Python\3.7.9\x64;C:\hostedtoolcache\windows\Ruby\3.0.6\x64\bin;C:\Program Files\OpenSSL\bin;C:\tools\kotlinc\bin;C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\8.0.412-8\x64\bin;C:\Program Files\ImageMagick-7.1.1-Q16-HDRI;C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin;C:\ProgramData\kind;C:\Program Files\Eclipse Foundation\jdk-8.0.302.8-hotspot\bin;C:\ProgramData\docker-compose;C:\ProgramData\Chocolatey\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\PowerShell\7;C:\Program Files\Microsoft\Web Platform Installer;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files (x86)\WiX Toolset v3.14\bin;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\130\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\160\DTS\Binn;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\ProgramData\chocolatey\lib\pulumi\tools\Pulumi\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\CMake\bin;C:\ProgramData\chocolatey\lib\maven\apache-maven-3.8.7\bin;C:\Program Files\Microsoft Service Fabric\bin\Fabric\Fabric.Code;C:\Program Files\Microsoft SDKs\Service Fabric\Tools\ServiceFabricLocalClusterManager;C:\Program Files\nodejs;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Program Files\GitHub CLI;C:\tools\php;C:\Program Files (x86)\sbt\bin;C:\Program Files\Amazon\AWSCLIV2;C:\Program Files\Amazon\SessionManagerPlugin\bin;C:\Program Files\Amazon\AWSSAMCLI\bin;C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin;C:\Program Files (x86)\Microsoft BizTalk Server;C:\Program Files\LLVM\bin;C:\Users\runneradmin\.dotnet\tools;C:\Users\runneradmin\.cargo\bin;C:\Users\runneradmin\AppData\Local\Microsoft\WindowsApps;C:\a\_temp\msys64\usr\bin\site_perl;C:\a\_temp\msys64\usr\bin\vendor_perl;C:\a\_temp\msys64\usr\bin\core_perl" "C:\\Program Files (x86)\\Windows Kits\\10\\Debuggers\\x64\\cdb.exe" "-lines" "-cf" "C:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\test\\debuginfo\\msvc-pretty-enums.cdb\\msvc-pretty-enums.debugger.script" "C:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\test\\debuginfo\\msvc-pretty-enums.cdb\\a.exe"

Microsoft (R) Windows Debugger Version 10.0.22000.832 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.


CommandLine: C:\a\rust\rust\build\x86_64-pc-windows-msvc\test\debuginfo\msvc-pretty-enums.cdb\a.exe

************* Path validation summary **************
Response                         Time (ms)     Location
Deferred                                       srv*
Symbol search path is: srv*
Executable search path is: 
ModLoad: 00007ff6`7e190000 00007ff6`7e19a000   a.exe   
ModLoad: 00007fff`5c8a0000 00007fff`5ca8e000   ntdll.dll
ModLoad: 00007fff`5c140000 00007fff`5c1f3000   C:\Windows\System32\KERNEL32.DLL
ModLoad: 00007fff`589d0000 00007fff`58c6d000   C:\Windows\System32\KERNELBASE.dll
ModLoad: 00007fff`57060000 00007fff`570ec000   C:\Windows\SYSTEM32\apphelp.dll
ModLoad: 00007fff`599c0000 00007fff`59aba000   C:\Windows\System32\ucrtbase.dll
ModLoad: 00007fff`38cc0000 00007fff`38cdd000   C:\Windows\SYSTEM32\VCRUNTIME140.dll
ModLoad: 00007fff`24f90000 00007fff`2585a000   C:\a\rust\rust\build\x86_64-pc-windows-msvc\stage2\lib\rustlib\x86_64-pc-windows-msvc\lib\std-e5be72f0c8d1d3ef.dll
ModLoad: 00007fff`5a550000 00007fff`5a5bd000   C:\Windows\System32\WS2_32.dll
ModLoad: 00007fff`58780000 00007fff`587a9000   C:\Windows\SYSTEM32\USERENV.dll
ModLoad: 00007fff`59ad0000 00007fff`59be8000   C:\Windows\System32\RPCRT4.dll
ModLoad: 00007fff`588f0000 00007fff`58913000   C:\Windows\System32\profapi.dll
ModLoad: 00007fff`59720000 00007fff`597a2000   C:\Windows\System32\bcryptprimitives.dll
(1958.9a8): Break instruction exception - code 80000003 (first chance)
ntdll!LdrpDoDebuggerBreak+0x30:
00007fff`5c9725fc cc              int     3
0:000> version
Windows 10 Version 17763 MP (8 procs) Free x64
Product: Server, suite: TerminalServer DataCenter SingleUserTS
Edition build lab: 17763.1.amd64fre.rs5_release.180914-1434
Build layer:            -> 
Build layer:            -> 
Build layer:            -> 
Machine Name:
Debug session time: Sun May  5 22:20:51.054 2024 (UTC + 0:00)
System Uptime: 0 days 0:59:49.532
Process Uptime: 0 days 0:00:00.030
  Kernel time: 0 days 0:00:00.015
  User time: 0 days 0:00:00.000
Live user mode: <Local>
Microsoft (R) Windows Debugger Version 10.0.22000.832 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.


command line: '"C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\cdb.exe" -lines -cf C:\a\rust\rust\build\x86_64-pc-windows-msvc\test\debuginfo\msvc-pretty-enums.cdb\msvc-pretty-enums.debugger.script C:\a\rust\rust\build\x86_64-pc-windows-msvc\test\debuginfo\msvc-pretty-enums.cdb\a.exe'  Debugger Process 0x1D7C 
dbgeng:  image 10.0.22000.832, 
        [path: C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\dbgeng.dll]
dbghelp: image 10.0.22000.832, 
        [path: C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\dbghelp.dll]
        DIA version: 29395
Extension DLL search Path:
    C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\WINXP;C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\winext;C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\winext\arcade;C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\pri;C:\Program Files (x86)\Windows Kits\10\Debuggers\x64;C:\Users\runneradmin\AppData\Local\Dbg\EngineExtensions;C:\Program Files (x86)\Windows Kits\10\Debuggers\x64;C:\a\rust\rust\build\x86_64-pc-windows-msvc\stage2\lib\rustlib\x86_64-pc-windows-msvc\lib;C:\Program Files (x86)\Windows Kits\10\bin\x64;C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64;C:\a\rust\rust\build\x86_64-pc-windows-msvc\stage0-bootstrap-tools\x86_64-pc-windows-msvc\release\deps;C:\a\rust\rust\build\x86_64-pc-windows-msvc\stage0\bin;C:\Program Files\PowerShell\7;C:\a\_temp\msys64\mingw64\bin;C:\a\_temp\msys64\usr\local\bin;C:\a\_temp\msys64\usr\bin;C:\a\_temp\msys64\usr\bin;C:\a\rust\rust\ninja;C:\hostedtoolcache\windows\Python\3.12.3\x64\Scripts;C:\hostedtoolcache\windows\Python\3.12.3\x64;C:\a\rust\rust\sccache;C:\a\_temp\setup-msys2;C:\Program Files\MongoDB\Server\5.0\bin;C:\aliyun-cli;C:\vcpkg;C:\cf-cli;C:\Program Files (x86)\NSIS;C:\tools\zstd;C:\Program Files\Mercurial;C:\hostedtoolcache\windows\stack\2.15.5\x64;C:\cabal\bin;C:\ghcup\bin;C:\mingw64\bin;C:\Program Files\dotnet;C:\Program Files\MySQL\MySQL Server 5.7\bin;C:\Program Files\R\R-4.3.3\bin\x64;C:\SeleniumWebDrivers\GeckoDriver;C:\SeleniumWebDrivers\EdgeDriver;C:\SeleniumWebDrivers\ChromeDriver;C:\Program Files (x86)\sbt\bin;C:\Program Files (x86)\GitHub CLI;C:\Program Files\Git\bin;C:\Program Files (x86)\pipx_bin;C:\npm\prefix;C:\hostedtoolcache\windows\go\1.21.9\x64\bin;C:\hostedtoolcache\windows\Python\3.7.9\x64\Scripts;C:\hostedtoolcache\windows\Python\3.7.9\x64;C:\hostedtoolcache\windows\Ruby\3.0.6\x64\bin;C:\Program Files\OpenSSL\bin;C:\tools\kotlinc\bin;C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\8.0.412-8\x64\bin;C:\Program Files\ImageMagick-7.1.1-Q16-HDRI;C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin;C:\ProgramData\kind;C:\Program Files\Eclipse Foundation\jdk-8.0.302.8-hotspot\bin;C:\ProgramData\docker-compose;C:\ProgramData\Chocolatey\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\PowerShell\7;C:\Program Files\Microsoft\Web Platform Installer;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files (x86)\WiX Toolset v3.14\bin;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\130\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\160\DTS\Binn;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\ProgramData\chocolatey\lib\pulumi\tools\Pulumi\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\CMake\bin;C:\ProgramData\chocolatey\lib\maven\apache-maven-3.8.7\bin;C:\Program Files\Microsoft Service Fabric\bin\Fabric\Fabric.Code;C:\Program Files\Microsoft SDKs\Service Fabric\Tools\ServiceFabricLocalClusterManager;C:\Program Files\nodejs;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Program Files\GitHub CLI;C:\tools\php;C:\Program Files (x86)\sbt\bin;C:\Program Files\Amazon\AWSCLIV2;C:\Program Files\Amazon\SessionManagerPlugin\bin;C:\Program Files\Amazon\AWSSAMCLI\bin;C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin;C:\Program Files (x86)\Microsoft BizTalk Server;C:\Program Files\LLVM\bin;C:\Users\runneradmin\.dotnet\tools;C:\Users\runneradmin\.cargo\bin;C:\Users\runneradmin\AppData\Local\Microsoft\WindowsApps;C:\a\_temp\msys64\usr\bin\site_perl;C:\a\_temp\msys64\usr\bin\vendor_perl;C:\a\_temp\msys64\usr\bin\core_perl
Extension DLL chain:
    dbghelp: image 10.0.22000.832, API 10.0.6, 
        [path: C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\dbghelp.dll]
    ext: image 10.0.22000.832, API 1.0.0, 
        [path: C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\winext\ext.dll]
    exts: image 10.0.22000.832, API 1.0.0, 
        [path: C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\WINXP\exts.dll]
    uext: image 10.0.22000.832, API 1.0.0, 
        [path: C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\winext\uext.dll]
    ntsdexts: image 10.0.22000.832, API 1.0.0, 
        [path: C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\WINXP\ntsdexts.dll]
0:000> .nvlist
Loaded NatVis Files:
    <None Loaded>
0:000> bp `msvc-pretty-enums.rs:321`
*** WARNING: Unable to verify checksum for a.exe
0:000>  g
Breakpoint 0 hit
a!msvc_pretty_enums::main+0x2f1:
00007ff6`7e193b41 e8ba000000      call    a!msvc_pretty_enums::zzz (00007ff6`7e193c00)
0:000>  dx a
a                : Some [Type: enum2$<core::option::Option<msvc_pretty_enums::CStyleEnum> >]
    [<Raw View>]     [Type: enum2$<core::option::Option<msvc_pretty_enums::CStyleEnum> >]
    [+0x000] __0              : Low (0x2) [Type: msvc_pretty_enums::CStyleEnum]
0:000>  g
ModLoad: 00007fff`58870000 00007fff`58881000   C:\Windows\System32\kernel.appcore.dll
ModLoad: 00007fff`5aa90000 00007fff`5ab2e000   C:\Windows\System32\msvcrt.dll
ntdll!NtTerminateProcess+0x14:
00007fff`5c940174 c3              ret
0:000>  dx a
Error: Unable to bind name 'a'
0:000>  dx b
Error: Unable to bind name 'b'
0:000>  dx c
Error: Unable to bind name 'c'
0:000>  dx d
Error: Unable to bind name 'd'
0:000>  dx e
Error: Unable to bind name 'e'
0:000>  dx f
Error: Unable to bind name 'f'
0:000>  dx g
Error: Unable to bind name 'g'
0:000>  dx h
Error: Unable to bind name 'h'
0:000>  dx i
Error: Unable to bind name 'i'
0:000>  dx j
Error: Unable to bind name 'j'
0:000>  dx k
Error: Unable to bind name 'k'
0:000>  dx l
Error: Unable to bind name 'l'
0:000>  dx niche128_some
Error: Unable to bind name 'niche128_some'
0:000>  dx niche128_none
Error: Unable to bind name 'niche128_none'
0:000>  dx wrapping_niche128_untagged
Error: Unable to bind name 'wrapping_niche128_untagged'
0:000>  dx wrapping_niche128_none1
Error: Unable to bind name 'wrapping_niche128_none1'
0:000>  dx wrapping_niche128_none2
Error: Unable to bind name 'wrapping_niche128_none2'
0:000>  dx direct_tag_128_a,d
Error: Unable to bind name 'direct_tag_128_a'
0:000>  dx direct_tag_128_b,d
Error: Unable to bind name 'direct_tag_128_b'
0:000>  dx niche_w_fields_1_some,d
Error: Unable to bind name 'niche_w_fields_1_some'
0:000>  dx niche_w_fields_1_none,d
Error: Unable to bind name 'niche_w_fields_1_none'
0:000>  dx niche_w_fields_2_some,d
Error: Unable to bind name 'niche_w_fields_2_some'
0:000>  dx niche_w_fields_2_none,d
Error: Unable to bind name 'niche_w_fields_2_none'
0:000>  dx niche_w_fields_3_some,d
Error: Unable to bind name 'niche_w_fields_3_some'
0:000>  dx niche_w_fields_3_niche1,d
Error: Unable to bind name 'niche_w_fields_3_niche1'
0:000>  dx niche_w_fields_3_niche2,d
Error: Unable to bind name 'niche_w_fields_3_niche2'
0:000>  dx niche_w_fields_3_niche3,d
Error: Unable to bind name 'niche_w_fields_3_niche3'
0:000>  dx niche_w_fields_3_niche4,d
Error: Unable to bind name 'niche_w_fields_3_niche4'
0:000>  dx niche_w_fields_3_niche5,d
Error: Unable to bind name 'niche_w_fields_3_niche5'
0:000>  dx -r3 niche_w_fields_std_result_ok,d
Error: Unable to bind name 'niche_w_fields_std_result_ok'
0:000>  dx -r3 niche_w_fields_std_result_err,d
Error: Unable to bind name 'niche_w_fields_std_result_err'
0:000>  dx -r2 arbitrary_discr1,d
Error: Unable to bind name 'arbitrary_discr1'
0:000>  dx -r2 arbitrary_discr2,d
Error: Unable to bind name 'arbitrary_discr2'
0:000> qq
quit:
NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\Visualizers\atlmfc.natvis'
NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\Visualizers\ObjectiveC.natvis'
NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\Visualizers\concurrency.natvis'
NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\Visualizers\cpp_rest.natvis'
NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\Visualizers\stl.natvis'
NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\Visualizers\Windows.Data.Json.natvis'
NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\Visualizers\Windows.Devices.Geolocation.natvis'
NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\Visualizers\Windows.Devices.Sensors.natvis'
NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\Visualizers\Windows.Media.natvis'
NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\Visualizers\windows.natvis'
NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\Visualizers\winrt.natvis'
stderr: none




failures:
    [debuginfo-cdb] tests\debuginfo\msvc-pretty-enums.rs

test result: FAILED. 136 passed; 1 failed; 18 ignored; 0 measured; 0 filtered out; finished in 20.57s

Some tests failed in compiletest suite=debuginfo mode=debuginfo host=x86_64-pc-windows-msvc target=x86_64-pc-windows-msvc
Build completed unsuccessfully in 0:41:01
make: *** [Makefile:101: ci-msvc-ps1] Error 1
  network time: Sun, 05 May 2024 22:20:59 GMT
##[error]Process completed with exit code 2.
Post job cleanup.
[command]"C:\Program Files\Git\bin\git.exe" version

@bors
Copy link
Contributor

bors commented May 5, 2024

💔 Test failed - checks-actions

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels May 5, 2024
@fmease fmease closed this May 5, 2024
@fmease fmease deleted the rollup-gwdj5yz branch May 5, 2024 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-meta Area: Issues & PRs about the rust-lang/rust repository itself rollup A PR which is a rollup S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants