@@ -16,7 +16,6 @@ use infer::InferCtxt;
16
16
use ich:: { StableHashingContext , NodeIdHashingMode } ;
17
17
use traits:: { self , Reveal } ;
18
18
use ty:: { self , Ty , TyCtxt , TypeFoldable } ;
19
- use ty:: ParamEnv ;
20
19
use ty:: fold:: TypeVisitor ;
21
20
use ty:: layout:: { Layout , LayoutError } ;
22
21
use ty:: subst:: { Subst , Kind } ;
@@ -148,7 +147,7 @@ pub enum Representability {
148
147
SelfRecursive ( Vec < Span > ) ,
149
148
}
150
149
151
- impl < ' tcx > ParamEnv < ' tcx > {
150
+ impl < ' tcx > ty :: ParamEnv < ' tcx > {
152
151
/// Construct a trait environment suitable for contexts where
153
152
/// there are no where clauses in scope.
154
153
pub fn empty ( ) -> Self {
@@ -720,23 +719,23 @@ impl<'a, 'gcx, 'tcx, W> TypeVisitor<'tcx> for TypeIdHasher<'a, 'gcx, 'tcx, W>
720
719
impl < ' a , ' tcx > ty:: TyS < ' tcx > {
721
720
pub fn moves_by_default ( & ' tcx self ,
722
721
tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
723
- param_env : ParamEnv < ' tcx > ,
722
+ param_env : ty :: ParamEnv < ' tcx > ,
724
723
span : Span )
725
724
-> bool {
726
725
!tcx. at ( span) . is_copy_raw ( param_env. and ( self ) )
727
726
}
728
727
729
728
pub fn is_sized ( & ' tcx self ,
730
729
tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
731
- param_env : ParamEnv < ' tcx > ,
730
+ param_env : ty :: ParamEnv < ' tcx > ,
732
731
span : Span ) -> bool
733
732
{
734
733
tcx. at ( span) . is_sized_raw ( param_env. and ( self ) )
735
734
}
736
735
737
736
pub fn is_freeze ( & ' tcx self ,
738
737
tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
739
- param_env : ParamEnv < ' tcx > ,
738
+ param_env : ty :: ParamEnv < ' tcx > ,
740
739
span : Span ) -> bool
741
740
{
742
741
tcx. at ( span) . is_freeze_raw ( param_env. and ( self ) )
0 commit comments