]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/ptr_offset_with_cast.stderr
Auto merge of #4478 - tsurai:master, r=flip1995
[rust.git] / tests / ui / ptr_offset_with_cast.stderr
index 16bbf328b3375e4d9ff00e8a9e1603a2a191f7be..b5c7a03e2775e8ff55d60d168eeddcb7da2cb97a 100644 (file)
@@ -1,15 +1,15 @@
 error: use of `offset` with a `usize` casted to an `isize`
-  --> $DIR/ptr_offset_with_cast.rs:10:9
+  --> $DIR/ptr_offset_with_cast.rs:12:9
    |
-10 |         ptr.offset(offset_usize as isize);
+LL |         ptr.offset(offset_usize as isize);
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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`
-  --> $DIR/ptr_offset_with_cast.rs:14:9
+  --> $DIR/ptr_offset_with_cast.rs:16:9
    |
-14 |         ptr.wrapping_offset(offset_usize as isize);
+LL |         ptr.wrapping_offset(offset_usize as isize);
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `ptr.wrapping_add(offset_usize)`
 
 error: aborting due to 2 previous errors