use relevant span when unifying ConstVarValue
s
This commit is contained in:
parent
3dbfdb0182
commit
0e84b61053
2 changed files with 9 additions and 8 deletions
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue