about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYuki OKUSHI <huyuumi.dev@gmail.com>2019-03-25 03:55:13 +0900
committerYuki OKUSHI <huyuumi.dev@gmail.com>2019-03-29 04:32:36 +0900
commit6c8e3a5378e41e08a323139bb7aaa8a8823ec9bc (patch)
treed4ccfff7eab5c40b62057427460b151198e14bd1
parentf0de8e82b868f7f4484b6e3e42543791c8b24b7f (diff)
downloadrust-6c8e3a5378e41e08a323139bb7aaa8a8823ec9bc.tar.gz
rust-6c8e3a5378e41e08a323139bb7aaa8a8823ec9bc.zip
Remove unused variable
-rw-r--r--src/librustc_mir/const_eval.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_mir/const_eval.rs b/src/librustc_mir/const_eval.rs
index 1542cdf1e3e..1c3f7882b9f 100644
--- a/src/librustc_mir/const_eval.rs
+++ b/src/librustc_mir/const_eval.rs
@@ -654,7 +654,7 @@ pub fn const_eval_raw_provider<'a, 'tcx>(
                                         v));
                     v
                 },
-                Err(ErrorReported) => ErrorHandled::Reported,
+                Err(_) => ErrorHandled::Reported,
             }
         } else if def_id.is_local() {
             // constant defined in this crate, we can figure out a lint level!