Skip to content

Commit

Permalink
Add an example of collapse_debuginfo
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Apr 27, 2024
1 parent c495b96 commit 2d51a2a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/attributes/debugger.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,5 +157,14 @@ For built-in macros the default is `yes`.

> **Note**: `rustc` has a `-C collapse-macro-debuginfo` CLI option to override both the default collapsing behavior and `#[collapse_debuginfo]` attributes.
```rust
#[collapse_debuginfo(yes)]
macro_rules! example {
() => {
println!("hello!");
};
}
```

[attribute]: ../attributes.md
[_MetaListIdents_]: ../attributes.md#meta-item-attribute-syntax

0 comments on commit 2d51a2a

Please sign in to comment.