Skip to content

Commit ee9e8d2

Browse files
committed
Document allow-non-lint-warnings.rs
1 parent 8194548 commit ee9e8d2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/ui/allow-non-lint-warnings.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
// ignore-tidy-linelength
2+
//! Check that `-A warnings` cli flag applies to *all* warnings, including feature gate warnings.
3+
//!
4+
//! This test tries to exercise that by checking that the "empty trait list for derive" warning for
5+
//! `#[derive()]` is permitted by `-A warnings`, which is a non-lint warning.
6+
//!
7+
//! # Relevant context
8+
//!
9+
//! - Original impl PR: <https://github.com/rust-lang/rust/pull/21248>.
10+
//! - RFC 507 "Release channels":
11+
//! <https://github.com/rust-lang/rfcs/blob/c017755b9bfa0421570d92ba38082302e0f3ad4f/text/0507-release-channels.md>.
12+
113
//@ compile-flags: -Awarnings
214
//@ check-pass
315

0 commit comments

Comments
 (0)