diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-11-29 16:09:00 -0500 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-12-03 12:19:17 -0500 |
| commit | 42c4ae0d4bada3ae2096a197e59474485459f2a9 (patch) | |
| tree | 6665b4c062a43da4293a8dbe53915b700a7685ad /src/libsyntax | |
| parent | cc2c33a1567f3a29a446ae2985080e55c4dc2b8b (diff) | |
| download | rust-42c4ae0d4bada3ae2096a197e59474485459f2a9.tar.gz rust-42c4ae0d4bada3ae2096a197e59474485459f2a9.zip | |
Deduplicate CrateConfig
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ast.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index ab91d99cff8..75ddf10514d 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -32,7 +32,6 @@ use crate::tokenstream::{TokenStream, TokenTree, DelimSpan}; use syntax_pos::symbol::{kw, sym, Symbol}; use syntax_pos::{Span, DUMMY_SP}; -use rustc_data_structures::fx::FxHashSet; use rustc_data_structures::stable_hasher::{HashStable, StableHasher}; use rustc_data_structures::sync::Lrc; use rustc_data_structures::thin_vec::ThinVec; @@ -431,9 +430,7 @@ pub struct WhereEqPredicate { pub rhs_ty: P<Ty>, } -/// The set of `MetaItem`s that define the compilation environment of the crate, -/// used to drive conditional compilation. -pub type CrateConfig = FxHashSet<(Name, Option<Symbol>)>; +pub use rustc_session::parse::CrateConfig; #[derive(Clone, RustcEncodable, RustcDecodable, Debug)] pub struct Crate { |
