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 8 pull requests #136673

Closed
wants to merge 48 commits into from

Conversation

matthiaskrgr
Copy link
Member

Successful merges:

Failed merges:

r? @ghost
@rustbot modify labels: rollup

Create a similar rollup

Walnut356 and others added 30 commits January 10, 2025 01:53
This is not tracked in toolstate.
This updates the toolstate maintainers to more closely match who is
still active. I am adding myself to ensure these get resolved if they
break, since otherwise it causes other problems.
This aligns the main error message a bit more with the phrasing in the
Edition Guide and provides a bit more information on the labels to
(hopefully!) aid in understanding.
Most of these are meant to test possible future improvements, but since
they cover cases the existing test suite didn't, I figure including them
now may be helpful.
WaffleLapkin and others added 11 commits February 6, 2025 23:44
We can't remove `TraitUpcasting` variant, since we need to use the index
in winnowing.
this commit makes `deref_into_dyn_supertrait` lint allow-by-default,
removes future incompatibility (we finally live in a broken world), and
changes the wording in the documentation.

previously documentation erroneously said that it lints against *usage*
of the deref impl, while it actually (since 104742) lints on the impl
itself (oooops, my oversight, should have updated it 2+ years ago...)
…treat, r=compiler-errors

Stabilize `feature(trait_upcasting)`

This feature was "done" for a while now, I think it's finally time to stabilize it! Stabilization report: rust-lang#134367 (comment).
cc reference PR: rust-lang/reference#1622.

Closes rust-lang#65991 (tracking issue), closes rust-lang#89460 (the lint is no longer future incompat).

r? compiler-errors
[Debuginfo] Add MSVC Synthetic and Summary providers to LLDB

Adds handling for `tuple$<>`, `ref$<slice$2<>`, `ref$<str$>` and `enum2$<>`.

Also fixes a bug in MSVC vec/string handling where the script was unable to determine the element's type due to LLDB ignoring template arg debug information

<details>
<summary>Sample code</summary>

```rust
pub enum Number {
    One = 57,
    Two = 99,
}

#[repr(u8)]
pub enum Container {
    First(u32),
    Second { val: u64, val2: i8 },
    Third,
}

...
    let u8_val = b'a';
    let float = 42.78000000000001;

    let tuple = (u8_val, float);

    let str_val = "eef";
    let mut string = "freef".to_owned();
    let mut_str = string.as_mut_str();
    let array: [u8; 4] = [1, 2, 3, 4];
    let ref_array = array.as_slice();
    let mut array2: [u32; 4] = [1, 2, 3, 4];
    let mut_array = array2.as_mut_slice();
    let enum_val = Number::One;
    let mut enum_val2 = Number::Two;
    let sum_val = Container::First(15);
    let sum_val_2 = Container::Second { val: 0, val2: 0 };
    let sum_val_3 = Container::Third;
    let non_zero = NonZeroU128::new(100).unwrap();
    let large_discr = NonZeroU128::new(255);
```
</details>

Before:

![image](https://github.com/user-attachments/assets/19fd0881-a4c3-4c68-b28f-769a67d95e35)

After:

![image](https://github.com/user-attachments/assets/d0479035-17ed-4584-8eb4-71d1314f8f7c)
…ulacrum

Update toolstate maintainers

This updates the toolstate maintainers to more closely match who is still active.
…r-errors

Remove some unnecessary parens in `assert!` conditions

While working on rust-lang#122661, some of these started triggering our "unnecessary parens" lints due to a change in the `assert!` desugaring. A cursory search identified a few more. Some of these have been carried from before 1.0, were a bulk rename from the previous name of `assert!` left them in that state. I went and removed as many of these unnecessary parens as possible in order to have fewer annoyances in the future if we make the lint smarter.
…fication, r=Nadrieril

Pattern Migration 2024: try to suggest eliding redundant binding modifiers

This is based on rust-lang#136475. Only the last commit is new.

This is a simpler, more restrictive alternative to rust-lang#136496, meant to partially address rust-lang#136047. If a pattern can be migrated to Rust 2024 solely by removing redundant binding modifiers, this will make that suggestion; otherwise, it uses the old suggestion of making the pattern fully explicit.

Relevant tracking issue: rust-lang#131414

`@rustbot` label A-diagnostics A-patterns A-edition-2024

r? `@Nadrieril`
…affleLapkin

Fix suggestion for `dependency_on_unit_never_type_fallback` involving closures + format args expansions

fixes rust-lang#136562

r? wafflelapkin or reassign
Remove dead code from rustc_codegen_llvm and the LLVM wrapper

First step to clean up the LLVM wrapper: remove existing dead code.

Split out of rust-lang#135502

r? `@Zalathar`
…piler-errors

replace one `.map_or(true, ...)` with `.is_none_or(...)`

Randomly found while going through some of my old branches.
@rustbot rustbot added PG-exploit-mitigations Project group: Exploit mitigations 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-libs Relevant to the library team, which will review and decide on the PR/issue. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver) rollup A PR which is a rollup labels Feb 7, 2025
@matthiaskrgr
Copy link
Member Author

@bors r+ rollup=never p=8

@bors
Copy link
Contributor

bors commented Feb 7, 2025

📌 Commit 9541ce1 has been approved by matthiaskrgr

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 Feb 7, 2025
@matthiaskrgr
Copy link
Member Author

@bors p=5

@bors
Copy link
Contributor

bors commented Feb 7, 2025

⌛ Testing commit 9541ce1 with merge 81e3b6e...

bors added a commit to rust-lang-ci/rust that referenced this pull request Feb 7, 2025
…iaskrgr

Rollup of 8 pull requests

Successful merges:

 - rust-lang#134367 (Stabilize `feature(trait_upcasting)`)
 - rust-lang#135354 ([Debuginfo] Add MSVC Synthetic and Summary providers to LLDB)
 - rust-lang#135940 (Update toolstate maintainers)
 - rust-lang#135945 (Remove some unnecessary parens in `assert!` conditions)
 - rust-lang#136577 (Pattern Migration 2024: try to suggest eliding redundant binding modifiers)
 - rust-lang#136598 (Fix suggestion for `dependency_on_unit_never_type_fallback` involving closures + format args expansions)
 - rust-lang#136653 (Remove dead code from rustc_codegen_llvm and the LLVM wrapper)
 - rust-lang#136664 (replace one `.map_or(true, ...)` with `.is_none_or(...)`)

Failed merges:

 - rust-lang#136193 (Implement pattern type ffi checks)

r? `@ghost`
`@rustbot` modify labels: rollup
@rust-log-analyzer
Copy link
Collaborator

The job aarch64-apple failed! Check out the build log: (web) (plain)

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

---- [debuginfo-lldb] tests/debuginfo/associated-types.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1500

error: check directive(s) from `/Users/runner/work/rust/rust/tests/debuginfo/associated-types.rs` not found in debugger output. errors:
    (associated-types.rs:54) `[...] { 0 = 4 1 = 5 }`
the following subset of check directive(s) was found successfully:
    (associated-types.rs:40) `(associated_types::Struct<int>) arg = { b = -1 b1 = 0 } `
    (associated-types.rs:44) `(long) inferred = 1 `
    (associated-types.rs:46) `(long) inferred = 1 `
    (associated-types.rs:50) `(long) arg = 2 `
    (associated-types.rs:58) `(int) a = 6 `
    (associated-types.rs:60) `(long) b = 7 `
    (associated-types.rs:64) `(long) a = 8 `
    (associated-types.rs:66) `(int) b = 9 `
status: exit status: 0
command: PYTHONPATH="/Applications/Xcode_15.4.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python" PYTHONUNBUFFERED="1" "/usr/bin/python3" "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/associated-types.lldb/a" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/associated-types.lldb/associated-types.debugger.script"
LLDB batch-mode script
----------------------
----------------------
Debugger commands script is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/associated-types.lldb/associated-types.debugger.script'.
Target executable is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/associated-types.lldb/a'.
Current working directory is '/Users/runner/work/rust/rust'
Creating a target for '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/associated-types.lldb/a'
settings set auto-confirm true
version
version
lldb-1500.0.404.7 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4) 
command script import /Users/runner/work/rust/rust/./src/etc/lldb_lookup.py
error: module importing failed: Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_lookup.py", line 3, in <module>
    from lldb_providers import *
  File "/Users/runner/work/rust/rust/src/etc/lldb_providers.py", line 4, in <module>
    from lldb import (
    from lldb import (
ImportError: cannot import name 'SBTypeStaticField' from 'lldb' (/Applications/Xcode_15.4.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python/lldb/__init__.py)
# Forces test-compliant formatting to all other types
# Forces test-compliant formatting to all other types
type summary add -F _ -e -x -h "^.*$" --category Rust
# Std String
type synthetic add -l lldb_lookup.StdStringSyntheticProvider -x "^(alloc::([a-z_]+::)+)String$" --category Rust
type summary add -F lldb_lookup.StdStringSummaryProvider  -e -x -h "^(alloc::([a-z_]+::)+)String$" --category Rust
# Std str
type synthetic add -l lldb_lookup.synthetic_lookup -x "^&(mut )?str$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^&(mut )?str$" --category Rust
## MSVC
type synthetic add -l lldb_lookup.MSVCStrSyntheticProvider -x "^ref(_mut)?\$<str\$>$" --category Rust
type summary add -F lldb_lookup.StdStrSummaryProvider -e -h -x "^ref(_mut)?\$<str\$>$" --category Rust
# Array
type synthetic add -l lldb_lookup.synthetic_lookup -x "^&(mut )?\\[.+\\]$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^&(mut )?\\[.+\\]$" --category Rust
# Slice
## MSVC
type synthetic add -l lldb_lookup.MSVCStdSliceSyntheticProvider -x "^ref(_mut)?\$<slice2\$<.+> >" --category Rust
type summary add -F lldb_lookup.StdSliceSummaryProvider -e -x -h "^ref(_mut)?\$<slice2\$<.+> >" --category Rust
# OsString
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::ffi::([a-z_]+::)+)OsString$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::ffi::([a-z_]+::)+)OsString$" --category Rust
# Vec
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)Vec<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)Vec<.+>$" --category Rust
# VecDeque
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)VecDeque<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)VecDeque<.+>$" --category Rust
# BTreeSet
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)BTreeSet<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)BTreeSet<.+>$" --category Rust
# BTreeMap
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)BTreeMap<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)BTreeMap<.+>$" --category Rust
# HashMap
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::collections::([a-z_]+::)+)HashMap<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::collections::([a-z_]+::)+)HashMap<.+>$" --category Rust
# HashSet
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::collections::([a-z_]+::)+)HashSet<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::collections::([a-z_]+::)+)HashSet<.+>$" --category Rust
# Rc
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)Rc<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)Rc<.+>$" --category Rust
# Arc
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)Arc<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)Arc<.+>$" --category Rust
# Cell
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)Cell<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)Cell<.+>$" --category Rust
# RefCell
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)Ref<.+>$" --category Rust
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)RefMut<.+>$" --category Rust
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)RefCell<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)Ref<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)RefMut<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)RefCell<.+>$" --category Rust
# NonZero
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)NonZero<.+>$" --category Rust
type synthetic add -l lldb_lookup.synthetic_lookup -x "^core::num::([a-z_]+::)*NonZero.+$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)NonZero<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^core::num::([a-z_]+::)*NonZero.+$" --category Rust
# PathBuf
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::([a-z_]+::)+)PathBuf$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::([a-z_]+::)+)PathBuf$" --category Rust
# Path
type synthetic add -l lldb_lookup.synthetic_lookup -x "^&(mut )?(std::([a-z_]+::)+)Path$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^&(mut )?(std::([a-z_]+::)+)Path$" --category Rust
# Enum
## MSVC
type synthetic add -l lldb_lookup.MSVCEnumSyntheticProvider -x "^enum2\$<.+>$" --category Rust
type summary add -F lldb_lookup.MSVCEnumSummaryProvider -e -x -h "^enum2\$<.+>$" --category Rust
## MSVC Variants
type synthetic add -l lldb_lookup.synthetic_lookup -x "^enum2\$<.+>::.*$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^enum2\$<.+>::.*$" --category Rust
# Tuple
type synthetic add -l lldb_lookup.synthetic_lookup -x "^\(.*\)$" --category Rust
## MSVC
type synthetic add -l lldb_lookup.MSVCTupleSyntheticProvider -x "^tuple\$<.+>$" --category Rust
type summary add -F lldb_lookup.TupleSummaryProvider -e -x -h "^tuple\$<.+>$" --category Rust
type category enable Rust
breakpoint set --file 'associated-types.rs' --line 96
DEBUG: breakpoint added, id = 1
DEBUG: breakpoint added, id = 1
Breakpoint 1: where = a`associated_types::assoc_struct::hc2c43244a419f0da + 20 at associated-types.rs:96:5, address = 0x0000000100003820 
DEBUG: registering breakpoint callback, id = 1
Error while trying to register breakpoint callback, id = 1, message = error: could not get num args: can't find callable: breakpoint_callback
breakpoint set --file 'associated-types.rs' --line 103
breakpoint set --file 'associated-types.rs' --line 103
Breakpoint 2: where = a`associated_types::assoc_local::h8d0dc3c7dfd2a363 + 112 at associated-types.rs:103:5, address = 0x00000001000038bc 
breakpoint set --file 'associated-types.rs' --line 107
Breakpoint 3: where = a`associated_types::assoc_arg::h00ad587d840b47ad + 16 at associated-types.rs:107:5, address = 0x00000001000038fc 
breakpoint set --file 'associated-types.rs' --line 115
Breakpoint 4: where = a`associated_types::assoc_tuple::h80531997177e7393 + 20 at associated-types.rs:115:5, address = 0x0000000100003988 
breakpoint set --file 'associated-types.rs' --line 122
Breakpoint 5: where = a`associated_types::assoc_enum::h9e06af55302204dd + 48 at associated-types.rs:122:13, address = 0x00000001000039e4 
breakpoint set --file 'associated-types.rs' --line 125
Breakpoint 6: where = a`associated_types::assoc_enum::h9e06af55302204dd + 76 at associated-types.rs:125:13, address = 0x0000000100003a00 
DEBUG: breakpoint added, id = 2
DEBUG: breakpoint added, id = 3
DEBUG: breakpoint added, id = 4
DEBUG: breakpoint added, id = 5
DEBUG: breakpoint added, id = 6
run
Process 34557 stopped * thread #1, name = 'main', queue = 'com.apple.main-thread', stop reason = breakpoint 1.1 frame #0: 0x0000000100003820 a`associated_types::assoc_struct::hc2c43244a419f0da(arg=Struct<i32> @ 0x000000016fdfd370) at associated-types.rs:96:5 93 } 94 95 fn assoc_struct<T: TraitWithAssocType>(arg: Struct<T>) { -> 96 zzz(); // #break ^ 97 } 98 99 fn assoc_local<T: TraitWithAssocType>(x: T) { Target 0: (a) stopped. Process 34557 launched: '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/associated-types.lldb/a' (arm64) 
DEBUG: registering breakpoint callback, id = 6
Error while trying to register breakpoint callback, id = 6, message = error: could not get num args: can't find callable: breakpoint_callback
DEBUG: registering breakpoint callback, id = 5
DEBUG: registering breakpoint callback, id = 5
Error while trying to register breakpoint callback, id = 5, message = error: could not get num args: can't find callable: breakpoint_callback
DEBUG: registering breakpoint callback, id = 4
DEBUG: registering breakpoint callback, id = 4
Error while trying to register breakpoint callback, id = 4, message = error: could not get num args: can't find callable: breakpoint_callback
DEBUG: registering breakpoint callback, id = 3
DEBUG: registering breakpoint callback, id = 3
Error while trying to register breakpoint callback, id = 3, message = error: could not get num args: can't find callable: breakpoint_callback
DEBUG: registering breakpoint callback, id = 2
DEBUG: registering breakpoint callback, id = 2
Error while trying to register breakpoint callback, id = 2, message = error: could not get num args: can't find callable: breakpoint_callback
v arg
v arg
(associated_types::Struct<int>) arg = { b = -1 b1 = 0 } 
v inferred
(long) inferred = 1 
v explicitly
(long) explicitly = 1 
(long) explicitly = 1 
continue
v arg
(long) arg = 2 
continue
v arg
((i32, i64)) arg = { __0 = 4 __1 = 5 } 
v a
(int) a = 6 
v b
(long) b = 7 
---

