From 218caa410aa38c29984be31a5229b9fa717560ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:13 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- src/test/ui/lint/outer-forbid.rs | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 src/test/ui/lint/outer-forbid.rs (limited to 'src/test/ui/lint/outer-forbid.rs') diff --git a/src/test/ui/lint/outer-forbid.rs b/src/test/ui/lint/outer-forbid.rs deleted file mode 100644 index ba330258d..000000000 --- a/src/test/ui/lint/outer-forbid.rs +++ /dev/null @@ -1,32 +0,0 @@ -// Forbidding a group (here, `unused`) overrules subsequent allowance of both -// the group, and an individual lint in the group (here, `unused_variables`); -// and, forbidding an individual lint (here, `non_snake_case`) overrules -// subsequent allowance of a lint group containing it (here, `nonstandard_style`). See -// Issue #42873. - -// If you turn off deduplicate diagnostics (which rustc turns on by default but -// compiletest turns off when it runs ui tests), then the errors are -// (unfortunately) repeated here because the checking is done as we read in the -// errors, and currently that happens two or three different times, depending on -// compiler flags. -// -// The test is much cleaner if we deduplicate, though. - -// compile-flags: -Z deduplicate-diagnostics=yes - -#![forbid(unused, non_snake_case)] -#![forbid(forbidden_lint_groups)] - -#[allow(unused_variables)] -//~^ ERROR incompatible with previous -//~| WARNING this was previously accepted by the compiler -fn foo() {} - -#[allow(unused)] //~ ERROR incompatible with previous -//~^ WARNING this was previously accepted by the compiler -fn bar() {} - -#[allow(nonstandard_style)] //~ ERROR incompatible with previous -fn main() { - println!("hello forbidden world") -} -- cgit v1.2.3