Skip to content

Commit 7257fc3

Browse files
wildarchsaleemjaffer
authored andcommitted
Make line fit within 100 character limit.
1 parent d47ec57 commit 7257fc3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustc/ty/layout.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1931,8 +1931,9 @@ impl<'a, 'tcx, C> TyLayoutMethods<'tcx, C> for Ty<'tcx>
19311931
result = field.ok()
19321932
.and_then(|field| {
19331933
if ptr_end <= field_start + field.size {
1934+
let off = offset - field_start;
19341935
// We found the right field, look inside it.
1935-
Self::pointee_info_at(field, cx, offset - field_start, param_env)
1936+
Self::pointee_info_at(field, cx, off, param_env)
19361937
} else {
19371938
None
19381939
}

0 commit comments

Comments
 (0)