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