---- [debuginfo-lldb] tests/debuginfo/borrowed-tuple.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1500

error: check directive(s) from `/Users/runner/work/rust/rust/tests/debuginfo/borrowed-tuple.rs` not found in debugger output. errors:
    (borrowed-tuple.rs:22) `[...] { 0 = -14 1 = -19 }`
    (borrowed-tuple.rs:25) `[...] { 0 = -15 1 = -20 }`
    (borrowed-tuple.rs:28) `[...] { 0 = -17 1 = -22 }`
status: exit status: 0
command: PYTHONPATH="/Applications/Xcode_15.4.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python" PYTHONUNBUFFERED="1" "/usr/bin/python3" "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/borrowed-tuple.lldb/a" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/borrowed-tuple.lldb/borrowed-tuple.debugger.script"
LLDB batch-mode script
----------------------
----------------------
Debugger commands script is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/borrowed-tuple.lldb/borrowed-tuple.debugger.script'.
Target executable is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/borrowed-tuple.lldb/a'.
Current working directory is '/Users/runner/work/rust/rust'
Creating a target for '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/borrowed-tuple.lldb/a'
settings set auto-confirm true
version
version
lldb-1500.0.404.7 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4) 
command script import /Users/runner/work/rust/rust/./src/etc/lldb_lookup.py
error: module importing failed: Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_lookup.py", line 3, in <module>
    from lldb_providers import *
  File "/Users/runner/work/rust/rust/src/etc/lldb_providers.py", line 4, in <module>
    from lldb import (
    from lldb import (
ImportError: cannot import name 'SBTypeStaticField' from 'lldb' (/Applications/Xcode_15.4.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python/lldb/__init__.py)
# Forces test-compliant formatting to all other types
# Forces test-compliant formatting to all other types
type summary add -F _ -e -x -h "^.*$" --category Rust
# Std String
type synthetic add -l lldb_lookup.StdStringSyntheticProvider -x "^(alloc::([a-z_]+::)+)String$" --category Rust
type summary add -F lldb_lookup.StdStringSummaryProvider  -e -x -h "^(alloc::([a-z_]+::)+)String$" --category Rust
# Std str
type synthetic add -l lldb_lookup.synthetic_lookup -x "^&(mut )?str$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^&(mut )?str$" --category Rust
## MSVC
type synthetic add -l lldb_lookup.MSVCStrSyntheticProvider -x "^ref(_mut)?\$<str\$>$" --category Rust
type summary add -F lldb_lookup.StdStrSummaryProvider -e -h -x "^ref(_mut)?\$<str\$>$" --category Rust
# Array
type synthetic add -l lldb_lookup.synthetic_lookup -x "^&(mut )?\\[.+\\]$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^&(mut )?\\[.+\\]$" --category Rust
# Slice
## MSVC
type synthetic add -l lldb_lookup.MSVCStdSliceSyntheticProvider -x "^ref(_mut)?\$<slice2\$<.+> >" --category Rust
type summary add -F lldb_lookup.StdSliceSummaryProvider -e -x -h "^ref(_mut)?\$<slice2\$<.+> >" --category Rust
# OsString
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::ffi::([a-z_]+::)+)OsString$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::ffi::([a-z_]+::)+)OsString$" --category Rust
# Vec
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)Vec<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)Vec<.+>$" --category Rust
# VecDeque
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)VecDeque<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)VecDeque<.+>$" --category Rust
# BTreeSet
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)BTreeSet<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)BTreeSet<.+>$" --category Rust
# BTreeMap
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)BTreeMap<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)BTreeMap<.+>$" --category Rust
# HashMap
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::collections::([a-z_]+::)+)HashMap<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::collections::([a-z_]+::)+)HashMap<.+>$" --category Rust
# HashSet
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::collections::([a-z_]+::)+)HashSet<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::collections::([a-z_]+::)+)HashSet<.+>$" --category Rust
# Rc
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)Rc<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)Rc<.+>$" --category Rust
# Arc
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)Arc<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)Arc<.+>$" --category Rust
# Cell
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)Cell<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)Cell<.+>$" --category Rust
# RefCell
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)Ref<.+>$" --category Rust
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)RefMut<.+>$" --category Rust
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)RefCell<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)Ref<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)RefMut<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)RefCell<.+>$" --category Rust
# NonZero
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)NonZero<.+>$" --category Rust
type synthetic add -l lldb_lookup.synthetic_lookup -x "^core::num::([a-z_]+::)*NonZero.+$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)NonZero<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^core::num::([a-z_]+::)*NonZero.+$" --category Rust
# PathBuf
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::([a-z_]+::)+)PathBuf$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::([a-z_]+::)+)PathBuf$" --category Rust
# Path
type synthetic add -l lldb_lookup.synthetic_lookup -x "^&(mut )?(std::([a-z_]+::)+)Path$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^&(mut )?(std::([a-z_]+::)+)Path$" --category Rust
# Enum
## MSVC
type synthetic add -l lldb_lookup.MSVCEnumSyntheticProvider -x "^enum2\$<.+>$" --category Rust
type summary add -F lldb_lookup.MSVCEnumSummaryProvider -e -x -h "^enum2\$<.+>$" --category Rust
## MSVC Variants
type synthetic add -l lldb_lookup.synthetic_lookup -x "^enum2\$<.+>::.*$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^enum2\$<.+>::.*$" --category Rust
# Tuple
type synthetic add -l lldb_lookup.synthetic_lookup -x "^\(.*\)$" --category Rust
## MSVC
type synthetic add -l lldb_lookup.MSVCTupleSyntheticProvider -x "^tuple\$<.+>$" --category Rust
type summary add -F lldb_lookup.TupleSummaryProvider -e -x -h "^tuple\$<.+>$" --category Rust
type category enable Rust
breakpoint set --file 'borrowed-tuple.rs' --line 43
DEBUG: breakpoint added, id = 1
DEBUG: breakpoint added, id = 1
Breakpoint 1: where = a`borrowed_tuple::main::h59ef71ff973b5356 + 172 at borrowed-tuple.rs:43:5, address = 0x00000001000036e4 
DEBUG: registering breakpoint callback, id = 1
Error while trying to register breakpoint callback, id = 1, message = error: could not get num args: can't find callable: breakpoint_callback
run
run
Process 34723 stopped * thread #1, name = 'main', queue = 'com.apple.main-thread', stop reason = breakpoint 1.1 frame #0: 0x00000001000036e4 a`borrowed_tuple::main::h59ef71ff973b5356 at borrowed-tuple.rs:43:5 40 let unique_val: Box<(i16, f32)> = Box::new((-17, -22f32)); 41 let unique_val_ref: &(i16, f32) = &*unique_val; 42 -> 43 zzz(); // #break ^ 44 } 45 46 fn zzz() {()} Target 0: (a) stopped. Process 34723 launched: '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/borrowed-tuple.lldb/a' (arm64) 
v *stack_val_ref
((i16, f32)) *stack_val_ref = { __0 = -14 __1 = -19 } 
v *ref_to_unnamed
((i16, f32)) *ref_to_unnamed = { __0 = -15 __1 = -20 } 
v *unique_val_ref
((i16, f32)) *unique_val_ref = { __0 = -17 __1 = -22 } 
------------------------------------------
stderr: none



---- [debuginfo-lldb] tests/debuginfo/box.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1500

error: check directive(s) from `/Users/runner/work/rust/rust/tests/debuginfo/box.rs` not found in debugger output. errors:
    (box.rs:19) `[...] { 0 = 2 1 = 3.5 }`
the following subset of check directive(s) was found successfully:
    (box.rs:17) `DEBUG: breakpoint added, id = 1`
