Skip to content

Commit dd314f6

Browse files
committed
give more helpful suggestions for a missing feature gate test
1 parent b556e28 commit dd314f6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/tools/tidy/src/features.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,10 @@ pub fn check(
160160
for &(name, _) in gate_untested.iter() {
161161
println!("Expected a gate test for the feature '{name}'.");
162162
println!(
163-
"Hint: create a failing test file named 'feature-gate-{}.rs'\
164-
\n in the 'ui' test suite, with its failures due to\
165-
\n missing usage of `#![feature({})]`.",
166-
name, name
163+
"Hint: create a failing test file named 'tests/ui/feature-gates/feature-gate-{}.rs',\
164+
\n with its failures due to missing usage of `#![feature({})]`.",
165+
name.replace("_", "-"),
166+
name
167167
);
168168
println!(
169169
"Hint: If you already have such a test and don't want to rename it,\

0 commit comments

Comments
 (0)