rename is_valid_for
to is_valid
This commit is contained in:
parent
dd34e0c966
commit
9095cf9905
4 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue