@@ -445,17 +445,17 @@ mod object_works {
445445 . stdout
446446 }
447447
448- #[ cargo_test( requires_nm , nightly, reason = "-Zremap-path-scope is unstable" ) ]
448+ #[ cargo_test( requires = "nm" , nightly, reason = "-Zremap-path-scope is unstable" ) ]
449449 fn with_split_debuginfo_off ( ) {
450450 object_works_helper ( "off" , inspect_debuginfo) ;
451451 }
452452
453- #[ cargo_test( requires_nm , nightly, reason = "-Zremap-path-scope is unstable" ) ]
453+ #[ cargo_test( requires = "nm" , nightly, reason = "-Zremap-path-scope is unstable" ) ]
454454 fn with_split_debuginfo_packed ( ) {
455455 object_works_helper ( "packed" , inspect_debuginfo) ;
456456 }
457457
458- #[ cargo_test( requires_nm , nightly, reason = "-Zremap-path-scope is unstable" ) ]
458+ #[ cargo_test( requires = "nm" , nightly, reason = "-Zremap-path-scope is unstable" ) ]
459459 fn with_split_debuginfo_unpacked ( ) {
460460 object_works_helper ( "unpacked" , inspect_debuginfo) ;
461461 }
@@ -475,17 +475,29 @@ mod object_works {
475475 . stdout
476476 }
477477
478- #[ cargo_test( requires_readelf, nightly, reason = "-Zremap-path-scope is unstable" ) ]
478+ #[ cargo_test(
479+ requires = "readelf" ,
480+ nightly,
481+ reason = "-Zremap-path-scope is unstable"
482+ ) ]
479483 fn with_split_debuginfo_off ( ) {
480484 object_works_helper ( "off" , inspect_debuginfo) ;
481485 }
482486
483- #[ cargo_test( requires_readelf, nightly, reason = "-Zremap-path-scope is unstable" ) ]
487+ #[ cargo_test(
488+ requires = "readelf" ,
489+ nightly,
490+ reason = "-Zremap-path-scope is unstable"
491+ ) ]
484492 fn with_split_debuginfo_packed ( ) {
485493 object_works_helper ( "packed" , inspect_debuginfo) ;
486494 }
487495
488- #[ cargo_test( requires_readelf, nightly, reason = "-Zremap-path-scope is unstable" ) ]
496+ #[ cargo_test(
497+ requires = "readelf" ,
498+ nightly,
499+ reason = "-Zremap-path-scope is unstable"
500+ ) ]
489501 fn with_split_debuginfo_unpacked ( ) {
490502 object_works_helper ( "unpacked" , inspect_debuginfo) ;
491503 }
@@ -676,7 +688,7 @@ fn custom_build_env_var_trim_paths() {
676688}
677689
678690#[ cfg( unix) ]
679- #[ cargo_test( requires_lldb , nightly, reason = "-Zremap-path-scope is unstable" ) ]
691+ #[ cargo_test( requires = "lldb" , nightly, reason = "-Zremap-path-scope is unstable" ) ]
680692fn lldb_works_after_trimmed ( ) {
681693 use cargo_test_support:: compare:: assert_e2e;
682694 use cargo_util:: is_ci;
0 commit comments