]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_passes/check_const.rs
Rollup merge of #67712 - Centril:stabilize-slice_patterns, r=matthewjasper
[rust.git] / src / librustc_passes / check_const.rs
index 072a51391c877301b63a177aa1f462422dec9de6..39ba2fbc63b4392dace79cacf1f9dc047e43a4cd 100644 (file)
@@ -7,18 +7,18 @@
 //! errors. We still look for those primitives in the MIR const-checker to ensure nothing slips
 //! through, but errors for structured control flow in a `const` should be emitted here.
 
-use errors::struct_span_err;
-use rustc::hir::intravisit::{self, NestedVisitorMap, Visitor};
 use rustc::hir::map::Map;
 use rustc::session::config::nightly_options;
+use rustc::session::parse::feature_err;
 use rustc::ty::query::Providers;
 use rustc::ty::TyCtxt;
 use rustc_error_codes::*;
+use rustc_errors::struct_span_err;
 use rustc_hir as hir;
 use rustc_hir::def_id::DefId;
+use rustc_hir::intravisit::{self, NestedVisitorMap, Visitor};
 use rustc_span::{sym, Span, Symbol};
 use syntax::ast::Mutability;
-use syntax::feature_gate::feature_err;
 
 use std::fmt;