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 {
946
946
let mut ret = HashSet :: new ( ) ;
947
947
// Target bindings.
948
948
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) ) ) ) ;
951
951
if fam == "windows" || fam == "unix" {
952
- ret. insert ( ( fam, None ) ) ;
952
+ ret. insert ( ( Symbol :: intern ( fam) , None ) ) ;
953
953
}
954
954
}
955
955
ret. insert ( ( Symbol :: intern ( "target_arch" ) , Some ( Symbol :: intern ( arch) ) ) ) ;
You can’t perform that action at this time.
0 commit comments