Type level consts can show up in MIR type checker
This commit is contained in:
parent
0cffe5cb95
commit
1cbb062e54
1 changed files with 2 additions and 2 deletions
|
@ -349,8 +349,8 @@ impl<'a, 'b, 'tcx> Visitor<'tcx> for TypeVerifier<'a, 'b, 'tcx> {
|
|||
let tcx = self.tcx();
|
||||
let maybe_uneval = match constant.const_ {
|
||||
Const::Ty(_, ct) => match ct.kind() {
|
||||
ty::ConstKind::Unevaluated(_) => {
|
||||
bug!("should not encounter unevaluated Const::Ty here, got {:?}", ct)
|
||||
ty::ConstKind::Unevaluated(uv) => {
|
||||
Some(UnevaluatedConst { def: uv.def, args: uv.args, promoted: None })
|
||||
}
|
||||
_ => None,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue