@@ -91,7 +91,7 @@ use thiserror::Error;
9191pub  use  rustc_codegen_spirv_types:: Capability ; 
9292pub  use  rustc_codegen_spirv_types:: { CompileResult ,  ModuleResult } ; 
9393
94- #[ cfg( feature = "include_target_specs " ) ]  
94+ #[ cfg( feature = "include-target-specs " ) ]  
9595pub  use  rustc_codegen_spirv_target_specs:: TARGET_SPEC_DIR_PATH ; 
9696
9797#[ derive( Debug ,  Error ) ]  
@@ -114,7 +114,7 @@ pub enum SpirvBuilderError {
114114    #[ error( "`rustc_codegen_spirv_location` path '{0}' is not a file" ) ]  
115115    RustcCodegenSpirvDylibDoesNotExist ( PathBuf ) , 
116116    #[ error(  
117-         "Without feature `include_target_specs `, instead of setting a `target`, \   
117+         "Without feature `include-target-specs `, instead of setting a `target`, \   
118118
119119    ) ]  
120120    MissingTargetSpec , 
@@ -983,12 +983,12 @@ fn invoke_rustc(builder: &SpirvBuilder) -> Result<PathBuf, SpirvBuilderError> {
983983    if  toolchain_rustc_version >= Version :: new ( 1 ,  76 ,  0 )  { 
984984        let  path_opt = builder. path_to_target_spec . clone ( ) ; 
985985        let  path; 
986-         #[ cfg( feature = "include_target_specs " ) ]  
986+         #[ cfg( feature = "include-target-specs " ) ]  
987987        { 
988988            path = path_opt
989989                . unwrap_or_else ( || PathBuf :: from ( format ! ( "{TARGET_SPEC_DIR_PATH}/{target}.json" ) ) ) ; 
990990        } 
991-         #[ cfg( not( feature = "include_target_specs " ) ) ]  
991+         #[ cfg( not( feature = "include-target-specs " ) ) ]  
992992        { 
993993            path = path_opt. ok_or ( SpirvBuilderError :: MissingTargetSpec ) ?; 
994994        } 
0 commit comments