Skip to content

Commit 3ebfa18

Browse files
committed
Rename in librustdoc.
1 parent 1f2c18c commit 3ebfa18

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustdoc/clean/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use rustc::infer::region_constraints::{RegionConstraintData, Constraint};
1616
use rustc::middle::resolve_lifetime as rl;
1717
use rustc::middle::lang_items;
1818
use rustc::middle::stability;
19-
use rustc::mir::interpret::{GlobalId, ConstValue};
19+
use rustc::mir::interpret::GlobalId;
2020
use rustc::hir;
2121
use rustc::hir::def::{CtorKind, DefKind, Res};
2222
use rustc::hir::def_id::{CrateNum, DefId, CRATE_DEF_INDEX, LOCAL_CRATE};
@@ -3075,7 +3075,7 @@ impl<'tcx> Clean<Type> for Ty<'tcx> {
30753075
ty::Slice(ty) => Slice(box ty.clean(cx)),
30763076
ty::Array(ty, n) => {
30773077
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 {
30793079
let param_env = cx.tcx.param_env(def_id);
30803080
let cid = GlobalId {
30813081
instance: ty::Instance::new(def_id, substs),
@@ -4234,7 +4234,7 @@ fn name_from_pat(p: &hir::Pat) -> String {
42344234

42354235
fn print_const(cx: &DocContext<'_>, n: &ty::Const<'_>) -> String {
42364236
match n.val {
4237-
ConstValue::Unevaluated(def_id, _) => {
4237+
ty::ConstKind::Unevaluated(def_id, _) => {
42384238
if let Some(hir_id) = cx.tcx.hir().as_local_hir_id(def_id) {
42394239
print_const_expr(cx, cx.tcx.hir().body_owned_by(hir_id))
42404240
} else {

0 commit comments

Comments
 (0)