try to get rid of mir::Const::normalize
This commit is contained in:
parent
e6eb45143c
commit
921a5ef6d7
3 changed files with 3 additions and 19 deletions
|
@ -516,9 +516,7 @@ impl<'a, 'tcx> TOFinder<'a, 'tcx> {
|
|||
// Avoid handling them, though this could be extended in the future.
|
||||
return;
|
||||
}
|
||||
let Some(value) =
|
||||
value.const_.normalize(self.tcx, self.param_env).try_to_scalar_int()
|
||||
else {
|
||||
let Some(value) = value.const_.try_eval_scalar_int(self.tcx, self.param_env) else {
|
||||
return;
|
||||
};
|
||||
let conds = conditions.map(self.arena, |c| Condition {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue