Skip to content

Commit ff6b7cd

Browse files
committed
Rename in librustc_traits.
1 parent ee33e02 commit ff6b7cd

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/librustc_traits/chalk_context/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ use rustc::ty::{self, TyCtxt};
3737
use rustc::ty::fold::{TypeFoldable, TypeFolder, TypeVisitor};
3838
use rustc::ty::query::Providers;
3939
use rustc::ty::subst::{GenericArg, GenericArgKind};
40-
use rustc::mir::interpret::ConstValue;
4140
use syntax_pos::DUMMY_SP;
4241

4342
use std::fmt::{self, Debug};
@@ -286,7 +285,7 @@ impl context::ContextOps<ChalkArenas<'tcx>> for ChalkContext<'tcx> {
286285
_ => false,
287286
},
288287
GenericArgKind::Const(ct) => match ct.val {
289-
ConstValue::Bound(debruijn, bound_ct) => {
288+
ty::ConstKind::Bound(debruijn, bound_ct) => {
290289
debug_assert_eq!(debruijn, ty::INNERMOST);
291290
cvar == bound_ct
292291
}

src/librustc_traits/chalk_context/resolvent_ops.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ use rustc::traits::{
1919
use rustc::ty::{self, Ty, TyCtxt};
2020
use rustc::ty::subst::GenericArg;
2121
use rustc::ty::relate::{Relate, RelateResult, TypeRelation};
22-
use rustc::mir::interpret::ConstValue;
2322
use syntax_pos::DUMMY_SP;
2423

2524
use super::{ChalkInferenceContext, ChalkArenas, ChalkExClause, ConstrainedSubst};
@@ -287,7 +286,7 @@ impl TypeRelation<'tcx> for AnswerSubstitutor<'cx, 'tcx> {
287286
a: &'tcx ty::Const<'tcx>,
288287
b: &'tcx ty::Const<'tcx>,
289288
) -> RelateResult<'tcx, &'tcx ty::Const<'tcx>> {
290-
if let ty::Const { val: ConstValue::Bound(debruijn, bound_ct), .. } = a {
289+
if let ty::Const { val: ty::ConstKind::Bound(debruijn, bound_ct), .. } = a {
291290
if *debruijn == self.binder_index {
292291
self.unify_free_answer_var(*bound_ct, b.into())?;
293292
return Ok(b);
@@ -296,8 +295,8 @@ impl TypeRelation<'tcx> for AnswerSubstitutor<'cx, 'tcx> {
296295

297296
match (a, b) {
298297
(
299-
ty::Const { val: ConstValue::Bound(a_debruijn, a_bound), .. },
300-
ty::Const { val: ConstValue::Bound(b_debruijn, b_bound), .. },
298+
ty::Const { val: ty::ConstKind::Bound(a_debruijn, a_bound), .. },
299+
ty::Const { val: ty::ConstKind::Bound(b_debruijn, b_bound), .. },
301300
) => {
302301
assert_eq!(a_debruijn, b_debruijn);
303302
assert_eq!(a_bound, b_bound);

0 commit comments

Comments
 (0)