-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixes for last couple months of CI changes #183
Conversation
cargo now complains about #[cfg] attributes that don't match cargo features, unless you explicitly whitelist them. This is very useful for catching typos. Whitelist the ones we use, and set the lint from "warn" to "deny".
Appears to have been an accidental addition during iteration on rust-bitcoin#117.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#[inline] | ||
fn size_hint(&self) -> (usize, Option<usize>) { self.iter.size_hint() } | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting, that is twice this week that code that I have worked on includes types that are not constructable. Seems this should be caught by the linter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a recent addition (only last couple weeks) to the rustc "dead code" lint. It's actually pretty clever because this is a publicly exported type -- there's just no publicly-exported function that returns it.
Clippy, public-api and cargo.