Skip to content

Commit

Permalink
Clippy: cfg out validate_diag on release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
flip1995 committed Nov 8, 2024
1 parent 2ab848b commit 6c87427
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tools/clippy/clippy_utils/src/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ fn docs_link(diag: &mut Diag<'_, ()>, lint: &'static Lint) {
/// only started triggered there.
///
/// This function makes sure we also validate them in debug clippy builds.
#[cfg(debug_assertions)]
fn validate_diag(diag: &Diag<'_, impl EmissionGuarantee>) {
let suggestions = match &diag.suggestions {
Suggestions::Enabled(suggs) => &**suggs,
Expand Down

0 comments on commit 6c87427

Please sign in to comment.