status: exit status: 0
command: PYTHONPATH="/Applications/Xcode_15.4.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python" PYTHONUNBUFFERED="1" "/usr/bin/python3" "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/box.lldb/a" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/box.lldb/box.debugger.script"
LLDB batch-mode script
----------------------
----------------------
Debugger commands script is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/box.lldb/box.debugger.script'.
Target executable is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/box.lldb/a'.
Current working directory is '/Users/runner/work/rust/rust'
Creating a target for '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/box.lldb/a'
settings set auto-confirm true
version
version
lldb-1500.0.404.7 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4) 
command script import /Users/runner/work/rust/rust/./src/etc/lldb_lookup.py
error: module importing failed: Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_lookup.py", line 3, in <module>
    from lldb_providers import *
  File "/Users/runner/work/rust/rust/src/etc/lldb_providers.py", line 4, in <module>
    from lldb import (
    from lldb import (
ImportError: cannot import name 'SBTypeStaticField' from 'lldb' (/Applications/Xcode_15.4.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python/lldb/__init__.py)
# Forces test-compliant formatting to all other types
# Forces test-compliant formatting to all other types
type summary add -F _ -e -x -h "^.*$" --category Rust
# Std String
type synthetic add -l lldb_lookup.StdStringSyntheticProvider -x "^(alloc::([a-z_]+::)+)String$" --category Rust
type summary add -F lldb_lookup.StdStringSummaryProvider  -e -x -h "^(alloc::([a-z_]+::)+)String$" --category Rust
# Std str
type synthetic add -l lldb_lookup.synthetic_lookup -x "^&(mut )?str$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^&(mut )?str$" --category Rust
## MSVC
type synthetic add -l lldb_lookup.MSVCStrSyntheticProvider -x "^ref(_mut)?\$<str\$>$" --category Rust
type summary add -F lldb_lookup.StdStrSummaryProvider -e -h -x "^ref(_mut)?\$<str\$>$" --category Rust
# Array
type synthetic add -l lldb_lookup.synthetic_lookup -x "^&(mut )?\\[.+\\]$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^&(mut )?\\[.+\\]$" --category Rust
# Slice
## MSVC
type synthetic add -l lldb_lookup.MSVCStdSliceSyntheticProvider -x "^ref(_mut)?\$<slice2\$<.+> >" --category Rust
type summary add -F lldb_lookup.StdSliceSummaryProvider -e -x -h "^ref(_mut)?\$<slice2\$<.+> >" --category Rust
# OsString
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::ffi::([a-z_]+::)+)OsString$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::ffi::([a-z_]+::)+)OsString$" --category Rust
# Vec
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)Vec<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)Vec<.+>$" --category Rust
# VecDeque
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)VecDeque<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)VecDeque<.+>$" --category Rust
# BTreeSet
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)BTreeSet<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)BTreeSet<.+>$" --category Rust
# BTreeMap
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)BTreeMap<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)BTreeMap<.+>$" --category Rust
# HashMap
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::collections::([a-z_]+::)+)HashMap<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::collections::([a-z_]+::)+)HashMap<.+>$" --category Rust
# HashSet
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::collections::([a-z_]+::)+)HashSet<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::collections::([a-z_]+::)+)HashSet<.+>$" --category Rust
# Rc
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)Rc<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)Rc<.+>$" --category Rust
# Arc
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)Arc<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)Arc<.+>$" --category Rust
# Cell
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)Cell<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)Cell<.+>$" --category Rust
# RefCell
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)Ref<.+>$" --category Rust
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)RefMut<.+>$" --category Rust
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)RefCell<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)Ref<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)RefMut<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)RefCell<.+>$" --category Rust
# NonZero
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)NonZero<.+>$" --category Rust
type synthetic add -l lldb_lookup.synthetic_lookup -x "^core::num::([a-z_]+::)*NonZero.+$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)NonZero<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^core::num::([a-z_]+::)*NonZero.+$" --category Rust
# PathBuf
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::([a-z_]+::)+)PathBuf$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::([a-z_]+::)+)PathBuf$" --category Rust
# Path
type synthetic add -l lldb_lookup.synthetic_lookup -x "^&(mut )?(std::([a-z_]+::)+)Path$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^&(mut )?(std::([a-z_]+::)+)Path$" --category Rust
# Enum
## MSVC
type synthetic add -l lldb_lookup.MSVCEnumSyntheticProvider -x "^enum2\$<.+>$" --category Rust
type summary add -F lldb_lookup.MSVCEnumSummaryProvider -e -x -h "^enum2\$<.+>$" --category Rust
## MSVC Variants
type synthetic add -l lldb_lookup.synthetic_lookup -x "^enum2\$<.+>::.*$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^enum2\$<.+>::.*$" --category Rust
# Tuple
type synthetic add -l lldb_lookup.synthetic_lookup -x "^\(.*\)$" --category Rust
## MSVC
type synthetic add -l lldb_lookup.MSVCTupleSyntheticProvider -x "^tuple\$<.+>$" --category Rust
type summary add -F lldb_lookup.TupleSummaryProvider -e -x -h "^tuple\$<.+>$" --category Rust
type category enable Rust
breakpoint set --file 'box.rs' --line 29
DEBUG: breakpoint added, id = 1
DEBUG: breakpoint added, id = 1
Breakpoint 1: where = a`box::main::h9b642cacdacd7e3b + 240 at box.rs:29:5, address = 0x00000001000036b8 
DEBUG: registering breakpoint callback, id = 1
Error while trying to register breakpoint callback, id = 1, message = error: could not get num args: can't find callable: breakpoint_callback
run
run
Process 34795 stopped * thread #1, name = 'main', queue = 'com.apple.main-thread', stop reason = breakpoint 1.1 frame #0: 0x00000001000036b8 a`box::main::h9b642cacdacd7e3b at box.rs:29:5 26 let a = Box::new(1); 27 let b = Box::new((2, 3.5f64)); 28 -> 29 zzz(); // #break ^ 30 } 31 32 fn zzz() { () } Target 0: (a) stopped. Process 34795 launched: '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/box.lldb/a' (arm64) 
v *a
(int) *a = 1 
v *b
((i32, f64)) *b = { __0 = 2 __1 = 3.5 } 
------------------------------------------
stderr: none



---- [debuginfo-lldb] tests/debuginfo/by-value-self-argument-in-trait-impl.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1500

error: check directive(s) from `/Users/runner/work/rust/rust/tests/debuginfo/by-value-self-argument-in-trait-impl.rs` not found in debugger output. errors:
    (by-value-self-argument-in-trait-impl.rs:33) `[...] { 0 = 4444.5 1 = 5555 2 = 6666 3 = 7777.5 }`
the following subset of check directive(s) was found successfully:
    (by-value-self-argument-in-trait-impl.rs:25) `(long) self = 1111 `
    (by-value-self-argument-in-trait-impl.rs:29) `(by_value_self_argument_in_trait_impl::Struct) self = { x = 2222 y = 3333 } `
status: exit status: 0
command: PYTHONPATH="/Applications/Xcode_15.4.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python" PYTHONUNBUFFERED="1" "/usr/bin/python3" "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/by-value-self-argument-in-trait-impl.lldb/a" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/by-value-self-argument-in-trait-impl.lldb/by-value-self-argument-in-trait-impl.debugger.script"
LLDB batch-mode script
----------------------
----------------------
Debugger commands script is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/by-value-self-argument-in-trait-impl.lldb/by-value-self-argument-in-trait-impl.debugger.script'.
Target executable is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/by-value-self-argument-in-trait-impl.lldb/a'.
Current working directory is '/Users/runner/work/rust/rust'
Creating a target for '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/by-value-self-argument-in-trait-impl.lldb/a'
settings set auto-confirm true
version
version
lldb-1500.0.404.7 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4) 
command script import /Users/runner/work/rust/rust/./src/etc/lldb_lookup.py
error: module importing failed: Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_lookup.py", line 3, in <module>
    from lldb_providers import *
  File "/Users/runner/work/rust/rust/src/etc/lldb_providers.py", line 4, in <module>
    from lldb import (
    from lldb import (
ImportError: cannot import name 'SBTypeStaticField' from 'lldb' (/Applications/Xcode_15.4.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python/lldb/__init__.py)
# Forces test-compliant formatting to all other types
# Forces test-compliant formatting to all other types
type summary add -F _ -e -x -h "^.*$" --category Rust
# Std String
type synthetic add -l lldb_lookup.StdStringSyntheticProvider -x "^(alloc::([a-z_]+::)+)String$" --category Rust
type summary add -F lldb_lookup.StdStringSummaryProvider  -e -x -h "^(alloc::([a-z_]+::)+)String$" --category Rust
# Std str
type synthetic add -l lldb_lookup.synthetic_lookup -x "^&(mut )?str$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^&(mut )?str$" --category Rust
## MSVC
type synthetic add -l lldb_lookup.MSVCStrSyntheticProvider -x "^ref(_mut)?\$<str\$>$" --category Rust
type summary add -F lldb_lookup.StdStrSummaryProvider -e -h -x "^ref(_mut)?\$<str\$>$" --category Rust
# Array
type synthetic add -l lldb_lookup.synthetic_lookup -x "^&(mut )?\\[.+\\]$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^&(mut )?\\[.+\\]$" --category Rust
# Slice
## MSVC
type synthetic add -l lldb_lookup.MSVCStdSliceSyntheticProvider -x "^ref(_mut)?\$<slice2\$<.+> >" --category Rust
type summary add -F lldb_lookup.StdSliceSummaryProvider -e -x -h "^ref(_mut)?\$<slice2\$<.+> >" --category Rust
# OsString
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::ffi::([a-z_]+::)+)OsString$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::ffi::([a-z_]+::)+)OsString$" --category Rust
# Vec
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)Vec<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)Vec<.+>$" --category Rust
# VecDeque
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)VecDeque<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)VecDeque<.+>$" --category Rust
# BTreeSet
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)BTreeSet<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)BTreeSet<.+>$" --category Rust
# BTreeMap
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)BTreeMap<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)BTreeMap<.+>$" --category Rust
# HashMap
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::collections::([a-z_]+::)+)HashMap<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::collections::([a-z_]+::)+)HashMap<.+>$" --category Rust
# HashSet
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::collections::([a-z_]+::)+)HashSet<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::collections::([a-z_]+::)+)HashSet<.+>$" --category Rust
# Rc
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)Rc<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)Rc<.+>$" --category Rust
# Arc
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)Arc<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)Arc<.+>$" --category Rust
# Cell
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)Cell<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)Cell<.+>$" --category Rust
# RefCell
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)Ref<.+>$" --category Rust
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)RefMut<.+>$" --category Rust
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)RefCell<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)Ref<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)RefMut<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)RefCell<.+>$" --category Rust
# NonZero
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)NonZero<.+>$" --category Rust
type synthetic add -l lldb_lookup.synthetic_lookup -x "^core::num::([a-z_]+::)*NonZero.+$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)NonZero<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^core::num::([a-z_]+::)*NonZero.+$" --category Rust
# PathBuf
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::([a-z_]+::)+)PathBuf$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::([a-z_]+::)+)PathBuf$" --category Rust
# Path
type synthetic add -l lldb_lookup.synthetic_lookup -x "^&(mut )?(std::([a-z_]+::)+)Path$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^&(mut )?(std::([a-z_]+::)+)Path$" --category Rust
# Enum
## MSVC
type synthetic add -l lldb_lookup.MSVCEnumSyntheticProvider -x "^enum2\$<.+>$" --category Rust
type summary add -F lldb_lookup.MSVCEnumSummaryProvider -e -x -h "^enum2\$<.+>$" --category Rust
## MSVC Variants
type synthetic add -l lldb_lookup.synthetic_lookup -x "^enum2\$<.+>::.*$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^enum2\$<.+>::.*$" --category Rust
# Tuple
type synthetic add -l lldb_lookup.synthetic_lookup -x "^\(.*\)$" --category Rust
## MSVC
type synthetic add -l lldb_lookup.MSVCTupleSyntheticProvider -x "^tuple\$<.+>$" --category Rust
type summary add -F lldb_lookup.TupleSummaryProvider -e -x -h "^tuple\$<.+>$" --category Rust
type category enable Rust

