Skip to content

Commit d335d34

Browse files
ehusstraviscross
authored andcommitted
Unwrap collapse_debuginfo
1 parent f83e52a commit d335d34

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/attributes/debugger.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,7 @@ r[attributes.debugger.collapse_debuginfo]
155155
## The `collapse_debuginfo` attribute
156156

157157
r[attributes.debugger.collapse_debuginfo.intro]
158-
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,
159-
when generating debuginfo for code calling this macro.
158+
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, when generating debuginfo for code calling this macro.
160159

161160
r[attributes.debugger.collapse_debuginfo.syntax]
162161
The attribute uses the [MetaListIdents] syntax to specify its inputs, and can only be applied to macro definitions.
@@ -168,8 +167,7 @@ Accepted options:
168167
- `#[collapse_debuginfo(external)]` --- code locations in debuginfo are collapsed only if the macro comes from a different crate.
169168

170169
r[attributes.debugger.collapse_debuginfo.default]
171-
The `external` behavior is the default for macros that don't have this attribute, unless they are built-in macros.
172-
For built-in macros the default is `yes`.
170+
The `external` behavior is the default for macros that don't have this attribute, unless they are built-in macros. For built-in macros the default is `yes`.
173171

174172
> [!NOTE]
175173
> `rustc` has a `-C collapse-macro-debuginfo` CLI option to override both the default collapsing behavior and `#[collapse_debuginfo]` attributes.

0 commit comments

Comments
 (0)