diff options
| author | b-naber <bn263@gmx.de> | 2022-07-04 21:30:31 +0200 |
|---|---|---|
| committer | b-naber <bn263@gmx.de> | 2022-09-13 17:44:53 +0200 |
| commit | bea0a6dc84d60119078f14211db842e51f987923 (patch) | |
| tree | b446a2a7b4180ed628b898adcae8ed84cad81afe /compiler/rustc_borrowck/src | |
| parent | 372c4fd67fc41f0a06b1e6d804e8345db508761a (diff) | |
address review
Diffstat (limited to 'compiler/rustc_borrowck/src')
| -rw-r--r-- | compiler/rustc_borrowck/src/type_check/mod.rs | 2 |
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 { |
