Duplicate CrateConfig into Session

Since it's just a type alias this isn't too difficult and once Session
is moved back we can make this be the canonical location.
This commit is contained in:
Mark Rousskov 2019-11-29 09:33:51 -05:00
parent e810b7ef5c
commit 2731075a6b

View File

@ -12,7 +12,9 @@ use rustc_feature::UnstableFeatures;
use rustc_target::spec::{LinkerFlavor, MergeFunctions, PanicStrategy, RelroLevel};
use rustc_target::spec::{Target, TargetTriple};
use syntax::ast::CrateConfig;
// Duplicated from syntax::ast for now
type CrateConfig = FxHashSet<(Symbol, Option<Symbol>)>;
use syntax::source_map::{FileName, FilePathMapping};
use syntax::edition::{Edition, EDITION_NAME_LIST, DEFAULT_EDITION};
use syntax::symbol::{sym, Symbol};