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_passes | |
| 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_passes')
| -rw-r--r-- | src/librustc_passes/Cargo.toml | 1 | ||||
| -rw-r--r-- | src/librustc_passes/check_const.rs | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/librustc_passes/Cargo.toml b/src/librustc_passes/Cargo.toml index 7a98734bdbe..bb2f7c67418 100644 --- a/src/librustc_passes/Cargo.toml +++ b/src/librustc_passes/Cargo.toml @@ -12,6 +12,7 @@ path = "lib.rs" log = "0.4" rustc = { path = "../librustc" } rustc_data_structures = { path = "../librustc_data_structures" } +rustc_feature = { path = "../librustc_feature" } rustc_index = { path = "../librustc_index" } rustc_parse = { path = "../librustc_parse" } rustc_target = { path = "../librustc_target" } diff --git a/src/librustc_passes/check_const.rs b/src/librustc_passes/check_const.rs index 24bc088e24a..697a3ae873c 100644 --- a/src/librustc_passes/check_const.rs +++ b/src/librustc_passes/check_const.rs @@ -13,8 +13,9 @@ use rustc::hir::map::Map; use rustc::hir; use rustc::ty::TyCtxt; use rustc::ty::query::Providers; +use rustc_feature::Features; use syntax::ast::Mutability; -use syntax::feature_gate::{emit_feature_err, Features, GateIssue}; +use syntax::feature_gate::{emit_feature_err, GateIssue}; use syntax::span_err; use syntax_pos::{sym, Span}; use rustc_error_codes::*; |
