You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let test_ignored = IGNORE_DOCTEST_CHECK.contains(&&err_code);
231
+
let test_ignored = IGNORE_DOCTEST_CHECK.contains(&err_code);
236
232
237
233
// Check that the explanation has a doctest, and if it shouldn't, that it doesn't
238
234
if !found_proper_doctest && !test_ignored {
@@ -300,7 +296,7 @@ fn check_error_codes_tests(
300
296
let tests_path = root_path.join(Path::new(ERROR_TESTS_PATH));
301
297
302
298
for code in error_codes {
303
-
let test_path = tests_path.join(format!("{}.stderr", code));
299
+
let test_path = tests_path.join(format!("{code}.stderr"));
304
300
305
301
if !test_path.exists() && !IGNORE_UI_TEST_CHECK.contains(&code.as_str()){
306
302
verbose_print!(
@@ -388,7 +384,7 @@ fn check_error_codes_used(
388
384
389
385
if !error_codes.contains(&error_code){
390
386
// This error code isn't properly defined, we must error.
391
-
errors.push(format!("Error code `{}` is used in the compiler but not defined and documented in `compiler/rustc_error_codes/src/lib.rs`.", error_code));
387
+
errors.push(format!("Error code `{error_code}` is used in the compiler but not defined and documented in `compiler/rustc_error_codes/src/lib.rs`."));
0 commit comments