Skip to content

Commit 62cb74a

Browse files
committed
Conform names
1 parent 852f915 commit 62cb74a

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/librustc/ich/impls_ty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ for ::middle::const_val::ErrKind<'gcx> {
372372
MiscCatchAll |
373373
IndexOpFeatureGated |
374374
TypeckError |
375-
MatchCheckError => {
375+
CheckMatchError => {
376376
// nothing to do
377377
}
378378
UnimplementedConstVal(s) => {

src/librustc/middle/const_val.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ pub enum ErrKind<'tcx> {
107107
ErroneousReferencedConstant(Box<ConstEvalErr<'tcx>>),
108108

109109
TypeckError,
110-
MatchCheckError,
110+
CheckMatchError,
111111
}
112112

113113
impl<'tcx> From<ConstMathErr> for ErrKind<'tcx> {
@@ -169,7 +169,7 @@ impl<'a, 'gcx, 'tcx> ConstEvalErr<'tcx> {
169169
ErroneousReferencedConstant(_) => simple!("could not evaluate referenced constant"),
170170

171171
TypeckError => simple!("type-checking failed"),
172-
MatchCheckError => simple!("match-checking failed"),
172+
CheckMatchError => simple!("match-checking failed"),
173173
}
174174
}
175175

@@ -215,7 +215,7 @@ impl<'a, 'gcx, 'tcx> ConstEvalErr<'tcx> {
215215
primary_kind: &str)
216216
{
217217
match self.kind {
218-
ErrKind::TypeckError | ErrKind::MatchCheckError => return,
218+
ErrKind::TypeckError | ErrKind::CheckMatchError => return,
219219
_ => {}
220220
}
221221
self.struct_error(tcx, primary_span, primary_kind).emit();

src/librustc/ty/structural_impls.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ impl<'a, 'tcx> Lift<'tcx> for const_val::ErrKind<'a> {
477477
}
478478

479479
TypeckError => TypeckError,
480-
MatchCheckError => MatchCheckError,
480+
CheckMatchError => CheckMatchError,
481481
})
482482
}
483483
}

src/librustc_const_eval/eval.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ pub(crate) fn const_eval<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
703703
if tcx.check_match(def_id).is_err() {
704704
return Err(ConstEvalErr {
705705
span: tcx.def_span(key.value.0),
706-
kind: MatchCheckError,
706+
kind: CheckMatchError,
707707
});
708708
}
709709

0 commit comments

Comments
 (0)