mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-26 22:50:56 +00:00
Fix ptr offset tests
This commit is contained in:
parent
20dfaf7842
commit
9abf6fca9c
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ error: use of `offset` with a `usize` casted to an `isize`
|
||||||
10 | ptr.offset(offset_usize as isize);
|
10 | ptr.offset(offset_usize as isize);
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `ptr.add(offset_usize)`
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `ptr.add(offset_usize)`
|
||||||
|
|
|
|
||||||
= note: `-D ptr-offset-with-cast` implied by `-D warnings`
|
= note: `-D clippy::ptr-offset-with-cast` implied by `-D warnings`
|
||||||
|
|
||||||
error: use of `wrapping_offset` with a `usize` casted to an `isize`
|
error: use of `wrapping_offset` with a `usize` casted to an `isize`
|
||||||
--> $DIR/ptr_offset_with_cast.rs:14:9
|
--> $DIR/ptr_offset_with_cast.rs:14:9
|
||||||
|
|
Loading…
Reference in a new issue