You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
160
159
161
160
r[attributes.debugger.collapse_debuginfo.syntax]
162
161
The attribute uses the [MetaListIdents] syntax to specify its inputs, and can only be applied to macro definitions.
@@ -168,8 +167,7 @@ Accepted options:
168
167
-`#[collapse_debuginfo(external)]` --- code locations in debuginfo are collapsed only if the macro comes from a different crate.
169
168
170
169
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`.
173
171
174
172
> [!NOTE]
175
173
> `rustc` has a `-C collapse-macro-debuginfo` CLI option to override both the default collapsing behavior and `#[collapse_debuginfo]` attributes.
0 commit comments