File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -268,9 +268,13 @@ fn len(
268268Inert helper attributes used by procedural macro attributes applied to items are also
269269allowed but be careful to not include these inert attributes in your final ` TokenStream ` .
270270
271- ``` rust
272- #[hi_i_am_a_proc_macro_attribute]
273- fn foo_oof (#[hello_i_am_an_inert_attribute ] arg : u8 ) {
271+ For example, the following code defines an inert ` some_inert_attribute ` attribute that
272+ is not formally defined anywhere and the ` some_proc_macro_attribute ` procedural macro is
273+ responsible for detecting its presence and removing it from the output token stream.
274+
275+ ``` rust,ignore
276+ #[some_proc_macro_attribute]
277+ fn foo_oof(#[some_inert_attribute] arg: u8) {
274278}
275279```
276280
You can’t perform that action at this time.
0 commit comments