mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
{rustc::util -> rustc_data_structures}::captures
This commit is contained in:
parent
2db97ede27
commit
69b1e5cc3d
@ -22,7 +22,7 @@ use crate::traits::{Obligation, ObligationCause, PredicateObligation};
|
||||
use crate::ty::fold::TypeFoldable;
|
||||
use crate::ty::subst::{GenericArg, GenericArgKind};
|
||||
use crate::ty::{self, BoundVar, Ty, TyCtxt};
|
||||
use crate::util::captures::Captures;
|
||||
use rustc_data_structures::captures::Captures;
|
||||
use rustc_index::vec::Idx;
|
||||
use rustc_index::vec::IndexVec;
|
||||
use rustc_span::DUMMY_SP;
|
||||
|
@ -3,7 +3,7 @@ use crate::infer::{GenericKind, VerifyBound};
|
||||
use crate::traits;
|
||||
use crate::ty::subst::{InternalSubsts, Subst};
|
||||
use crate::ty::{self, Ty, TyCtxt};
|
||||
use crate::util::captures::Captures;
|
||||
use rustc_data_structures::captures::Captures;
|
||||
use rustc_hir::def_id::DefId;
|
||||
|
||||
/// The `TypeOutlives` struct has the job of "lowering" a `T: 'a`
|
||||
|
@ -100,7 +100,6 @@ pub mod ty;
|
||||
|
||||
pub mod util {
|
||||
pub mod bug;
|
||||
pub mod captures;
|
||||
pub mod common;
|
||||
}
|
||||
|
||||
|
@ -26,8 +26,8 @@ use crate::ty::layout::VariantIdx;
|
||||
use crate::ty::subst::{InternalSubsts, Subst, SubstsRef};
|
||||
use crate::ty::util::{Discr, IntTypeExt};
|
||||
use crate::ty::walk::TypeWalker;
|
||||
use crate::util::captures::Captures;
|
||||
use arena::SyncDroplessArena;
|
||||
use rustc_data_structures::captures::Captures;
|
||||
use rustc_data_structures::fx::FxHashMap;
|
||||
use rustc_data_structures::fx::FxIndexMap;
|
||||
use rustc_data_structures::stable_hasher::{HashStable, StableHasher};
|
||||
|
@ -13,11 +13,10 @@ use crate::ty::layout::VariantIdx;
|
||||
use crate::ty::subst::{GenericArg, GenericArgKind, InternalSubsts, Subst, SubstsRef};
|
||||
use crate::ty::{self, AdtDef, DefIdTree, Discr, Ty, TyCtxt, TypeFlags, TypeFoldable};
|
||||
use crate::ty::{List, ParamEnv, ParamEnvAnd, TyS};
|
||||
use crate::util::captures::Captures;
|
||||
use polonius_engine::Atom;
|
||||
use rustc_data_structures::captures::Captures;
|
||||
use rustc_hir as hir;
|
||||
use rustc_hir::def_id::DefId;
|
||||
|
||||
use polonius_engine::Atom;
|
||||
use rustc_index::vec::Idx;
|
||||
use rustc_macros::HashStable;
|
||||
use rustc_span::symbol::{kw, Symbol};
|
||||
|
@ -40,8 +40,10 @@ use rustc::hir::map::Map;
|
||||
use rustc::lint;
|
||||
use rustc::lint::builtin;
|
||||
use rustc::middle::cstore::CrateStore;
|
||||
use rustc::util::captures::Captures;
|
||||
use rustc::session::config::nightly_options;
|
||||
use rustc::session::Session;
|
||||
use rustc::{bug, span_bug};
|
||||
use rustc_data_structures::captures::Captures;
|
||||
use rustc_data_structures::fx::FxHashSet;
|
||||
use rustc_data_structures::sync::Lrc;
|
||||
use rustc_error_codes::*;
|
||||
|
@ -67,6 +67,7 @@ macro_rules! unlikely {
|
||||
pub mod base_n;
|
||||
pub mod binary_search_util;
|
||||
pub mod box_region;
|
||||
pub mod captures;
|
||||
pub mod const_cstr;
|
||||
pub mod flock;
|
||||
pub mod fx;
|
||||
|
@ -16,8 +16,8 @@ use rustc::mir::{self, interpret, BodyAndCache, Promoted};
|
||||
use rustc::session::Session;
|
||||
use rustc::ty::codec::TyDecoder;
|
||||
use rustc::ty::{self, Ty, TyCtxt};
|
||||
use rustc::util::captures::Captures;
|
||||
use rustc::util::common::record_time;
|
||||
use rustc_data_structures::captures::Captures;
|
||||
use rustc_data_structures::fingerprint::Fingerprint;
|
||||
use rustc_data_structures::fx::FxHashMap;
|
||||
use rustc_data_structures::svh::Svh;
|
||||
|
@ -229,6 +229,7 @@ use self::SliceKind::*;
|
||||
use self::Usefulness::*;
|
||||
use self::WitnessPreference::*;
|
||||
|
||||
use rustc_data_structures::captures::Captures;
|
||||
use rustc_data_structures::fx::FxHashMap;
|
||||
use rustc_index::vec::Idx;
|
||||
|
||||
@ -243,7 +244,6 @@ use rustc_hir::{HirId, RangeEnd};
|
||||
use rustc::lint;
|
||||
use rustc::mir::interpret::{truncate, AllocId, ConstValue, Pointer, Scalar};
|
||||
use rustc::mir::Field;
|
||||
use rustc::util::captures::Captures;
|
||||
use rustc::util::common::ErrorReported;
|
||||
|
||||
use rustc_span::{Span, DUMMY_SP};
|
||||
|
@ -114,6 +114,7 @@ use rustc::ty::{
|
||||
self, AdtKind, CanonicalUserType, Const, GenericParamDefKind, RegionKind, ToPolyTraitRef,
|
||||
ToPredicate, Ty, TyCtxt, UserType,
|
||||
};
|
||||
use rustc_data_structures::captures::Captures;
|
||||
use rustc_data_structures::fx::{FxHashMap, FxHashSet};
|
||||
use rustc_hir as hir;
|
||||
use rustc_hir::def::{CtorOf, DefKind, Res};
|
||||
@ -146,7 +147,6 @@ use crate::lint;
|
||||
use crate::require_c_abi_if_c_variadic;
|
||||
use crate::session::config::EntryFnType;
|
||||
use crate::session::Session;
|
||||
use crate::util::captures::Captures;
|
||||
use crate::util::common::{indenter, ErrorReported};
|
||||
use crate::TypeAndSubsts;
|
||||
|
||||
|
@ -32,7 +32,7 @@ use rustc::ty::util::Discr;
|
||||
use rustc::ty::util::IntTypeExt;
|
||||
use rustc::ty::{self, AdtKind, Const, DefIdTree, ToPolyTraitRef, Ty, TyCtxt};
|
||||
use rustc::ty::{ReprOptions, ToPredicate};
|
||||
use rustc::util::captures::Captures;
|
||||
use rustc_data_structures::captures::Captures;
|
||||
use rustc_data_structures::fx::FxHashMap;
|
||||
use rustc_hir as hir;
|
||||
use rustc_hir::def::{CtorKind, DefKind, Res};
|
||||
|
Loading…
Reference in New Issue
Block a user