Skip to content

Commit 42dbae7

Browse files
debuginfo: Formatting cleanup.
1 parent 4fb471a commit 42dbae7

File tree

3 files changed

+12
-22
lines changed

3 files changed

+12
-22
lines changed

src/test/debug-info/struct-in-struct.rs

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -111,37 +111,29 @@ fn main() {
111111
};
112112

113113
let bag = Bag { x: Simple { x: 22 } };
114-
let bag_in_bag = BagInBag
115-
{
116-
x: Bag
117-
{
114+
let bag_in_bag = BagInBag {
115+
x: Bag {
118116
x: Simple { x: 23 }
119117
}
120118
};
121119

122-
let tjo = ThatsJustOverkill
123-
{
124-
x: BagInBag
125-
{
126-
x: Bag
127-
{
120+
let tjo = ThatsJustOverkill {
121+
x: BagInBag {
122+
x: Bag {
128123
x: Simple { x: 24 }
129124
}
130125
}
131126
};
132127

133128
let tree = Tree {
134129
x: Simple { x: 25 },
135-
y: InternalPaddingParent
136-
{
130+
y: InternalPaddingParent {
137131
x: InternalPadding { x: 26, y: 27 },
138132
y: InternalPadding { x: 28, y: 29 },
139133
z: InternalPadding { x: 30, y: 31 }
140134
},
141-
z: BagInBag
142-
{
143-
x: Bag
144-
{
135+
z: BagInBag {
136+
x: Bag {
145137
x: Simple { x: 32 }
146138
}
147139
}

src/test/debug-info/struct-with-destructor.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,12 @@ impl Drop for WithDestructor {
3737
fn finalize(&self) {}
3838
}
3939

40-
struct NoDestructorGuarded
41-
{
40+
struct NoDestructorGuarded {
4241
a: NoDestructor,
4342
guard: i64
4443
}
4544

46-
struct WithDestructorGuarded
47-
{
45+
struct WithDestructorGuarded {
4846
a: WithDestructor,
4947
guard: i64
5048
}

src/test/debug-info/variable-scope.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
// debugger:print y
2020
// check:$2 = true
2121

22-
// debugger:run
22+
// debugger:continue
2323
// debugger:finish
2424
// debugger:print x
2525
// check:$3 = 10
2626

27-
// debugger:run
27+
// debugger:continue
2828
// debugger:finish
2929
// debugger:print x
3030
// check:$4 = false

0 commit comments

Comments
 (0)