Skip to content

Commit eea71a3

Browse files
committed
Adjust allow-non-lint-warnings.rs
- Document `allow-non-lint-warnings.rs` - Move `allow-non-lint-warnings.rs` under `tests/ui/diagnostic-flags/`
1 parent dcedbe7 commit eea71a3

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

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

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
13+
//@ compile-flags: -Awarnings
14+
//@ check-pass
15+
16+
#[derive()]
17+
#[derive(Copy, Clone)]
18+
pub struct Foo;
19+
20+
pub fn main() {}

0 commit comments

Comments
 (0)