about summary refs log tree commit diff
diff options
context:
space:
mode:
authorShotaro Yamada <sinkuu@sinkuu.xyz>2017-11-24 18:50:17 +0900
committerShotaro Yamada <sinkuu@sinkuu.xyz>2017-11-25 23:27:16 +0900
commit62cb74af3cb0abc4243a5e7db090749b0100d827 (patch)
treedee1c5b0990fea68c30f8566f9a42886f96a1e4d
parent852f915e5f9dff61e6101e76d8b806c7e11e7a51 (diff)
downloadrust-62cb74af3cb0abc4243a5e7db090749b0100d827.tar.gz
rust-62cb74af3cb0abc4243a5e7db090749b0100d827.zip
Conform names
-rw-r--r--src/librustc/ich/impls_ty.rs2
-rw-r--r--src/librustc/middle/const_val.rs6
-rw-r--r--src/librustc/ty/structural_impls.rs2
-rw-r--r--src/librustc_const_eval/eval.rs2
4 files changed, 6 insertions, 6 deletions
diff --git a/src/librustc/ich/impls_ty.rs b/src/librustc/ich/impls_ty.rs
index 9ff4d53e09a..9609ae5a0be 100644
--- a/src/librustc/ich/impls_ty.rs
+++ b/src/librustc/ich/impls_ty.rs
@@ -372,7 +372,7 @@ for ::middle::const_val::ErrKind<'gcx> {
             MiscCatchAll |
             IndexOpFeatureGated |
             TypeckError |
-            MatchCheckError => {
+            CheckMatchError => {
                 // nothing to do
             }
             UnimplementedConstVal(s) => {
diff --git a/src/librustc/middle/const_val.rs b/src/librustc/middle/const_val.rs
index f7870bd8e24..440af39a0d4 100644
--- a/src/librustc/middle/const_val.rs
+++ b/src/librustc/middle/const_val.rs
@@ -107,7 +107,7 @@ pub enum ErrKind<'tcx> {
     ErroneousReferencedConstant(Box<ConstEvalErr<'tcx>>),
 
     TypeckError,
-    MatchCheckError,
+    CheckMatchError,
 }
 
 impl<'tcx> From<ConstMathErr> for ErrKind<'tcx> {
@@ -169,7 +169,7 @@ impl<'a, 'gcx, 'tcx> ConstEvalErr<'tcx> {
             ErroneousReferencedConstant(_) => simple!("could not evaluate referenced constant"),
 
             TypeckError => simple!("type-checking failed"),
-            MatchCheckError => simple!("match-checking failed"),
+            CheckMatchError => simple!("match-checking failed"),
         }
     }
 
@@ -215,7 +215,7 @@ impl<'a, 'gcx, 'tcx> ConstEvalErr<'tcx> {
         primary_kind: &str)
     {
         match self.kind {
-            ErrKind::TypeckError | ErrKind::MatchCheckError => return,
+            ErrKind::TypeckError | ErrKind::CheckMatchError => return,
             _ => {}
         }
         self.struct_error(tcx, primary_span, primary_kind).emit();
diff --git a/src/librustc/ty/structural_impls.rs b/src/librustc/ty/structural_impls.rs
index 0e3870c58e5..08152942379 100644
--- a/src/librustc/ty/structural_impls.rs
+++ b/src/librustc/ty/structural_impls.rs
@@ -477,7 +477,7 @@ impl<'a, 'tcx> Lift<'tcx> for const_val::ErrKind<'a> {
             }
 
             TypeckError => TypeckError,
-            MatchCheckError => MatchCheckError,
+            CheckMatchError => CheckMatchError,
         })
     }
 }
diff --git a/src/librustc_const_eval/eval.rs b/src/librustc_const_eval/eval.rs
index b4b12e994c8..eb4db6365cc 100644
--- a/src/librustc_const_eval/eval.rs
+++ b/src/librustc_const_eval/eval.rs
@@ -703,7 +703,7 @@ pub(crate) fn const_eval<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
         if tcx.check_match(def_id).is_err() {
             return Err(ConstEvalErr {
                 span: tcx.def_span(key.value.0),
-                kind: MatchCheckError,
+                kind: CheckMatchError,
             });
         }