breakpoint set --file 'by-value-self-argument-in-trait-impl.rs' --line 45
DEBUG: breakpoint added, id = 1
Breakpoint 1: where = a`_$LT$isize$u20$as$u20$by_value_self_argument_in_trait_impl..Trait$GT$::method::h5689a465d45db454 + 20 at by-value-self-argument-in-trait-impl.rs:45:9, address = 0x0000000100003b84 
DEBUG: registering breakpoint callback, id = 1
Error while trying to register breakpoint callback, id = 1, message = error: could not get num args: can't find callable: breakpoint_callback

breakpoint set --file 'by-value-self-argument-in-trait-impl.rs' --line 57
Breakpoint 2: where = a`_$LT$by_value_self_argument_in_trait_impl..Struct$u20$as$u20$by_value_self_argument_in_trait_impl..Trait$GT$::method::h95e7cf566c6b9a8e + 28 at by-value-self-argument-in-trait-impl.rs:57:9, address = 0x0000000100003bb4 
breakpoint set --file 'by-value-self-argument-in-trait-impl.rs' --line 64
Breakpoint 3: where = a`_$LT$$LP$f64$C$isize$C$isize$C$f64$RP$$u20$as$u20$by_value_self_argument_in_trait_impl..Trait$GT$::method::h83932964b6115ced + 20 at by-value-self-argument-in-trait-impl.rs:64:9, address = 0x0000000100003be0 
DEBUG: breakpoint added, id = 2
DEBUG: breakpoint added, id = 3
run
Process 34826 stopped * thread #1, name = 'main', queue = 'com.apple.main-thread', stop reason = breakpoint 1.1 frame #0: 0x0000000100003b84 a`_$LT$isize$u20$as$u20$by_value_self_argument_in_trait_impl..Trait$GT$::method::h5689a465d45db454(self=1111) at by-value-self-argument-in-trait-impl.rs:45:9 42 43 impl Trait for isize { 44 fn method(self) -> isize { -> 45 zzz(); // #break ^ 46 self 47 } 48 } Target 0: (a) stopped. Process 34826 launched: '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/by-value-self-argument-in-trait-impl.lldb/a' (arm64) 
DEBUG: registering breakpoint callback, id = 3
Error while trying to register breakpoint callback, id = 3, message = error: could not get num args: can't find callable: breakpoint_callback
DEBUG: registering breakpoint callback, id = 2
DEBUG: registering breakpoint callback, id = 2
Error while trying to register breakpoint callback, id = 2, message = error: could not get num args: can't find callable: breakpoint_callback
v self
v self
(long) self = 1111 
v self
v self
(by_value_self_argument_in_trait_impl::Struct) self = { x = 2222 y = 3333 } 
v self
v self
((f64, isize, isize, f64)) self = { __0 = 4444.5 __1 = 5555 __2 = 6666 __3 = 7777.5 } 
quit
------------------------------------------
stderr: none



---- [debuginfo-lldb] tests/debuginfo/c-style-enum-in-composite.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1500

error: check directive(s) from `/Users/runner/work/rust/rust/tests/debuginfo/c-style-enum-in-composite.rs` not found in debugger output. errors:
    (c-style-enum-in-composite.rs:33) `[...] { 0 = 0 1 = OneHundred }`
    (c-style-enum-in-composite.rs:36) `[...] { 0 = { 0 = 1 1 = OneThousand } 1 = 2 }`
    (c-style-enum-in-composite.rs:39) `[...] { 0 = OneThousand 1 = MountainView 2 = OneMillion 3 = Vienna }`
    (c-style-enum-in-composite.rs:51) `[...] { 0 = { a = OneHundred b = Vienna } 1 = 9 }`
the following subset of check directive(s) was found successfully:
    (c-style-enum-in-composite.rs:42) `(c_style_enum_in_composite::PaddedStruct) padded_struct = { a = 3 b = OneMillion c = 4 d = Toronto e = 5 } `
    (c-style-enum-in-composite.rs:45) `(c_style_enum_in_composite::PackedStruct) packed_struct = { a = 6 b = OneHundred c = 7 d = Vienna e = 8 } `
    (c-style-enum-in-composite.rs:48) `(c_style_enum_in_composite::NonPaddedStruct) non_padded_struct = { a = OneMillion b = MountainView c = OneThousand d = Toronto } `
status: exit status: 0
command: PYTHONPATH="/Applications/Xcode_15.4.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python" PYTHONUNBUFFERED="1" "/usr/bin/python3" "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/c-style-enum-in-composite.lldb/a" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/c-style-enum-in-composite.lldb/c-style-enum-in-composite.debugger.script"
LLDB batch-mode script
----------------------
----------------------
Debugger commands script is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/c-style-enum-in-composite.lldb/c-style-enum-in-composite.debugger.script'.
Target executable is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/c-style-enum-in-composite.lldb/a'.
Current working directory is '/Users/runner/work/rust/rust'
Creating a target for '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/c-style-enum-in-composite.lldb/a'
settings set auto-confirm true
version
version
lldb-1500.0.404.7 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4) 
command script import /Users/runner/work/rust/rust/./src/etc/lldb_lookup.py
error: module importing failed: Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_lookup.py", line 3, in <module>
    from lldb_providers import *
  File "/Users/runner/work/rust/rust/src/etc/lldb_providers.py", line 4, in <module>
    from lldb import (
    from lldb import (
ImportError: cannot import name 'SBTypeStaticField' from 'lldb' (/Applications/Xcode_15.4.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python/lldb/__init__.py)
# Forces test-compliant formatting to all other types
# Forces test-compliant formatting to all other types
type summary add -F _ -e -x -h "^.*$" --category Rust
# Std String
type synthetic add -l lldb_lookup.StdStringSyntheticProvider -x "^(alloc::([a-z_]+::)+)String$" --category Rust
type summary add -F lldb_lookup.StdStringSummaryProvider  -e -x -h "^(alloc::([a-z_]+::)+)String$" --category Rust
# Std str
type synthetic add -l lldb_lookup.synthetic_lookup -x "^&(mut )?str$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^&(mut )?str$" --category Rust
## MSVC
type synthetic add -l lldb_lookup.MSVCStrSyntheticProvider -x "^ref(_mut)?\$<str\$>$" --category Rust
type summary add -F lldb_lookup.StdStrSummaryProvider -e -h -x "^ref(_mut)?\$<str\$>$" --category Rust
# Array
type synthetic add -l lldb_lookup.synthetic_lookup -x "^&(mut )?\\[.+\\]$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^&(mut )?\\[.+\\]$" --category Rust
# Slice
## MSVC
type synthetic add -l lldb_lookup.MSVCStdSliceSyntheticProvider -x "^ref(_mut)?\$<slice2\$<.+> >" --category Rust
type summary add -F lldb_lookup.StdSliceSummaryProvider -e -x -h "^ref(_mut)?\$<slice2\$<.+> >" --category Rust
# OsString
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::ffi::([a-z_]+::)+)OsString$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::ffi::([a-z_]+::)+)OsString$" --category Rust
# Vec
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)Vec<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)Vec<.+>$" --category Rust
# VecDeque
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)VecDeque<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)VecDeque<.+>$" --category Rust
# BTreeSet
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)BTreeSet<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)BTreeSet<.+>$" --category Rust
# BTreeMap
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)BTreeMap<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)BTreeMap<.+>$" --category Rust
# HashMap
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::collections::([a-z_]+::)+)HashMap<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::collections::([a-z_]+::)+)HashMap<.+>$" --category Rust
# HashSet
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::collections::([a-z_]+::)+)HashSet<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::collections::([a-z_]+::)+)HashSet<.+>$" --category Rust
# Rc
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)Rc<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)Rc<.+>$" --category Rust
# Arc
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)Arc<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)Arc<.+>$" --category Rust
# Cell
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)Cell<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)Cell<.+>$" --category Rust
# RefCell
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)Ref<.+>$" --category Rust
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)RefMut<.+>$" --category Rust
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)RefCell<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)Ref<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)RefMut<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)RefCell<.+>$" --category Rust
# NonZero
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)NonZero<.+>$" --category Rust
type synthetic add -l lldb_lookup.synthetic_lookup -x "^core::num::([a-z_]+::)*NonZero.+$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)NonZero<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^core::num::([a-z_]+::)*NonZero.+$" --category Rust
# PathBuf
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::([a-z_]+::)+)PathBuf$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::([a-z_]+::)+)PathBuf$" --category Rust
# Path
type synthetic add -l lldb_lookup.synthetic_lookup -x "^&(mut )?(std::([a-z_]+::)+)Path$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^&(mut )?(std::([a-z_]+::)+)Path$" --category Rust
# Enum
---
continue
v a
(long) a = 5 
v b
((u32, u32)) b = { __0 = 6 __1 = 7 } 
v h
(short) h = 8 
v i
v i
(destructured_fn_argument::Struct) i = { a = 9 b = 10 } 
v j
(short) j = 11 
v k
v k
(long) k = 12 
(int) l = 13 
continue
v m
(long) m = 14 
---
(long) p = 19 
v q
(int) q = 20 
v r
(destructured_fn_argument::Struct) r = { a = 21 b = 22 } 
v s
(int) s = 24 
v t
(long) t = 23 
---
(int) z = 30 
v ae
(long) ae = 31 
v oe
(int) oe = 32 
v ue
(unsigned short) ue = 33 
v aa
v aa
((isize, isize)) aa = { __0 = 34 __1 = 35 } 
v bb
v bb
((isize, isize)) bb = { __0 = 36 __1 = 37 } 
v cc
(long) cc = 38 
continue
v dd
v dd
((isize, isize, isize)) dd = { __0 = 40 __1 = 41 __2 = 42 } 
v *ee
v *ee
((isize, isize, isize)) *ee = { __0 = 43 __1 = 44 __2 = 45 } 
v *ff
v *ff
(long) *ff = 46 
v gg
((isize, isize)) gg = { __0 = 47 __1 = 48 } 
v *hh
v *hh
(int) *hh = 50 
v ii
(int) ii = 51 
continue
v *jj
v *jj
(int) *jj = 52 
v kk
v kk
(double) kk = 53 
(long) ll = 54 
continue
v mm
v mm
(double) mm = 55 
v *nn
(long) *nn = 56 
v oo
(long) oo = 57 
v pp
v pp
(long) pp = 58 
v qq
(long) qq = 59 
v rr
(long) rr = 60 
v ss
v ss
(long) ss = 61 
(long) tt = 62 
continue
quit
------------------------------------------
------------------------------------------
stderr: none


---- [debuginfo-lldb] tests/debuginfo/destructured-for-loop-variable.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1500

error: check directive(s) from `/Users/runner/work/rust/rust/tests/debuginfo/destructured-for-loop-variable.rs` not found in debugger output. errors:
    (destructured-for-loop-variable.rs:139) `[...] { 0 = 34903493 1 = 232323 }`
