@@ -689,12 +689,11 @@ impl NvvmProgram {
689689
690690#[ cfg( test) ]
691691mod tests {
692+ use super :: * ;
692693 use std:: str:: FromStr ;
693694
694695 #[ test]
695696 fn nvvm_arch_capability_value ( ) {
696- use crate :: NvvmArch ;
697-
698697 assert_eq ! ( NvvmArch :: Compute35 . capability_value( ) , 35 ) ;
699698 assert_eq ! ( NvvmArch :: Compute37 . capability_value( ) , 37 ) ;
700699 assert_eq ! ( NvvmArch :: Compute50 . capability_value( ) , 50 ) ;
@@ -715,8 +714,6 @@ mod tests {
715714
716715 #[ test]
717716 fn nvvm_arch_major_minor_version ( ) {
718- use crate :: NvvmArch ;
719-
720717 // Test major/minor version extraction
721718 assert_eq ! ( NvvmArch :: Compute35 . major_version( ) , 3 ) ;
722719 assert_eq ! ( NvvmArch :: Compute35 . minor_version( ) , 5 ) ;
@@ -737,8 +734,6 @@ mod tests {
737734
738735 #[ test]
739736 fn nvvm_arch_target_feature ( ) {
740- use crate :: NvvmArch ;
741-
742737 // Test baseline features
743738 assert_eq ! ( NvvmArch :: Compute35 . target_feature( ) , "compute_35" ) ;
744739 assert_eq ! ( NvvmArch :: Compute61 . target_feature( ) , "compute_61" ) ;
@@ -764,8 +759,6 @@ mod tests {
764759
765760 #[ test]
766761 fn nvvm_arch_all_target_features ( ) {
767- use crate :: NvvmArch ;
768-
769762 assert_eq ! (
770763 NvvmArch :: Compute35 . all_target_features( ) ,
771764 vec![ "compute_35" ]
@@ -1036,8 +1029,6 @@ mod tests {
10361029
10371030 #[ test]
10381031 fn nvvm_arch_iter_up_to_includes_only_lower_or_equal ( ) {
1039- use crate :: NvvmArch ;
1040-
10411032 // Compute35 only includes itself
10421033 let archs: Vec < _ > = NvvmArch :: Compute35 . iter_up_to ( ) . collect ( ) ;
10431034 assert_eq ! ( archs, vec![ NvvmArch :: Compute35 ] ) ;
@@ -1076,8 +1067,8 @@ mod tests {
10761067
10771068 #[ test]
10781069 fn options_parse_correctly ( ) {
1079- use crate :: NvvmArch :: * ;
1080- use crate :: NvvmOption :: { self , * } ;
1070+ use NvvmArch :: * ;
1071+ use NvvmOption :: { self , * } ;
10811072
10821073 let opts = vec ! [
10831074 "-g" ,
@@ -1132,8 +1123,6 @@ mod tests {
11321123
11331124 #[ test]
11341125 fn nvvm_arch_variant_checks ( ) {
1135- use crate :: NvvmArch ;
1136-
11371126 // Base variants
11381127 assert ! ( NvvmArch :: Compute90 . is_base_variant( ) ) ;
11391128 assert ! ( NvvmArch :: Compute120 . is_base_variant( ) ) ;
@@ -1154,8 +1143,6 @@ mod tests {
11541143
11551144 #[ test]
11561145 fn nvvm_arch_base_architecture ( ) {
1157- use crate :: NvvmArch ;
1158-
11591146 // Base variants return themselves
11601147 assert_eq ! ( NvvmArch :: Compute90 . base_architecture( ) , NvvmArch :: Compute90 ) ;
11611148 assert_eq ! (
@@ -1186,8 +1173,6 @@ mod tests {
11861173
11871174 #[ test]
11881175 fn nvvm_arch_get_variants ( ) {
1189- use crate :: NvvmArch ;
1190-
11911176 // Architecture with only base variant
11921177 let compute80_variants = NvvmArch :: Compute80 . get_variants ( ) ;
11931178 assert_eq ! ( compute80_variants, vec![ NvvmArch :: Compute80 ] ) ;
@@ -1211,8 +1196,6 @@ mod tests {
12111196
12121197 #[ test]
12131198 fn nvvm_arch_variants_for_capability ( ) {
1214- use crate :: NvvmArch ;
1215-
12161199 // Capability with single variant
12171200 assert_eq ! (
12181201 NvvmArch :: variants_for_capability( 75 ) ,
0 commit comments