From 03daf7ccb21eef060bee99ca99c30738355424ab Mon Sep 17 00:00:00 2001 From: Philipp Krones Date: Thu, 7 Nov 2024 17:12:42 +0100 Subject: [PATCH] Fix author lint and move it back to tests/ui The author lint is not an internal lint, and should also be enabled, when Clippy is distributed through rustup. This moves the author lint test cases back to tests/ui. --- tests/{ui-internal => ui}/author.rs | 2 -- tests/{ui-internal => ui}/author.stdout | 0 tests/{ui-internal => ui}/author/blocks.rs | 0 tests/{ui-internal => ui}/author/blocks.stdout | 0 tests/{ui-internal => ui}/author/call.rs | 0 tests/{ui-internal => ui}/author/call.stdout | 0 tests/{ui-internal => ui}/author/if.rs | 0 tests/{ui-internal => ui}/author/if.stdout | 0 tests/{ui-internal => ui}/author/issue_3849.rs | 0 tests/{ui-internal => ui}/author/issue_3849.stdout | 0 tests/{ui-internal => ui}/author/loop.rs | 0 tests/{ui-internal => ui}/author/loop.stdout | 0 tests/{ui-internal => ui}/author/macro_in_closure.rs | 0 tests/{ui-internal => ui}/author/macro_in_closure.stdout | 0 tests/{ui-internal => ui}/author/macro_in_loop.rs | 0 tests/{ui-internal => ui}/author/macro_in_loop.stdout | 0 tests/{ui-internal => ui}/author/matches.rs | 0 tests/{ui-internal => ui}/author/matches.stdout | 0 tests/{ui-internal => ui}/author/repeat.rs | 0 tests/{ui-internal => ui}/author/repeat.stdout | 0 tests/{ui-internal => ui}/author/struct.rs | 0 tests/{ui-internal => ui}/author/struct.stdout | 0 22 files changed, 2 deletions(-) rename tests/{ui-internal => ui}/author.rs (72%) rename tests/{ui-internal => ui}/author.stdout (100%) rename tests/{ui-internal => ui}/author/blocks.rs (100%) rename tests/{ui-internal => ui}/author/blocks.stdout (100%) rename tests/{ui-internal => ui}/author/call.rs (100%) rename tests/{ui-internal => ui}/author/call.stdout (100%) rename tests/{ui-internal => ui}/author/if.rs (100%) rename tests/{ui-internal => ui}/author/if.stdout (100%) rename tests/{ui-internal => ui}/author/issue_3849.rs (100%) rename tests/{ui-internal => ui}/author/issue_3849.stdout (100%) rename tests/{ui-internal => ui}/author/loop.rs (100%) rename tests/{ui-internal => ui}/author/loop.stdout (100%) rename tests/{ui-internal => ui}/author/macro_in_closure.rs (100%) rename tests/{ui-internal => ui}/author/macro_in_closure.stdout (100%) rename tests/{ui-internal => ui}/author/macro_in_loop.rs (100%) rename tests/{ui-internal => ui}/author/macro_in_loop.stdout (100%) rename tests/{ui-internal => ui}/author/matches.rs (100%) rename tests/{ui-internal => ui}/author/matches.stdout (100%) rename tests/{ui-internal => ui}/author/repeat.rs (100%) rename tests/{ui-internal => ui}/author/repeat.stdout (100%) rename tests/{ui-internal => ui}/author/struct.rs (100%) rename tests/{ui-internal => ui}/author/struct.stdout (100%) diff --git a/tests/ui-internal/author.rs b/tests/ui/author.rs similarity index 72% rename from tests/ui-internal/author.rs rename to tests/ui/author.rs index eb1f3e3f870..0a1be356896 100644 --- a/tests/ui-internal/author.rs +++ b/tests/ui/author.rs @@ -1,5 +1,3 @@ -#![warn(clippy::author)] - fn main() { #[clippy::author] let x: char = 0x45 as char; diff --git a/tests/ui-internal/author.stdout b/tests/ui/author.stdout similarity index 100% rename from tests/ui-internal/author.stdout rename to tests/ui/author.stdout diff --git a/tests/ui-internal/author/blocks.rs b/tests/ui/author/blocks.rs similarity index 100% rename from tests/ui-internal/author/blocks.rs rename to tests/ui/author/blocks.rs diff --git a/tests/ui-internal/author/blocks.stdout b/tests/ui/author/blocks.stdout similarity index 100% rename from tests/ui-internal/author/blocks.stdout rename to tests/ui/author/blocks.stdout diff --git a/tests/ui-internal/author/call.rs b/tests/ui/author/call.rs similarity index 100% rename from tests/ui-internal/author/call.rs rename to tests/ui/author/call.rs diff --git a/tests/ui-internal/author/call.stdout b/tests/ui/author/call.stdout similarity index 100% rename from tests/ui-internal/author/call.stdout rename to tests/ui/author/call.stdout diff --git a/tests/ui-internal/author/if.rs b/tests/ui/author/if.rs similarity index 100% rename from tests/ui-internal/author/if.rs rename to tests/ui/author/if.rs diff --git a/tests/ui-internal/author/if.stdout b/tests/ui/author/if.stdout similarity index 100% rename from tests/ui-internal/author/if.stdout rename to tests/ui/author/if.stdout diff --git a/tests/ui-internal/author/issue_3849.rs b/tests/ui/author/issue_3849.rs similarity index 100% rename from tests/ui-internal/author/issue_3849.rs rename to tests/ui/author/issue_3849.rs diff --git a/tests/ui-internal/author/issue_3849.stdout b/tests/ui/author/issue_3849.stdout similarity index 100% rename from tests/ui-internal/author/issue_3849.stdout rename to tests/ui/author/issue_3849.stdout diff --git a/tests/ui-internal/author/loop.rs b/tests/ui/author/loop.rs similarity index 100% rename from tests/ui-internal/author/loop.rs rename to tests/ui/author/loop.rs diff --git a/tests/ui-internal/author/loop.stdout b/tests/ui/author/loop.stdout similarity index 100% rename from tests/ui-internal/author/loop.stdout rename to tests/ui/author/loop.stdout diff --git a/tests/ui-internal/author/macro_in_closure.rs b/tests/ui/author/macro_in_closure.rs similarity index 100% rename from tests/ui-internal/author/macro_in_closure.rs rename to tests/ui/author/macro_in_closure.rs diff --git a/tests/ui-internal/author/macro_in_closure.stdout b/tests/ui/author/macro_in_closure.stdout similarity index 100% rename from tests/ui-internal/author/macro_in_closure.stdout rename to tests/ui/author/macro_in_closure.stdout diff --git a/tests/ui-internal/author/macro_in_loop.rs b/tests/ui/author/macro_in_loop.rs similarity index 100% rename from tests/ui-internal/author/macro_in_loop.rs rename to tests/ui/author/macro_in_loop.rs diff --git a/tests/ui-internal/author/macro_in_loop.stdout b/tests/ui/author/macro_in_loop.stdout similarity index 100% rename from tests/ui-internal/author/macro_in_loop.stdout rename to tests/ui/author/macro_in_loop.stdout diff --git a/tests/ui-internal/author/matches.rs b/tests/ui/author/matches.rs similarity index 100% rename from tests/ui-internal/author/matches.rs rename to tests/ui/author/matches.rs diff --git a/tests/ui-internal/author/matches.stdout b/tests/ui/author/matches.stdout similarity index 100% rename from tests/ui-internal/author/matches.stdout rename to tests/ui/author/matches.stdout diff --git a/tests/ui-internal/author/repeat.rs b/tests/ui/author/repeat.rs similarity index 100% rename from tests/ui-internal/author/repeat.rs rename to tests/ui/author/repeat.rs diff --git a/tests/ui-internal/author/repeat.stdout b/tests/ui/author/repeat.stdout similarity index 100% rename from tests/ui-internal/author/repeat.stdout rename to tests/ui/author/repeat.stdout diff --git a/tests/ui-internal/author/struct.rs b/tests/ui/author/struct.rs similarity index 100% rename from tests/ui-internal/author/struct.rs rename to tests/ui/author/struct.rs diff --git a/tests/ui-internal/author/struct.stdout b/tests/ui/author/struct.stdout similarity index 100% rename from tests/ui-internal/author/struct.stdout rename to tests/ui/author/struct.stdout