about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvarkor <github@varkor.com>2019-04-17 23:14:32 +0100
committervarkor <github@varkor.com>2019-05-01 23:11:19 +0100
commitd8b1ddba9b132c4853b4e7af8e4e906e7a0d37b2 (patch)
tree5cf5101aa00b6e46742207f65aa0522c4972c2fd
parentb872e6358549f6627fac1fa7028a547042152806 (diff)
Fix unused variable warning
-rw-r--r--src/librustc/infer/unify_key.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/infer/unify_key.rs b/src/librustc/infer/unify_key.rs
index d238f848d9f..678a45a84e9 100644
--- a/src/librustc/infer/unify_key.rs
+++ b/src/librustc/infer/unify_key.rs
@@ -131,8 +131,8 @@ impl<'tcx> UnifyValue for ConstVarValue<'tcx> {
     fn unify_values(value1: &Self, value2: &Self) -> Result<Self, Self::Error> {
         let val = match (value1.val, value2.val) {
             (
-                ConstVariableValue::Known { value: value1 },
-                ConstVariableValue::Known { value: value2 }
+                ConstVariableValue::Known { .. },
+                ConstVariableValue::Known { .. }
             ) => {
                 bug!("equating two const variables, both of which have known values")
             }