Skip to content

Conversation

poiru
Copy link
Contributor

@poiru poiru commented Jun 27, 2013

This closes #7428.

cc @thestinger

@thestinger
Copy link
Contributor

Added this to #7426 with some other small commits. Thanks!

@thestinger thestinger closed this Jun 27, 2013
@poiru poiru deleted the issue-7428 branch January 30, 2014 16:52
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jul 15, 2021
Fix false-positive `assert` in `panic`

This PR fixes a false-positive in `clippy::panic` when using the `assert` macro with its optional message parameter.

Fixes: rust-lang#7433

changelog: `panic_unimplemented.rs`: added condition to exclude `assert` macro, similar to `debug_assert`
changelog: `panicking_macros.rs`: relevant tests to check for `assert` usage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rename #[no_drop_flag] to #[unsafe_no_drop_flag]

2 participants