1
Fork 0

rename is_valid_for to is_valid

This commit is contained in:
Andreas Liljeqvist 2021-09-07 20:51:09 +02:00
parent dd34e0c966
commit 9095cf9905
4 changed files with 5 additions and 5 deletions

View file

@ -308,7 +308,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
// then `i1 1` (i.e., E::B) is effectively `i8 -1`.
signed = !scalar.is_bool() && s;
if !scalar.is_always_valid_for(bx.cx())
if !scalar.is_always_valid(bx.cx())
&& scalar.valid_range.end >= scalar.valid_range.start
{
// We want `table[e as usize ± k]` to not