diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-11-30 00:23:38 +0100 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-11-30 00:25:40 +0100 |
| commit | 3d080a4a77274abd747f780b446e6fedce14fac7 (patch) | |
| tree | df823c82dfaebcc574099330709277b5830ccd9d /src/librustc_parse | |
| parent | c4375c9dfdd7f31de909f6e9384bac1bf37b44da (diff) | |
| download | rust-3d080a4a77274abd747f780b446e6fedce14fac7.tar.gz rust-3d080a4a77274abd747f780b446e6fedce14fac7.zip | |
introduce crate rustc_feature and move active, accepted, and removed to it
Diffstat (limited to 'src/librustc_parse')
| -rw-r--r-- | src/librustc_parse/Cargo.toml | 1 | ||||
| -rw-r--r-- | src/librustc_parse/config.rs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/librustc_parse/Cargo.toml b/src/librustc_parse/Cargo.toml index a9175487a75..95b3256f53a 100644 --- a/src/librustc_parse/Cargo.toml +++ b/src/librustc_parse/Cargo.toml @@ -16,6 +16,7 @@ syntax_pos = { path = "../libsyntax_pos" } syntax = { path = "../libsyntax" } errors = { path = "../librustc_errors", package = "rustc_errors" } rustc_data_structures = { path = "../librustc_data_structures" } +rustc_feature = { path = "../librustc_feature" } rustc_lexer = { path = "../librustc_lexer" } rustc_target = { path = "../librustc_target" } smallvec = { version = "1.0", features = ["union", "may_dangle"] } diff --git a/src/librustc_parse/config.rs b/src/librustc_parse/config.rs index 7ce555ed57a..9c309f60515 100644 --- a/src/librustc_parse/config.rs +++ b/src/librustc_parse/config.rs @@ -9,11 +9,11 @@ //! [#64197]: https://github.com/rust-lang/rust/issues/64197 use crate::validate_attr; +use rustc_feature::Features; use syntax::attr::HasAttrs; use syntax::feature_gate::{ feature_err, EXPLAIN_STMT_ATTR_SYNTAX, - Features, get_features, GateIssue, }; |
