From 4dcb86767111149bcd233d6ac5c782d345d1e10b Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Thu, 22 Dec 2016 22:29:33 -0700 Subject: [PATCH] Convert fam to Symbol --- src/librustc/session/config.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/librustc/session/config.rs b/src/librustc/session/config.rs index 17b5199e7ed3b..7ae063c8c2793 100644 --- a/src/librustc/session/config.rs +++ b/src/librustc/session/config.rs @@ -946,10 +946,10 @@ pub fn default_configuration(sess: &Session) -> ast::CrateConfig { let mut ret = HashSet::new(); // Target bindings. ret.insert((Symbol::intern("target_os"), Some(Symbol::intern(os)))); - if let Some(fam) = sess.target.target.options.target_family { - ret.insert((Symbol::intern("target_family"), Some(fam))); + if let Some(ref fam) = sess.target.target.options.target_family { + ret.insert((Symbol::intern("target_family"), Some(Symbol::intern(fam)))); if fam == "windows" || fam == "unix" { - ret.insert((fam, None)); + ret.insert((Symbol::intern(fam), None)); } } ret.insert((Symbol::intern("target_arch"), Some(Symbol::intern(arch))));