the following subset of check directive(s) was found successfully:
    (destructured-for-loop-variable.rs:80) `(short) x = 400 `
    (destructured-for-loop-variable.rs:82) `(float) y = 401.5 `
    (destructured-for-loop-variable.rs:84) `(bool) z = true `
    (destructured-for-loop-variable.rs:89) `(char) _i8 = 0x6f `
    (destructured-for-loop-variable.rs:91) `(unsigned char) _u8 = 0x70 `
    (destructured-for-loop-variable.rs:93) `(short) _i16 = -113 `
    (destructured-for-loop-variable.rs:95) `(unsigned short) _u16 = 114 `
    (destructured-for-loop-variable.rs:97) `(int) _i32 = -115 `
    (destructured-for-loop-variable.rs:99) `(unsigned int) _u32 = 116 `
    (destructured-for-loop-variable.rs:101) `(long) _i64 = -117 `
    (destructured-for-loop-variable.rs:103) `(unsigned long) _u64 = 118 `
    (destructured-for-loop-variable.rs:105) `(float) _f32 = 119.5 `
    (destructured-for-loop-variable.rs:107) `(double) _f64 = 120.5 `
    (destructured-for-loop-variable.rs:112) `(int) v1 = 80000 `
    (destructured-for-loop-variable.rs:114) `(short) x1 = 8000 `
    (destructured-for-loop-variable.rs:116) `(float) *y1 = 80001.5 `
    (destructured-for-loop-variable.rs:118) `(bool) z1 = false `
    (destructured-for-loop-variable.rs:120) `(short) *x2 = -30000 `
    (destructured-for-loop-variable.rs:122) `(float) y2 = -300001.5 `
    (destructured-for-loop-variable.rs:124) `(bool) *z2 = true `
    (destructured-for-loop-variable.rs:126) `(double) v2 = 854237.5 `
    (destructured-for-loop-variable.rs:131) `(int) i = 1234 `
    (destructured-for-loop-variable.rs:135) `(destructured_for_loop_variable::Struct) simple_struct_ident = { x = 3537 y = 35437.5 z = true } `
status: exit status: 0
command: PYTHONPATH="/Applications/Xcode_15.4.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python" PYTHONUNBUFFERED="1" "/usr/bin/python3" "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/destructured-for-loop-variable.lldb/a" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/destructured-for-loop-variable.lldb/destructured-for-loop-variable.debugger.script"
LLDB batch-mode script
----------------------
----------------------
Debugger commands script is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/destructured-for-loop-variable.lldb/destructured-for-loop-variable.debugger.script'.
Target executable is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/destructured-for-loop-variable.lldb/a'.
Current working directory is '/Users/runner/work/rust/rust'
Creating a target for '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/destructured-for-loop-variable.lldb/a'
settings set auto-confirm true
version
version
lldb-1500.0.404.7 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4) 
command script import /Users/runner/work/rust/rust/./src/etc/lldb_lookup.py
error: module importing failed: Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_lookup.py", line 3, in <module>
    from lldb_providers import *
  File "/Users/runner/work/rust/rust/src/etc/lldb_providers.py", line 4, in <module>
    from lldb import (
    from lldb import (
ImportError: cannot import name 'SBTypeStaticField' from 'lldb' (/Applications/Xcode_15.4.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python/lldb/__init__.py)
# Forces test-compliant formatting to all other types
# Forces test-compliant formatting to all other types
type summary add -F _ -e -x -h "^.*$" --category Rust
# Std String
type synthetic add -l lldb_lookup.StdStringSyntheticProvider -x "^(alloc::([a-z_]+::)+)String$" --category Rust
type summary add -F lldb_lookup.StdStringSummaryProvider  -e -x -h "^(alloc::([a-z_]+::)+)String$" --category Rust
# Std str
type synthetic add -l lldb_lookup.synthetic_lookup -x "^&(mut )?str$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^&(mut )?str$" --category Rust
## MSVC
type synthetic add -l lldb_lookup.MSVCStrSyntheticProvider -x "^ref(_mut)?\$<str\$>$" --category Rust
type summary add -F lldb_lookup.StdStrSummaryProvider -e -h -x "^ref(_mut)?\$<str\$>$" --category Rust
# Array
type synthetic add -l lldb_lookup.synthetic_lookup -x "^&(mut )?\\[.+\\]$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^&(mut )?\\[.+\\]$" --category Rust
# Slice
## MSVC
type synthetic add -l lldb_lookup.MSVCStdSliceSyntheticProvider -x "^ref(_mut)?\$<slice2\$<.+> >" --category Rust
type summary add -F lldb_lookup.StdSliceSummaryProvider -e -x -h "^ref(_mut)?\$<slice2\$<.+> >" --category Rust
# OsString
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::ffi::([a-z_]+::)+)OsString$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::ffi::([a-z_]+::)+)OsString$" --category Rust
# Vec
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)Vec<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)Vec<.+>$" --category Rust
# VecDeque
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)VecDeque<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)VecDeque<.+>$" --category Rust
# BTreeSet
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)BTreeSet<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)BTreeSet<.+>$" --category Rust
# BTreeMap
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)BTreeMap<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)BTreeMap<.+>$" --category Rust
# HashMap
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::collections::([a-z_]+::)+)HashMap<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::collections::([a-z_]+::)+)HashMap<.+>$" --category Rust
# HashSet
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::collections::([a-z_]+::)+)HashSet<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::collections::([a-z_]+::)+)HashSet<.+>$" --category Rust
# Rc
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)Rc<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)Rc<.+>$" --category Rust
# Arc
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)Arc<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)Arc<.+>$" --category Rust
# Cell
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)Cell<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)Cell<.+>$" --category Rust
# RefCell
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)Ref<.+>$" --category Rust
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)RefMut<.+>$" --category Rust
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)RefCell<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)Ref<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)RefMut<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)RefCell<.+>$" --category Rust
# NonZero
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)NonZero<.+>$" --category Rust
type synthetic add -l lldb_lookup.synthetic_lookup -x "^core::num::([a-z_]+::)*NonZero.+$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)NonZero<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^core::num::([a-z_]+::)*NonZero.+$" --category Rust
# PathBuf
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::([a-z_]+::)+)PathBuf$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::([a-z_]+::)+)PathBuf$" --category Rust
# Path
type synthetic add -l lldb_lookup.synthetic_lookup -x "^&(mut )?(std::([a-z_]+::)+)Path$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^&(mut )?(std::([a-z_]+::)+)Path$" --category Rust
# Enum
## MSVC
type synthetic add -l lldb_lookup.MSVCEnumSyntheticProvider -x "^enum2\$<.+>$" --category Rust
type summary add -F lldb_lookup.MSVCEnumSummaryProvider -e -x -h "^enum2\$<.+>$" --category Rust
## MSVC Variants
type synthetic add -l lldb_lookup.synthetic_lookup -x "^enum2\$<.+>::.*$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^enum2\$<.+>::.*$" --category Rust
# Tuple
type synthetic add -l lldb_lookup.synthetic_lookup -x "^\(.*\)$" --category Rust
## MSVC
type synthetic add -l lldb_lookup.MSVCTupleSyntheticProvider -x "^tuple\$<.+>$" --category Rust
type summary add -F lldb_lookup.TupleSummaryProvider -e -x -h "^tuple\$<.+>$" --category Rust
type category enable Rust
breakpoint set --file 'destructured-for-loop-variable.rs' --line 162
DEBUG: breakpoint added, id = 1
DEBUG: breakpoint added, id = 1
Breakpoint 1: where = a`destructured_for_loop_variable::main::h84fc996bc68bbc98 + 292 at destructured-for-loop-variable.rs:162:9, address = 0x00000001000026e8 
DEBUG: registering breakpoint callback, id = 1
Error while trying to register breakpoint callback, id = 1, message = error: could not get num args: can't find callable: breakpoint_callback
breakpoint set --file 'destructured-for-loop-variable.rs' --line 169
breakpoint set --file 'destructured-for-loop-variable.rs' --line 169
Breakpoint 2: where = a`destructured_for_loop_variable::main::h84fc996bc68bbc98 + 660 at destructured-for-loop-variable.rs:169:9, address = 0x0000000100002858 
breakpoint set --file 'destructured-for-loop-variable.rs' --line 190
Breakpoint 3: where = a`destructured_for_loop_variable::main::h84fc996bc68bbc98 + 1708 at destructured-for-loop-variable.rs:190:9, address = 0x0000000100002c70 
breakpoint set --file 'destructured-for-loop-variable.rs' --line 194
Breakpoint 4: where = a`destructured_for_loop_variable::main::h84fc996bc68bbc98 + 1084 at destructured-for-loop-variable.rs:194:9, address = 0x0000000100002a00 
breakpoint set --file 'destructured-for-loop-variable.rs' --line 203
Breakpoint 5: where = a`destructured_for_loop_variable::main::h84fc996bc68bbc98 + 1368 at destructured-for-loop-variable.rs:203:7, address = 0x0000000100002b1c 
breakpoint set --file 'destructured-for-loop-variable.rs' --line 207
Breakpoint 6: where = a`destructured_for_loop_variable::main::h84fc996bc68bbc98 + 1620 at destructured-for-loop-variable.rs:207:7, address = 0x0000000100002c18 
type format add --format hex char
type format add --format hex 'unsigned char'
DEBUG: breakpoint added, id = 2
DEBUG: breakpoint added, id = 3
DEBUG: breakpoint added, id = 4
DEBUG: breakpoint added, id = 5
DEBUG: breakpoint added, id = 6
run
Process 35258 stopped * thread #1, name = 'main', queue = 'com.apple.main-thread', stop reason = breakpoint 1.1 frame #0: 0x00000001000026e8 a`destructured_for_loop_variable::main::h84fc996bc68bbc98 at destructured-for-loop-variable.rs:162:9 159 }; 160 161 for &Struct { x, y, z } in &[s] { -> 162 zzz(); // #break ^ 163 } 164 165 let tuple: (i8, u8, i16, u16, i32, u32, i64, u64, f32, f64) = Target 0: (a) stopped. Process 35258 launched: '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/destructured-for-loop-variable.lldb/a' (arm64) 
DEBUG: registering breakpoint callback, id = 6
Error while trying to register breakpoint callback, id = 6, message = error: could not get num args: can't find callable: breakpoint_callback
DEBUG: registering breakpoint callback, id = 5
DEBUG: registering breakpoint callback, id = 5
Error while trying to register breakpoint callback, id = 5, message = error: could not get num args: can't find callable: breakpoint_callback
DEBUG: registering breakpoint callback, id = 4
DEBUG: registering breakpoint callback, id = 4
Error while trying to register breakpoint callback, id = 4, message = error: could not get num args: can't find callable: breakpoint_callback
DEBUG: registering breakpoint callback, id = 3
DEBUG: registering breakpoint callback, id = 3
Error while trying to register breakpoint callback, id = 3, message = error: could not get num args: can't find callable: breakpoint_callback
DEBUG: registering breakpoint callback, id = 2
DEBUG: registering breakpoint callback, id = 2
Error while trying to register breakpoint callback, id = 2, message = error: could not get num args: can't find callable: breakpoint_callback
v x
(short) x = 400 
v y
v y
(float) y = 401.5 
(bool) z = true 
continue
v _i8
v _i8
(char) _i8 = 0x6f 
v _u8
(unsigned char) _u8 = 0x70 
v _i16
(short) _i16 = -113 
v _u16
(unsigned short) _u16 = 114 
v _i32
(int) _i32 = -115 
v _u32
(unsigned int) _u32 = 116 
v _i64
(long) _i64 = -117 
v _u64
(unsigned long) _u64 = 118 
v _f32
(float) _f32 = 119.5 
v _f64
(double) _f64 = 120.5 
v v1
(int) v1 = 80000 
v x1
(short) x1 = 8000 
(short) x1 = 8000 
v *y1
(float) *y1 = 80001.5 
(bool) z1 = false 
v *x2
v *x2
(short) *x2 = -30000 
v y2
(float) y2 = -300001.5 
v *z2
(bool) *z2 = true 
v v2
(double) v2 = 854237.5 
v i
(int) i = 1234 
continue
v simple_struct_ident
v simple_struct_ident
(destructured_for_loop_variable::Struct) simple_struct_ident = { x = 3537 y = 35437.5 z = true } 
v simple_tuple_ident
v simple_tuple_ident
((u32, i64)) simple_tuple_ident = { __0 = 34903493 __1 = 232323 } 
quit
------------------------------------------
stderr: none



---- [debuginfo-lldb] tests/debuginfo/destructured-local.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1500

error: check directive(s) from `/Users/runner/work/rust/rust/tests/debuginfo/destructured-local.rs` not found in debugger output. errors:
    (destructured-local.rs:137) `[...] { 0 = 6 1 = 7 }`
    (destructured-local.rs:191) `[...] { 0 = 34 1 = 35 }`
    (destructured-local.rs:194) `[...] { 0 = 36 1 = 37 }`
    (destructured-local.rs:200) `[...] { 0 = 40 1 = 41 2 = 42 }`
    (destructured-local.rs:203) `[...] { 0 = 43 1 = 44 2 = 45 }`
    (destructured-local.rs:209) `[...] { 0 = 47 1 = 48 }`
