Avoid cloning ast::CrateConfig
auto merge of #12048 : sanxiyn/rust/crate-config, r=alexcrichton