binast / binjs-ref

Reference implementation for the JavaScript Binary AST format
https://binast.github.io/binjs-ref/binjs/index.html
Other
433 stars 38 forks source link

Move comments inside macros. #362

Closed Yoric closed 5 years ago

Yoric commented 5 years ago

Documentation generated by rustdoc ignores comments such as

/// Documentation
use_a_macro_to_declare_a_type_or_value!(...)

This patch tweaks our macro declarations to recognize documentation comments and turn them into actual comments recognized by rustdoc.

As a side-effect, it fixes warnings on Rust nightly.