the following subset of check directive(s) was found successfully:
    (destructured-local.rs:123) `DEBUG: breakpoint added, id = 1`
    (destructured-local.rs:125) `(bool) b = false `
    (destructured-local.rs:128) `(long) c = 2 `
    (destructured-local.rs:130) `(unsigned short) d = 3 `
    (destructured-local.rs:132) `(unsigned short) e = 4 `
    (destructured-local.rs:135) `(long) f = 5 `
    (destructured-local.rs:140) `(short) h = 8 `
    (destructured-local.rs:142) `(destructured_local::Struct) i = { a = 9 b = 10 } `
    (destructured-local.rs:144) `(short) j = 11 `
    (destructured-local.rs:147) `(long) k = 12 `
    (destructured-local.rs:149) `(int) l = 13 `
    (destructured-local.rs:152) `(int) m = 14 `
    (destructured-local.rs:154) `(int) n = 16 `
    (destructured-local.rs:157) `(int) o = 18 `
    (destructured-local.rs:160) `(long) p = 19 `
    (destructured-local.rs:162) `(int) q = 20 `
    (destructured-local.rs:164) `(destructured_local::Struct) r = { a = 21 b = 22 } `
    (destructured-local.rs:167) `(int) s = 24 `
    (destructured-local.rs:169) `(long) t = 23 `
    (destructured-local.rs:172) `(int) u = 25 `
    (destructured-local.rs:174) `(int) v = 26 `
    (destructured-local.rs:176) `(int) w = 27 `
    (destructured-local.rs:178) `(int) x = 28 `
    (destructured-local.rs:180) `(long) y = 29 `
    (destructured-local.rs:182) `(int) z = 30 `
    (destructured-local.rs:184) `(long) ae = 31 `
    (destructured-local.rs:186) `(int) oe = 32 `
    (destructured-local.rs:188) `(int) ue = 33 `
    (destructured-local.rs:197) `(int) cc = 38 `
    (destructured-local.rs:206) `(int) *ff = 46 `
    (destructured-local.rs:212) `(int) *hh = 50 `
    (destructured-local.rs:215) `(int) ii = 51 `
    (destructured-local.rs:218) `(int) *jj = 52 `
    (destructured-local.rs:221) `(double) kk = 53 `
    (destructured-local.rs:224) `(long) ll = 54 `
    (destructured-local.rs:227) `(double) mm = 55 `
    (destructured-local.rs:230) `(long) *nn = 56 `
status: exit status: 0
command: PYTHONPATH="/Applications/Xcode_15.4.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python" PYTHONUNBUFFERED="1" "/usr/bin/python3" "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/destructured-local.lldb/a" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/destructured-local.lldb/destructured-local.debugger.script"
LLDB batch-mode script
----------------------
----------------------
Debugger commands script is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/destructured-local.lldb/destructured-local.debugger.script'.
Target executable is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/destructured-local.lldb/a'.
Current working directory is '/Users/runner/work/rust/rust'
Creating a target for '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/destructured-local.lldb/a'
settings set auto-confirm true
version
version
lldb-1500.0.404.7 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4) 
command script import /Users/runner/work/rust/rust/./src/etc/lldb_lookup.py
error: module importing failed: Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_lookup.py", line 3, in <module>
    from lldb_providers import *
  File "/Users/runner/work/rust/rust/src/etc/lldb_providers.py", line 4, in <module>
    from lldb import (
    from lldb import (
ImportError: cannot import name 'SBTypeStaticField' from 'lldb' (/Applications/Xcode_15.4.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python/lldb/__init__.py)
# Forces test-compliant formatting to all other types
# Forces test-compliant formatting to all other types
type summary add -F _ -e -x -h "^.*$" --category Rust
# Std String
type synthetic add -l lldb_lookup.StdStringSyntheticProvider -x "^(alloc::([a-z_]+::)+)String$" --category Rust
type summary add -F lldb_lookup.StdStringSummaryProvider  -e -x -h "^(alloc::([a-z_]+::)+)String$" --category Rust
# Std str
type synthetic add -l lldb_lookup.synthetic_lookup -x "^&(mut )?str$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^&(mut )?str$" --category Rust
## MSVC
type synthetic add -l lldb_lookup.MSVCStrSyntheticProvider -x "^ref(_mut)?\$<str\$>$" --category Rust
type summary add -F lldb_lookup.StdStrSummaryProvider -e -h -x "^ref(_mut)?\$<str\$>$" --category Rust
# Array
type synthetic add -l lldb_lookup.synthetic_lookup -x "^&(mut )?\\[.+\\]$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^&(mut )?\\[.+\\]$" --category Rust
# Slice
## MSVC
type synthetic add -l lldb_lookup.MSVCStdSliceSyntheticProvider -x "^ref(_mut)?\$<slice2\$<.+> >" --category Rust
type summary add -F lldb_lookup.StdSliceSummaryProvider -e -x -h "^ref(_mut)?\$<slice2\$<.+> >" --category Rust
# OsString
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::ffi::([a-z_]+::)+)OsString$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::ffi::([a-z_]+::)+)OsString$" --category Rust
# Vec
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)Vec<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)Vec<.+>$" --category Rust
# VecDeque
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)VecDeque<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)VecDeque<.+>$" --category Rust
# BTreeSet
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)BTreeSet<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)BTreeSet<.+>$" --category Rust
# BTreeMap
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)BTreeMap<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)BTreeMap<.+>$" --category Rust
# HashMap
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::collections::([a-z_]+::)+)HashMap<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::collections::([a-z_]+::)+)HashMap<.+>$" --category Rust
# HashSet
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::collections::([a-z_]+::)+)HashSet<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::collections::([a-z_]+::)+)HashSet<.+>$" --category Rust
# Rc
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)Rc<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)Rc<.+>$" --category Rust
# Arc
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)Arc<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)Arc<.+>$" --category Rust
# Cell
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)Cell<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)Cell<.+>$" --category Rust
# RefCell
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)Ref<.+>$" --category Rust
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)RefMut<.+>$" --category Rust
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)RefCell<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)Ref<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)RefMut<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)RefCell<.+>$" --category Rust
# NonZero
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)NonZero<.+>$" --category Rust
type synthetic add -l lldb_lookup.synthetic_lookup -x "^core::num::([a-z_]+::)*NonZero.+$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)NonZero<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^core::num::([a-z_]+::)*NonZero.+$" --category Rust
# PathBuf
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::([a-z_]+::)+)PathBuf$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::([a-z_]+::)+)PathBuf$" --category Rust
# Path
type synthetic add -l lldb_lookup.synthetic_lookup -x "^&(mut )?(std::([a-z_]+::)+)Path$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^&(mut )?(std::([a-z_]+::)+)Path$" --category Rust
# Enum
## MSVC
type synthetic add -l lldb_lookup.MSVCEnumSyntheticProvider -x "^enum2\$<.+>$" --category Rust
type summary add -F lldb_lookup.MSVCEnumSummaryProvider -e -x -h "^enum2\$<.+>$" --category Rust
## MSVC Variants
type synthetic add -l lldb_lookup.synthetic_lookup -x "^enum2\$<.+>::.*$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^enum2\$<.+>::.*$" --category Rust
# Tuple
type synthetic add -l lldb_lookup.synthetic_lookup -x "^\(.*\)$" --category Rust
## MSVC
type synthetic add -l lldb_lookup.MSVCTupleSyntheticProvider -x "^tuple\$<.+>$" --category Rust
type summary add -F lldb_lookup.TupleSummaryProvider -e -x -h "^tuple\$<.+>$" --category Rust
type category enable Rust
breakpoint set --file 'destructured-local.rs' --line 317
DEBUG: breakpoint added, id = 1
DEBUG: breakpoint added, id = 1
Breakpoint 1: where = a`destructured_local::main::h24611466ff6244ca + 988 at destructured-local.rs:317:5, address = 0x00000001000036b8 
DEBUG: registering breakpoint callback, id = 1
Error while trying to register breakpoint callback, id = 1, message = error: could not get num args: can't find callable: breakpoint_callback
run
run
Process 35263 stopped * thread #1, name = 'main', queue = 'com.apple.main-thread', stop reason = breakpoint 1.1 frame #0: 0x00000001000036b8 a`destructured_local::main::h24611466ff6244ca at destructured-local.rs:317:5 314 // tuple struct with ref binding 315 let &TupleStruct(mm, ref nn) = &TupleStruct(55.0, 56); 316 -> 317 zzz(); // #break ^ 318 } 319 320 fn zzz() { () } Target 0: (a) stopped. Process 35263 launched: '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/destructured-local.lldb/a' (arm64) 
(long) a = 1 
v b
(bool) b = false 
v c
v c
(long) c = 2 
v d
(unsigned short) d = 3 
(unsigned short) e = 4 
v f
(long) f = 5 
v g
v g
((u32, u32)) g = { __0 = 6 __1 = 7 } 
(short) h = 8 
v i
v i
(destructured_local::Struct) i = { a = 9 b = 10 } 
v j
(short) j = 11 
v k
(long) k = 12 
(int) l = 13 
v m
(int) m = 14 
v n
---
(long) p = 19 
v q
(int) q = 20 
v r
(destructured_local::Struct) r = { a = 21 b = 22 } 
(int) s = 24 
v t
(long) t = 23 
v u
v u
(int) u = 25 
v v
(int) v = 26 
v w
(int) w = 27 
(int) x = 28 
v y
(long) y = 29 
v z
v z
(int) z = 30 
v ae
(long) ae = 31 
v oe
(int) oe = 32 
v ue
(int) ue = 33 
v aa
((i32, i32)) aa = { __0 = 34 __1 = 35 } 
v bb
((i32, i32)) bb = { __0 = 36 __1 = 37 } 
(int) cc = 38 
v dd
v dd
((i32, i32, i32)) dd = { __0 = 40 __1 = 41 __2 = 42 } 
v *ee
((i32, i32, i32)) *ee = { __0 = 43 __1 = 44 __2 = 45 } 
v *ff
(int) *ff = 46 
v gg
((i32, i32)) gg = { __0 = 47 __1 = 48 } 
v *hh
(int) *hh = 50 
(int) ii = 51 
v *jj
v *jj
(int) *jj = 52 
v kk
(double) kk = 53 
(long) ll = 54 
v mm
v mm
(double) mm = 55 
v *nn
(long) *nn = 56 
------------------------------------------
stderr: none



---- [debuginfo-lldb] tests/debuginfo/empty-string.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1500

error: check directive(s) from `/Users/runner/work/rust/rust/tests/debuginfo/empty-string.rs` not found in debugger output. errors:
    (empty-string.rs:20) `[...] empty_string = "" { vec = size=0 }`
    (empty-string.rs:23) `[...] empty_str = ""`
status: exit status: 0
command: PYTHONPATH="/Applications/Xcode_15.4.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python" PYTHONUNBUFFERED="1" "/usr/bin/python3" "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/empty-string.lldb/a" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/empty-string.lldb/empty-string.debugger.script"
LLDB batch-mode script
----------------------
----------------------
Debugger commands script is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/empty-string.lldb/empty-string.debugger.script'.
Target executable is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/empty-string.lldb/a'.
Creating a target for '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/empty-string.lldb/a'
settings set auto-confirm true

