@@ -180,15 +180,15 @@ fn push_debuginfo_type_name<'tcx>(
180180 if cpp_like_debuginfo {
181181 output. push_str ( "array$<" ) ;
182182 push_debuginfo_type_name ( tcx, inner_type, true , output, visited) ;
183- match len. val ( ) {
183+ match len. kind ( ) {
184184 ty:: ConstKind :: Param ( param) => write ! ( output, ",{}>" , param. name) . unwrap ( ) ,
185185 _ => write ! ( output, ",{}>" , len. eval_usize( tcx, ty:: ParamEnv :: reveal_all( ) ) )
186186 . unwrap ( ) ,
187187 }
188188 } else {
189189 output. push ( '[' ) ;
190190 push_debuginfo_type_name ( tcx, inner_type, true , output, visited) ;
191- match len. val ( ) {
191+ match len. kind ( ) {
192192 ty:: ConstKind :: Param ( param) => write ! ( output, "; {}]" , param. name) . unwrap ( ) ,
193193 _ => write ! ( output, "; {}]" , len. eval_usize( tcx, ty:: ParamEnv :: reveal_all( ) ) )
194194 . unwrap ( ) ,
@@ -679,7 +679,7 @@ fn push_generic_params_internal<'tcx>(
679679}
680680
681681fn push_const_param < ' tcx > ( tcx : TyCtxt < ' tcx > , ct : ty:: Const < ' tcx > , output : & mut String ) {
682- match ct. val ( ) {
682+ match ct. kind ( ) {
683683 ty:: ConstKind :: Param ( param) => {
684684 write ! ( output, "{}" , param. name)
685685 }
@@ -703,7 +703,7 @@ fn push_const_param<'tcx>(tcx: TyCtxt<'tcx>, ct: ty::Const<'tcx>, output: &mut S
703703 // but we get a deterministic, virtually unique value for the constant.
704704 let hcx = & mut tcx. create_stable_hashing_context ( ) ;
705705 let mut hasher = StableHasher :: new ( ) ;
706- hcx. while_hashing_spans ( false , |hcx| ct. val ( ) . hash_stable ( hcx, & mut hasher) ) ;
706+ hcx. while_hashing_spans ( false , |hcx| ct. kind ( ) . hash_stable ( hcx, & mut hasher) ) ;
707707 // Let's only emit 64 bits of the hash value. That should be plenty for
708708 // avoiding collisions and will make the emitted type names shorter.
709709 let hash: u64 = hasher. finish ( ) ;
0 commit comments