paholg / dimensioned

Compile-time dimensional analysis for various unit systems using Rust's type system.
https://crates.io/crates/dimensioned
MIT License
300 stars 23 forks source link

derived! incompatible with #[deny(missing_docs)] #36

Open spease opened 6 years ago

spease commented 6 years ago

Even if I add a doc comment above the macro invocation, I still get a "missing documentation for a type alias" error.

Eg:

#![deny(missing_docs)]

use dimensioned::si::{self, SI};
/// Some doc comment
derived!(si, SI: InverseMeter3 = Unitless / Meter3);
droundy commented 6 years ago

Sounds like it would help to add some `#[allow(missing_docs)] attrs in the derive implementation. I need to do something similar in ClapMe to silence warnings.