mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
auto merge of #15910 : sfackler/rust/nogc, r=cmr
This commit is contained in:
@@ -441,12 +441,6 @@ pub fn build_configuration(sess: &Session) -> ast::CrateConfig {
|
||||
if sess.opts.test {
|
||||
append_configuration(&mut user_cfg, InternedString::new("test"))
|
||||
}
|
||||
// If the user requested GC, then add the GC cfg
|
||||
append_configuration(&mut user_cfg, if sess.opts.gc {
|
||||
InternedString::new("gc")
|
||||
} else {
|
||||
InternedString::new("nogc")
|
||||
});
|
||||
user_cfg.move_iter().collect::<Vec<_>>().append(default_cfg.as_slice())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user