We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec88ffa commit 74608c7Copy full SHA for 74608c7
src/librustc_target/abi/mod.rs
@@ -661,10 +661,9 @@ impl FieldPlacement {
661
pub fn offset(&self, i: usize) -> Size {
662
match *self {
663
FieldPlacement::Union(count) => {
664
- assert!(i < count,
665
- "Tried to access field {} of union with {} fields", i, count);
+ assert!(i < count, "tried to access field {} of union with {} fields", i, count);
666
Size::ZERO
667
- },
+ }
668
FieldPlacement::Array { stride, count } => {
669
let i = i as u64;
670
assert!(i < count);
0 commit comments