@@ -16,7 +16,6 @@ use infer::InferCtxt;
1616use ich:: { StableHashingContext , NodeIdHashingMode } ;
1717use traits:: { self , Reveal } ;
1818use ty:: { self , Ty , TyCtxt , TypeFoldable } ;
19- use ty:: ParamEnv ;
2019use ty:: fold:: TypeVisitor ;
2120use ty:: layout:: { Layout , LayoutError } ;
2221use ty:: subst:: { Subst , Kind } ;
@@ -148,7 +147,7 @@ pub enum Representability {
148147 SelfRecursive ( Vec < Span > ) ,
149148}
150149
151- impl < ' tcx > ParamEnv < ' tcx > {
150+ impl < ' tcx > ty :: ParamEnv < ' tcx > {
152151 /// Construct a trait environment suitable for contexts where
153152 /// there are no where clauses in scope.
154153 pub fn empty ( ) -> Self {
@@ -720,23 +719,23 @@ impl<'a, 'gcx, 'tcx, W> TypeVisitor<'tcx> for TypeIdHasher<'a, 'gcx, 'tcx, W>
720719impl < ' a , ' tcx > ty:: TyS < ' tcx > {
721720 pub fn moves_by_default ( & ' tcx self ,
722721 tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
723- param_env : ParamEnv < ' tcx > ,
722+ param_env : ty :: ParamEnv < ' tcx > ,
724723 span : Span )
725724 -> bool {
726725 !tcx. at ( span) . is_copy_raw ( param_env. and ( self ) )
727726 }
728727
729728 pub fn is_sized ( & ' tcx self ,
730729 tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
731- param_env : ParamEnv < ' tcx > ,
730+ param_env : ty :: ParamEnv < ' tcx > ,
732731 span : Span ) -> bool
733732 {
734733 tcx. at ( span) . is_sized_raw ( param_env. and ( self ) )
735734 }
736735
737736 pub fn is_freeze ( & ' tcx self ,
738737 tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
739- param_env : ParamEnv < ' tcx > ,
738+ param_env : ty :: ParamEnv < ' tcx > ,
740739 span : Span ) -> bool
741740 {
742741 tcx. at ( span) . is_freeze_raw ( param_env. and ( self ) )
0 commit comments