diff options
| author | The8472 <git@infinite-source.de> | 2019-11-15 03:54:44 +0100 |
|---|---|---|
| committer | The8472 <git@infinite-source.de> | 2020-09-03 20:59:07 +0200 |
| commit | 328a75f766ed51aea6787c19c5df8f3e36183849 (patch) | |
| tree | 3694bb7a584556d2846c7030baeae1e72dd57b3a | |
| parent | 88b7ae642cbf1968452f63dca32a3c9567d4d8ff (diff) | |
| download | rust-328a75f766ed51aea6787c19c5df8f3e36183849.tar.gz rust-328a75f766ed51aea6787c19c5df8f3e36183849.zip | |
use add instead of offset
| -rw-r--r-- | library/alloc/src/vec.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/vec.rs b/library/alloc/src/vec.rs index a056f2abcd6..68d8bba6211 100644 --- a/library/alloc/src/vec.rs +++ b/library/alloc/src/vec.rs @@ -2156,7 +2156,7 @@ where debug_assert_eq!(original_ptr, src_buf); let src_idx = source_iter.ptr; unsafe { - let dst = src_buf.offset(front_buffer.count as isize); + let dst = src_buf.add(front_buffer.count); debug_assert!( dst as *const _ < src_idx, "InPlaceIterable implementation produced more\ |
