about summary refs log tree commit diff
path: root/compiler/rustc_borrowck/src
diff options
context:
space:
mode:
authorb-naber <bn263@gmx.de>2022-07-04 21:30:31 +0200
committerb-naber <bn263@gmx.de>2022-09-13 17:44:53 +0200
commitbea0a6dc84d60119078f14211db842e51f987923 (patch)
treeb446a2a7b4180ed628b898adcae8ed84cad81afe /compiler/rustc_borrowck/src
parent372c4fd67fc41f0a06b1e6d804e8345db508761a (diff)
address review
Diffstat (limited to 'compiler/rustc_borrowck/src')
-rw-r--r--compiler/rustc_borrowck/src/type_check/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_borrowck/src/type_check/mod.rs b/compiler/rustc_borrowck/src/type_check/mod.rs
index ed9ede029a8..5efb716429f 100644
--- a/compiler/rustc_borrowck/src/type_check/mod.rs
+++ b/compiler/rustc_borrowck/src/type_check/mod.rs
@@ -1819,7 +1819,7 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
                     _ => None,
                 },
                 ConstantKind::Unevaluated(uv, _) => Some(uv),
-                _ => None,
+                ConstantKind::Val(..) => None,
             };
 
             if let Some(uv) = maybe_uneval {