File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -946,10 +946,10 @@ pub fn default_configuration(sess: &Session) -> ast::CrateConfig {
946946 let mut ret = HashSet :: new ( ) ;
947947 // Target bindings.
948948 ret. insert ( ( Symbol :: intern ( "target_os" ) , Some ( Symbol :: intern ( os) ) ) ) ;
949- if let Some ( fam) = sess. target . target . options . target_family {
950- ret. insert ( ( Symbol :: intern ( "target_family" ) , Some ( fam) ) ) ;
949+ if let Some ( ref fam) = sess. target . target . options . target_family {
950+ ret. insert ( ( Symbol :: intern ( "target_family" ) , Some ( Symbol :: intern ( fam) ) ) ) ;
951951 if fam == "windows" || fam == "unix" {
952- ret. insert ( ( fam, None ) ) ;
952+ ret. insert ( ( Symbol :: intern ( fam) , None ) ) ;
953953 }
954954 }
955955 ret. insert ( ( Symbol :: intern ( "target_arch" ) , Some ( Symbol :: intern ( arch) ) ) ) ;
You can’t perform that action at this time.
0 commit comments