@@ -16,7 +16,7 @@ use rustc::infer::region_constraints::{RegionConstraintData, Constraint};
16
16
use rustc:: middle:: resolve_lifetime as rl;
17
17
use rustc:: middle:: lang_items;
18
18
use rustc:: middle:: stability;
19
- use rustc:: mir:: interpret:: { GlobalId , ConstValue } ;
19
+ use rustc:: mir:: interpret:: GlobalId ;
20
20
use rustc:: hir;
21
21
use rustc:: hir:: def:: { CtorKind , DefKind , Res } ;
22
22
use rustc:: hir:: def_id:: { CrateNum , DefId , CRATE_DEF_INDEX , LOCAL_CRATE } ;
@@ -3075,7 +3075,7 @@ impl<'tcx> Clean<Type> for Ty<'tcx> {
3075
3075
ty:: Slice ( ty) => Slice ( box ty. clean ( cx) ) ,
3076
3076
ty:: Array ( ty, n) => {
3077
3077
let mut n = cx. tcx . lift ( & n) . expect ( "array lift failed" ) ;
3078
- if let ConstValue :: Unevaluated ( def_id, substs) = n. val {
3078
+ if let ty :: ConstKind :: Unevaluated ( def_id, substs) = n. val {
3079
3079
let param_env = cx. tcx . param_env ( def_id) ;
3080
3080
let cid = GlobalId {
3081
3081
instance : ty:: Instance :: new ( def_id, substs) ,
@@ -4234,7 +4234,7 @@ fn name_from_pat(p: &hir::Pat) -> String {
4234
4234
4235
4235
fn print_const ( cx : & DocContext < ' _ > , n : & ty:: Const < ' _ > ) -> String {
4236
4236
match n. val {
4237
- ConstValue :: Unevaluated ( def_id, _) => {
4237
+ ty :: ConstKind :: Unevaluated ( def_id, _) => {
4238
4238
if let Some ( hir_id) = cx. tcx . hir ( ) . as_local_hir_id ( def_id) {
4239
4239
print_const_expr ( cx, cx. tcx . hir ( ) . body_owned_by ( hir_id) )
4240
4240
} else {
0 commit comments