diff options
| author | Bastian Kauschke <bastian_kauschke@hotmail.de> | 2020-07-15 10:55:41 +0200 |
|---|---|---|
| committer | Bastian Kauschke <bastian_kauschke@hotmail.de> | 2020-07-15 13:06:47 +0200 |
| commit | bf3104ec24f788538fd1db84bf3b8819c303418c (patch) | |
| tree | f07461efcd9d54c9f8cb520c72a86a817e7d347d | |
| parent | c5b9463d266a084f40ccec85a7587a8c375c179b (diff) | |
| download | rust-bf3104ec24f788538fd1db84bf3b8819c303418c.tar.gz rust-bf3104ec24f788538fd1db84bf3b8819c303418c.zip | |
WithOptConstParam::dummy -> WithOptConstParam::unknown
| -rw-r--r-- | clippy_lints/src/consts.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/consts.rs b/clippy_lints/src/consts.rs index 891cb69bb56..e6ef54f528f 100644 --- a/clippy_lints/src/consts.rs +++ b/clippy_lints/src/consts.rs @@ -332,7 +332,7 @@ impl<'a, 'tcx> ConstEvalLateContext<'a, 'tcx> { let result = self .lcx .tcx - .const_eval_resolve(self.param_env, ty::WithOptConstParam::dummy(def_id), substs, None, None) + .const_eval_resolve(self.param_env, ty::WithOptConstParam::unknown(def_id), substs, None, None) .ok() .map(|val| rustc_middle::ty::Const::from_value(self.lcx.tcx, val, ty))?; let result = miri_to_const(&result); |
