rustc_index: Add a ZERO
constant to index types
It is commonly used.
This commit is contained in:
parent
ceab6128fa
commit
b40ea03f8a
42 changed files with 80 additions and 90 deletions
|
@ -377,7 +377,7 @@ fn layout_of_uncached<'tcx>(
|
|||
}
|
||||
|
||||
// Type of the first ADT field:
|
||||
let f0_ty = fields[FieldIdx::from_u32(0)].ty(tcx, args);
|
||||
let f0_ty = fields[FieldIdx::ZERO].ty(tcx, args);
|
||||
|
||||
// Heterogeneous SIMD vectors are not supported:
|
||||
// (should be caught by typeck)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue