mirror of https://github.com/rust-lang/reference
Add an example of collapse_debuginfo
This commit is contained in:
parent
c495b9660f
commit
2d51a2aec4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue