Skip to content

Commit 860fe4a

Browse files
committed
Use semantic line wrapping.
1 parent 4e9c91f commit 860fe4a

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

src/attributes/debugger.md

+6-9
Original file line numberDiff line numberDiff line change
@@ -142,21 +142,18 @@ When the crate's debug executable is passed into GDB[^rust-gdb], `print bob` wil
142142

143143
## The `collapse_debuginfo` attribute
144144

145-
The *`collapse_debuginfo` [attribute]* controls whether code locations from a macro definition are collapsed into a
146-
single location associated with the macro's call site, when generating debuginfo for code calling
147-
this macro.
145+
The *`collapse_debuginfo` [attribute]* controls whether code locations from a macro definition are collapsed into a single location associated with the macro's call site,
146+
when generating debuginfo for code calling this macro.
148147

149-
The attribute uses the [_MetaListIdents_] syntax to specify its inputs, and can only be applied to
150-
macro definitions.
148+
The attribute uses the [_MetaListIdents_] syntax to specify its inputs, and can only be applied to macro definitions.
151149

152150
Accepted options:
153151
- `#[collapse_debuginfo(yes)]` — code locations in debuginfo are collapsed.
154152
- `#[collapse_debuginfo(no)]` — code locations in debuginfo are not collapsed.
155-
- `#[collapse_debuginfo(external)]` — code locations in debuginfo are collapsed only if the macro
156-
comes from a different crate.
153+
- `#[collapse_debuginfo(external)]` — code locations in debuginfo are collapsed only if the macro comes from a different crate.
157154

158-
The `external` behavior is the default for macros that don't have this attribute, unless they are
159-
built-in macros. For built-in macros the default is `yes`.
155+
The `external` behavior is the default for macros that don't have this attribute, unless they are built-in macros.
156+
For built-in macros the default is `yes`.
160157

161158
> **Note**: `rustc` has a `-C collapse-macro-debuginfo` CLI option to override both the default collapsing behavior and `#[collapse_debuginfo]` attributes.
162159

0 commit comments

Comments
 (0)