From 6ccc53ce1e9ba088e3dd19674fc19dbcd0803725 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Wed, 19 Apr 2023 19:31:36 -0700 Subject: [PATCH] Suppress buggy non_upper_case_globals warning https://github.com/rust-lang/rust/issues/110573 --- tests/debug/mod.rs | 1 + tests/test_displaydoc.rs | 1 + tests/test_field_access.rs | 1 + tests/test_generics.rs | 1 + tests/test_parse_trait_objects.rs | 1 + tests/test_tuple.rs | 1 + tests/test_zero_args.rs | 1 + 7 files changed, 7 insertions(+) diff --git a/tests/debug/mod.rs b/tests/debug/mod.rs index eed05a1..4b025e1 100644 --- a/tests/debug/mod.rs +++ b/tests/debug/mod.rs @@ -1,3 +1,4 @@ +#![allow(non_upper_case_globals)] // rustc bug: https://github.com/rust-lang/rust/issues/110573 #![allow( clippy::needless_pass_by_value, clippy::similar_names, diff --git a/tests/test_displaydoc.rs b/tests/test_displaydoc.rs index 4e7a520..639ed84 100644 --- a/tests/test_displaydoc.rs +++ b/tests/test_displaydoc.rs @@ -1,6 +1,7 @@ // This test implements a Display derive resembling the displaydoc crate: // https://github.com/yaahc/displaydoc +#![allow(non_upper_case_globals)] // rustc bug: https://github.com/rust-lang/rust/issues/110573 #![allow( clippy::if_not_else, clippy::needless_pass_by_value, diff --git a/tests/test_field_access.rs b/tests/test_field_access.rs index d5b9d8e..6da1e30 100644 --- a/tests/test_field_access.rs +++ b/tests/test_field_access.rs @@ -1,3 +1,4 @@ +#![allow(non_upper_case_globals)] // rustc bug: https://github.com/rust-lang/rust/issues/110573 #![allow(clippy::wildcard_imports)] use quote::quote; diff --git a/tests/test_generics.rs b/tests/test_generics.rs index f248fc1..dddadab 100644 --- a/tests/test_generics.rs +++ b/tests/test_generics.rs @@ -1,3 +1,4 @@ +#![allow(non_upper_case_globals)] // rustc bug: https://github.com/rust-lang/rust/issues/110573 #![allow(clippy::wildcard_imports)] use quote::quote; diff --git a/tests/test_parse_trait_objects.rs b/tests/test_parse_trait_objects.rs index 9a137d1..043d17b 100644 --- a/tests/test_parse_trait_objects.rs +++ b/tests/test_parse_trait_objects.rs @@ -1,3 +1,4 @@ +#![allow(non_upper_case_globals)] // rustc bug: https://github.com/rust-lang/rust/issues/110573 #![allow(clippy::wildcard_imports)] use reflect::*; diff --git a/tests/test_tuple.rs b/tests/test_tuple.rs index 6f85883..c3c29b1 100644 --- a/tests/test_tuple.rs +++ b/tests/test_tuple.rs @@ -1,3 +1,4 @@ +#![allow(non_upper_case_globals)] // rustc bug: https://github.com/rust-lang/rust/issues/110573 #![allow(clippy::wildcard_imports)] use quote::quote; diff --git a/tests/test_zero_args.rs b/tests/test_zero_args.rs index 1d61f47..5e47276 100644 --- a/tests/test_zero_args.rs +++ b/tests/test_zero_args.rs @@ -1,3 +1,4 @@ +#![allow(non_upper_case_globals)] // rustc bug: https://github.com/rust-lang/rust/issues/110573 #![allow(clippy::wildcard_imports)] use quote::quote;