diff --git a/tests/ui/symbol-names/verbose.rs b/tests/ui/symbol-names/verbose.rs index 7aee558a4b6b4..b38f6bdd738c9 100644 --- a/tests/ui/symbol-names/verbose.rs +++ b/tests/ui/symbol-names/verbose.rs @@ -2,9 +2,10 @@ // affected produced symbols making it impossible to link between crates // with a different value of the flag (for symbols involving generic // arguments equal to defaults of their respective parameters). +// Add -Awarnings to ignore unexpected warnings on StdErr, especially from external tools. // //@ build-pass -//@ compile-flags: -Zverbose-internals +//@ compile-flags: -Zverbose-internals -Awarnings pub fn error(msg: String) -> Box { msg.into() diff --git a/tests/ui/type/issue-94187-verbose-type-name.rs b/tests/ui/type/issue-94187-verbose-type-name.rs index 3c0dc72f234d7..91d6c555e0a36 100644 --- a/tests/ui/type/issue-94187-verbose-type-name.rs +++ b/tests/ui/type/issue-94187-verbose-type-name.rs @@ -1,8 +1,9 @@ // Ensure the output of `std::any::type_name` does not change based on `-Zverbose-internals` +// Add -Awarnings to ignore unexpected warnings on StdErr, especially from external tools. //@ run-pass //@ edition: 2018 //@ revisions: normal verbose -//@ [verbose]compile-flags:-Zverbose-internals --verbose +//@ [verbose]compile-flags:-Zverbose-internals --verbose -Awarnings use std::any::type_name;