use relevant span when unifying ConstVarValues

This commit is contained in:
Bastian Kauschke 2020-09-23 11:00:44 +02:00
parent 3dbfdb0182
commit 0e84b61053
2 changed files with 9 additions and 8 deletions

View file

@ -309,7 +309,8 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
);
}
Some(origin.span).filter(|s| !s.is_dummy())
debug_assert!(!origin.span.is_dummy());
Some(origin.span)
} else {
bug!("unexpect const: {:?}", ct);
};