version
version
lldb-1500.0.404.7 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4) 
command script import /Users/runner/work/rust/rust/./src/etc/lldb_lookup.py
error: module importing failed: Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_lookup.py", line 3, in <module>
    from lldb_providers import *
  File "/Users/runner/work/rust/rust/src/etc/lldb_providers.py", line 4, in <module>
    from lldb import (
    from lldb import (
ImportError: cannot import name 'SBTypeStaticField' from 'lldb' (/Applications/Xcode_15.4.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python/lldb/__init__.py)
# Forces test-compliant formatting to all other types
# Forces test-compliant formatting to all other types
type summary add -F _ -e -x -h "^.*$" --category Rust
# Std String
type synthetic add -l lldb_lookup.StdStringSyntheticProvider -x "^(alloc::([a-z_]+::)+)String$" --category Rust
type summary add -F lldb_lookup.StdStringSummaryProvider  -e -x -h "^(alloc::([a-z_]+::)+)String$" --category Rust
# Std str
type synthetic add -l lldb_lookup.synthetic_lookup -x "^&(mut )?str$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^&(mut )?str$" --category Rust
## MSVC
type synthetic add -l lldb_lookup.MSVCStrSyntheticProvider -x "^ref(_mut)?\$<str\$>$" --category Rust
type summary add -F lldb_lookup.StdStrSummaryProvider -e -h -x "^ref(_mut)?\$<str\$>$" --category Rust
# Array
type synthetic add -l lldb_lookup.synthetic_lookup -x "^&(mut )?\\[.+\\]$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^&(mut )?\\[.+\\]$" --category Rust
# Slice
## MSVC
type synthetic add -l lldb_lookup.MSVCStdSliceSyntheticProvider -x "^ref(_mut)?\$<slice2\$<.+> >" --category Rust
type summary add -F lldb_lookup.StdSliceSummaryProvider -e -x -h "^ref(_mut)?\$<slice2\$<.+> >" --category Rust
# OsString
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::ffi::([a-z_]+::)+)OsString$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::ffi::([a-z_]+::)+)OsString$" --category Rust
# Vec
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)Vec<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)Vec<.+>$" --category Rust
# VecDeque
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)VecDeque<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)VecDeque<.+>$" --category Rust
# BTreeSet
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)BTreeSet<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)BTreeSet<.+>$" --category Rust
# BTreeMap
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)BTreeMap<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)BTreeMap<.+>$" --category Rust
# HashMap
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::collections::([a-z_]+::)+)HashMap<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::collections::([a-z_]+::)+)HashMap<.+>$" --category Rust
# HashSet
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::collections::([a-z_]+::)+)HashSet<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::collections::([a-z_]+::)+)HashSet<.+>$" --category Rust
# Rc
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)Rc<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)Rc<.+>$" --category Rust
# Arc
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)Arc<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)Arc<.+>$" --category Rust
# Cell
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)Cell<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)Cell<.+>$" --category Rust
# RefCell
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)Ref<.+>$" --category Rust
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)RefMut<.+>$" --category Rust
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)RefCell<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)Ref<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)RefMut<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)RefCell<.+>$" --category Rust
# NonZero
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)NonZero<.+>$" --category Rust
type synthetic add -l lldb_lookup.synthetic_lookup -x "^core::num::([a-z_]+::)*NonZero.+$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)NonZero<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^core::num::([a-z_]+::)*NonZero.+$" --category Rust
# PathBuf
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::([a-z_]+::)+)PathBuf$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::([a-z_]+::)+)PathBuf$" --category Rust
# Path
type synthetic add -l lldb_lookup.synthetic_lookup -x "^&(mut )?(std::([a-z_]+::)+)Path$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^&(mut )?(std::([a-z_]+::)+)Path$" --category Rust
# Enum
## MSVC
type synthetic add -l lldb_lookup.MSVCEnumSyntheticProvider -x "^enum2\$<.+>$" --category Rust
type summary add -F lldb_lookup.MSVCEnumSummaryProvider -e -x -h "^enum2\$<.+>$" --category Rust
## MSVC Variants
type synthetic add -l lldb_lookup.synthetic_lookup -x "^enum2\$<.+>::.*$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^enum2\$<.+>::.*$" --category Rust
# Tuple
type synthetic add -l lldb_lookup.synthetic_lookup -x "^\(.*\)$" --category Rust
## MSVC
type synthetic add -l lldb_lookup.MSVCTupleSyntheticProvider -x "^tuple\$<.+>$" --category Rust
type summary add -F lldb_lookup.TupleSummaryProvider -e -x -h "^tuple\$<.+>$" --category Rust
type category enable Rust

breakpoint set --file 'empty-string.rs' --line 30
DEBUG: breakpoint added, id = 1
Breakpoint 1: where = a`empty_string::main::hb12394ca79276acd + 32 at empty-string.rs:30:5, address = 0x0000000100003b6c 
DEBUG: registering breakpoint callback, id = 1
Error while trying to register breakpoint callback, id = 1, message = error: could not get num args: can't find callable: breakpoint_callback
run
run
Process 35351 stopped * thread #1, name = 'main', queue = 'com.apple.main-thread', stop reason = breakpoint 1.1 frame #0: 0x0000000100003b6c a`empty_string::main::hb12394ca79276acd at empty-string.rs:30:5 27 28 let empty_str = ""; 29 -> 30 zzz(); // #break ^ 31 } 32 33 fn zzz() {} Target 0: (a) stopped. Process 35351 launched: '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/empty-string.lldb/a' (arm64) 
fr v empty_string
(alloc::string::String) empty_string = { vec = { buf = { inner = { ptr = { pointer = { pointer = 0x0000000000000001{...} } _marker = } cap = { __0 = 0 } alloc = } _marker = } len = 0 } } *** Some of the displayed variables have a greater depth of members than the debugger will show by default. To increase the limit, use the --depth option to frame variable, or raise the limit by changing the target.max-children-depth setting. 
fr v empty_str
(&str) empty_str = { data_ptr = 0x0000000000000001 length = 0 } 
------------------------------------------
stderr: none



---- [debuginfo-lldb] tests/debuginfo/generic-method-on-generic-struct.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1500

error: check directive(s) from `/Users/runner/work/rust/rust/tests/debuginfo/generic-method-on-generic-struct.rs` not found in debugger output. errors:
    (generic-method-on-generic-struct.rs:59) `[...] { x = { 0 = 8888 1 = -8888 } }`
    (generic-method-on-generic-struct.rs:68) `[...] { x = { 0 = 8888 1 = -8888 } }`
the following subset of check directive(s) was found successfully:
    (generic-method-on-generic-struct.rs:61) `(long) arg1 = -1 `
    (generic-method-on-generic-struct.rs:63) `(unsigned short) arg2 = 2 `
    (generic-method-on-generic-struct.rs:70) `(long) arg1 = -3 `
    (generic-method-on-generic-struct.rs:72) `(short) arg2 = -4 `
    (generic-method-on-generic-struct.rs:77) `(generic_method_on_generic_struct::Struct<double>) *self = { x = 1234.5 } `
    (generic-method-on-generic-struct.rs:79) `(long) arg1 = -5 `
    (generic-method-on-generic-struct.rs:81) `(int) arg2 = -6 `
    (generic-method-on-generic-struct.rs:86) `(generic_method_on_generic_struct::Struct<double>) self = { x = 1234.5 } `
    (generic-method-on-generic-struct.rs:88) `(long) arg1 = -7 `
    (generic-method-on-generic-struct.rs:90) `(long) arg2 = -8 `
    (generic-method-on-generic-struct.rs:95) `(generic_method_on_generic_struct::Struct<double>) *self = { x = 1234.5 } `
    (generic-method-on-generic-struct.rs:97) `(long) arg1 = -9 `
    (generic-method-on-generic-struct.rs:99) `(float) arg2 = -10.5 `
status: exit status: 0
command: PYTHONPATH="/Applications/Xcode_15.4.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python" PYTHONUNBUFFERED="1" "/usr/bin/python3" "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/generic-method-on-generic-struct.lldb/a" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/generic-method-on-generic-struct.lldb/generic-method-on-generic-struct.debugger.script"
LLDB batch-mode script
----------------------
----------------------
Debugger commands script is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/generic-method-on-generic-struct.lldb/generic-method-on-generic-struct.debugger.script'.
Target executable is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/generic-method-on-generic-struct.lldb/a'.
Current working directory is '/Users/runner/work/rust/rust'
Creating a target for '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/generic-method-on-generic-struct.lldb/a'
settings set auto-confirm true
version
version
lldb-1500.0.404.7 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4) 
command script import /Users/runner/work/rust/rust/./src/etc/lldb_lookup.py
error: module importing failed: Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_lookup.py", line 3, in <module>
    from lldb_providers import *
  File "/Users/runner/work/rust/rust/src/etc/lldb_providers.py", line 4, in <module>
    from lldb import (
    from lldb import (
ImportError: cannot import name 'SBTypeStaticField' from 'lldb' (/Applications/Xcode_15.4.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python/lldb/__init__.py)
# Forces test-compliant formatting to all other types
# Forces test-compliant formatting to all other types
type summary add -F _ -e -x -h "^.*$" --category Rust
# Std String
type synthetic add -l lldb_lookup.StdStringSyntheticProvider -x "^(alloc::([a-z_]+::)+)String$" --category Rust
type summary add -F lldb_lookup.StdStringSummaryProvider  -e -x -h "^(alloc::([a-z_]+::)+)String$" --category Rust
# Std str
type synthetic add -l lldb_lookup.synthetic_lookup -x "^&(mut )?str$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^&(mut )?str$" --category Rust
## MSVC
type synthetic add -l lldb_lookup.MSVCStrSyntheticProvider -x "^ref(_mut)?\$<str\$>$" --category Rust
type summary add -F lldb_lookup.StdStrSummaryProvider -e -h -x "^ref(_mut)?\$<str\$>$" --category Rust
# Array
type synthetic add -l lldb_lookup.synthetic_lookup -x "^&(mut )?\\[.+\\]$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^&(mut )?\\[.+\\]$" --category Rust
# Slice
## MSVC
type synthetic add -l lldb_lookup.MSVCStdSliceSyntheticProvider -x "^ref(_mut)?\$<slice2\$<.+> >" --category Rust
type summary add -F lldb_lookup.StdSliceSummaryProvider -e -x -h "^ref(_mut)?\$<slice2\$<.+> >" --category Rust
# OsString
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::ffi::([a-z_]+::)+)OsString$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::ffi::([a-z_]+::)+)OsString$" --category Rust
# Vec
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)Vec<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)Vec<.+>$" --category Rust
# VecDeque
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)VecDeque<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)VecDeque<.+>$" --category Rust
# BTreeSet
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)BTreeSet<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)BTreeSet<.+>$" --category Rust
# BTreeMap
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)BTreeMap<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)BTreeMap<.+>$" --category Rust
# HashMap
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::collections::([a-z_]+::)+)HashMap<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::collections::([a-z_]+::)+)HashMap<.+>$" --category Rust
# HashSet
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::collections::([a-z_]+::)+)HashSet<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::collections::([a-z_]+::)+)HashSet<.+>$" --category Rust
# Rc
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)Rc<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)Rc<.+>$" --category Rust
# Arc
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)Arc<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)Arc<.+>$" --category Rust
# Cell
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)Cell<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)Cell<.+>$" --category Rust
# RefCell
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)Ref<.+>$" --category Rust
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)RefMut<.+>$" --category Rust
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)RefCell<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)Ref<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)RefMut<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)RefCell<.+>$" --category Rust
# NonZero
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)NonZero<.+>$" --category Rust
type synthetic add -l lldb_lookup.synthetic_lookup -x "^core::num::([a-z_]+::)*NonZero.+$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)NonZero<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^core::num::([a-z_]+::)*NonZero.+$" --category Rust
# PathBuf
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::([a-z_]+::)+)PathBuf$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::([a-z_]+::)+)PathBuf$" --category Rust
# Path
type synthetic add -l lldb_lookup.synthetic_lookup -x "^&(mut )?(std::([a-z_]+::)+)Path$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^&(mut )?(std::([a-z_]+::)+)Path$" --category Rust
# Enum
## MSVC
type synthetic add -l lldb_lookup.MSVCEnumSyntheticProvider -x "^enum2\$<.+>$" --category Rust
type summary add -F lldb_lookup.MSVCEnumSummaryProvider -e -x -h "^enum2\$<.+>$" --category Rust
## MSVC Variants
type synthetic add -l lldb_lookup.synthetic_lookup -x "^enum2\$<.+>::.*$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^enum2\$<.+>::.*$" --category Rust
# Tuple
type synthetic add -l lldb_lookup.synthetic_lookup -x "^\(.*\)$" --category Rust
## MSVC
type synthetic add -l lldb_lookup.MSVCTupleSyntheticProvider -x "^tuple\$<.+>$" --category Rust
type summary add -F lldb_lookup.TupleSummaryProvider -e -x -h "^tuple\$<.+>$" --category Rust
type category enable Rust
breakpoint set --file 'generic-method-on-generic-struct.rs' --line 113
DEBUG: breakpoint added, id = 1
Breakpoint 1: 2 locations. 
DEBUG: registering breakpoint callback, id = 1
DEBUG: registering breakpoint callback, id = 1
Error while trying to register breakpoint callback, id = 1, message = error: could not get num args: can't find callable: breakpoint_callback
breakpoint set --file 'generic-method-on-generic-struct.rs' --line 118
DEBUG: breakpoint added, id = 2
Breakpoint 2: 2 locations. 
DEBUG: registering breakpoint callback, id = 2
DEBUG: registering breakpoint callback, id = 2
Error while trying to register breakpoint callback, id = 2, message = error: could not get num args: can't find callable: breakpoint_callback
breakpoint set --file 'generic-method-on-generic-struct.rs' --line 123
DEBUG: breakpoint added, id = 3
DEBUG: breakpoint added, id = 3
Breakpoint 3: where = a`generic_method_on_generic_struct::Struct$LT$T1$GT$::self_owned::h572281fbc1ad0416 + 28 at generic-method-on-generic-struct.rs:123:9, address = 0x0000000100003368 
run
Process 35567 stopped * thread #1, name = 'main', queue = 'com.apple.main-thread', stop reason = breakpoint 1.2 frame #0: 0x0000000100003270 a`generic_method_on_generic_struct::Struct$LT$T1$GT$::self_by_ref::hacf0f20e46b6a4dc(self=0x000000016fdfd370, arg1=-1, arg2=2) at generic-method-on-generic-struct.rs:113:9 110 impl<T1> Struct<T1> { 111 112 fn self_by_ref<T2>(&self, arg1: isize, arg2: T2) -> isize { -> 113 zzz(); // #break ^ 114 arg1 115 } 116 Target 0: (a) stopped. Process 35567 launched: '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/generic-method-on-generic-struct.lldb/a' (arm64) 
DEBUG: registering breakpoint callback, id = 3
Error while trying to register breakpoint callback, id = 3, message = error: could not get num args: can't find callable: breakpoint_callback
v *self
v *self
(generic_method_on_generic_struct::Struct<(u32, i32)>) *self = { x = { __0 = 8888 __1 = -8888 } } 
v arg1
(long) arg1 = -1 
v arg2
(unsigned short) arg2 = 2 
v self
v self
(generic_method_on_generic_struct::Struct<(u32, i32)>) self = { x = { __0 = 8888 __1 = -8888 } } 
v arg1
(long) arg1 = -3 
v arg2
(short) arg2 = -4 
v *self
v *self
(generic_method_on_generic_struct::Struct<double>) *self = { x = 1234.5 } 
v arg1
(long) arg1 = -5 
v arg2
(int) arg2 = -6 
v self
v self
(generic_method_on_generic_struct::Struct<double>) self = { x = 1234.5 } 
v arg1
(long) arg1 = -7 
v arg2
(long) arg2 = -8 
v *self
v *self
(generic_method_on_generic_struct::Struct<double>) *self = { x = 1234.5 } 
v arg1
(long) arg1 = -9 
v arg2
(float) arg2 = -10.5 
quit
------------------------------------------
stderr: none



---- [debuginfo-lldb] tests/debuginfo/issue-22656.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1500

error: check directive(s) from `/Users/runner/work/rust/rust/tests/debuginfo/issue-22656.rs` not found in debugger output. errors:
    (issue-22656.rs:13) `[...] size=3 { [0] = 1 [1] = 2 [2] = 3 }`
the following subset of check directive(s) was found successfully:
    (issue-22656.rs:15) `(issue_22656::StructWithZeroSizedField) zs = { x = y = 123 z = w = 456 } `
status: exit status: 0
command: PYTHONPATH="/Applications/Xcode_15.4.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python" PYTHONUNBUFFERED="1" "/usr/bin/python3" "/Users/runner/work/rust/rust/src/etc/lldb_batchmode.py" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/issue-22656.lldb/a" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/issue-22656.lldb/issue-22656.debugger.script"
LLDB batch-mode script
----------------------
----------------------
Debugger commands script is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/issue-22656.lldb/issue-22656.debugger.script'.
Target executable is '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/issue-22656.lldb/a'.
Current working directory is '/Users/runner/work/rust/rust'
Creating a target for '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/issue-22656.lldb/a'
settings set auto-confirm true
version
version
lldb-1500.0.404.7 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4) 
command script import /Users/runner/work/rust/rust/./src/etc/lldb_lookup.py
error: module importing failed: Traceback (most recent call last):
  File "/Users/runner/work/rust/rust/src/etc/lldb_lookup.py", line 3, in <module>
    from lldb_providers import *
  File "/Users/runner/work/rust/rust/src/etc/lldb_providers.py", line 4, in <module>
    from lldb import (
    from lldb import (
ImportError: cannot import name 'SBTypeStaticField' from 'lldb' (/Applications/Xcode_15.4.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python/lldb/__init__.py)
# Forces test-compliant formatting to all other types
# Forces test-compliant formatting to all other types
type summary add -F _ -e -x -h "^.*$" --category Rust
# Std String
type synthetic add -l lldb_lookup.StdStringSyntheticProvider -x "^(alloc::([a-z_]+::)+)String$" --category Rust
type summary add -F lldb_lookup.StdStringSummaryProvider  -e -x -h "^(alloc::([a-z_]+::)+)String$" --category Rust
# Std str
type synthetic add -l lldb_lookup.synthetic_lookup -x "^&(mut )?str$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^&(mut )?str$" --category Rust
## MSVC
type synthetic add -l lldb_lookup.MSVCStrSyntheticProvider -x "^ref(_mut)?\$<str\$>$" --category Rust
type summary add -F lldb_lookup.StdStrSummaryProvider -e -h -x "^ref(_mut)?\$<str\$>$" --category Rust
# Array
type synthetic add -l lldb_lookup.synthetic_lookup -x "^&(mut )?\\[.+\\]$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^&(mut )?\\[.+\\]$" --category Rust
# Slice
## MSVC
type synthetic add -l lldb_lookup.MSVCStdSliceSyntheticProvider -x "^ref(_mut)?\$<slice2\$<.+> >" --category Rust
type summary add -F lldb_lookup.StdSliceSummaryProvider -e -x -h "^ref(_mut)?\$<slice2\$<.+> >" --category Rust
# OsString
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::ffi::([a-z_]+::)+)OsString$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::ffi::([a-z_]+::)+)OsString$" --category Rust
# Vec
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)Vec<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)Vec<.+>$" --category Rust
# VecDeque
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)VecDeque<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)VecDeque<.+>$" --category Rust
# BTreeSet
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)BTreeSet<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)BTreeSet<.+>$" --category Rust
# BTreeMap
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)BTreeMap<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)BTreeMap<.+>$" --category Rust
# HashMap
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::collections::([a-z_]+::)+)HashMap<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::collections::([a-z_]+::)+)HashMap<.+>$" --category Rust
# HashSet
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::collections::([a-z_]+::)+)HashSet<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::collections::([a-z_]+::)+)HashSet<.+>$" --category Rust
# Rc
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)Rc<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)Rc<.+>$" --category Rust
# Arc
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(alloc::([a-z_]+::)+)Arc<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(alloc::([a-z_]+::)+)Arc<.+>$" --category Rust
# Cell
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)Cell<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)Cell<.+>$" --category Rust
# RefCell
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)Ref<.+>$" --category Rust
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)RefMut<.+>$" --category Rust
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)RefCell<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)Ref<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)RefMut<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)RefCell<.+>$" --category Rust
# NonZero
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(core::([a-z_]+::)+)NonZero<.+>$" --category Rust
type synthetic add -l lldb_lookup.synthetic_lookup -x "^core::num::([a-z_]+::)*NonZero.+$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(core::([a-z_]+::)+)NonZero<.+>$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^core::num::([a-z_]+::)*NonZero.+$" --category Rust
# PathBuf
type synthetic add -l lldb_lookup.synthetic_lookup -x "^(std::([a-z_]+::)+)PathBuf$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^(std::([a-z_]+::)+)PathBuf$" --category Rust
# Path
type synthetic add -l lldb_lookup.synthetic_lookup -x "^&(mut )?(std::([a-z_]+::)+)Path$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^&(mut )?(std::([a-z_]+::)+)Path$" --category Rust
# Enum
## MSVC
type synthetic add -l lldb_lookup.MSVCEnumSyntheticProvider -x "^enum2\$<.+>$" --category Rust
type summary add -F lldb_lookup.MSVCEnumSummaryProvider -e -x -h "^enum2\$<.+>$" --category Rust
## MSVC Variants
type synthetic add -l lldb_lookup.synthetic_lookup -x "^enum2\$<.+>::.*$" --category Rust
type summary add -F lldb_lookup.summary_lookup  -e -x -h "^enum2\$<.+>::.*$" --category Rust
# Tuple
type synthetic add -l lldb_lookup.synthetic_lookup -x "^\(.*\)$" --category Rust
## MSVC
type synthetic add -l lldb_lookup.MSVCTupleSyntheticProvider -x "^tuple\$<.+>$" --category Rust
type summary add -F lldb_lookup.TupleSummaryProvider -e -x -h "^tuple\$<.+>$" --category Rust
type category enable Rust
breakpoint set --file 'issue-22656.rs' --line 41
breakpoint set --file 'issue-22656.rs' --line 41
Breakpoint 1: where = a`issue_22656::main::hf51cf3baf9387675 + 156 at issue-22656.rs:41:5, address = 0x0000000100003634 
DEBUG: breakpoint added, id = 1
run
Process 35966 stopped * thread #1, name = 'main', queue = 'com.apple.main-thread', stop reason = breakpoint 1.1 frame #0: 0x0000000100003634 a`issue_22656::main::hf51cf3baf9387675 at issue-22656.rs:41:5 38 w: 456 39 }; 40 -> 41 zzz(); // #break ^ 42 } 43 44 fn zzz() { () } Target 0: (a) stopped. Process 35966 launched: '/Users/runner/work/rust/rust/build/aarch64-apple-darwin/test/debuginfo/issue-22656.lldb/a' (arm64) 
DEBUG: registering breakpoint callback, id = 1
Error while trying to register breakpoint callback, id = 1, message = error: could not get num args: can't find callable: breakpoint_callback
v v
v v
(alloc::vec::Vec<int, alloc::alloc::Global>) v = { buf = { inner = { ptr = { pointer = { pointer = 0x0000600003fd4000 } _marker = } cap = { __0 = 3 } alloc = } _marker = } len = 3 } 
v zs
(issue_22656::StructWithZeroSizedField) zs = { x = y = 123 z = w = 456 } 
------------------------------------------
stderr: none



---- [debuginfo-lldb] tests/debuginfo/method-on-generic-struct.rs stdout ----
NOTE: compiletest thinks it is using LLDB version 1500

error: check directive(s) from `/Users/runner/work/rust/rust/tests/debuginfo/method-on-generic-struct.rs` not found in debugger output. errors:
    (method-on-generic-struct.rs:59) `[...]Struct<(u32, i32)>) *self = { x = { 0 = 8888 1 = -8888 } }`
    (method-on-generic-struct.rs:68) `[...]Struct<(u32, i32)>) self = { x = { 0 = 8888 1 = -8888 } }`
the following subset of check directive(s) was found successfully:

@bors
Copy link
Contributor

bors commented Feb 7, 2025

💔 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 Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PG-exploit-mitigations Project group: Exploit mitigations 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-libs Relevant to the library team, which will review and decide on the PR/issue. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver)
Projects
None yet
Development

Successfully merging this pull request may close these issues.