11error: use of `offset` with zero
2- --> tests/ui/ptr_offset_by_literal.rs:12 :17
2+ --> tests/ui/ptr_offset_by_literal.rs:13 :17
33 |
44LL | let _ = ptr.offset(0);
55 | ^^^----------
@@ -10,15 +10,15 @@ LL | let _ = ptr.offset(0);
1010 = help: to override `-D warnings` add `#[allow(clippy::ptr_offset_by_literal)]`
1111
1212error: use of `offset` with zero
13- --> tests/ui/ptr_offset_by_literal.rs:14 :17
13+ --> tests/ui/ptr_offset_by_literal.rs:15 :17
1414 |
1515LL | let _ = ptr.offset(-0);
1616 | ^^^-----------
1717 | |
1818 | help: remove the call to `offset`
1919
2020error: use of `offset` with a literal
21- --> tests/ui/ptr_offset_by_literal.rs:17 :17
21+ --> tests/ui/ptr_offset_by_literal.rs:18 :17
2222 |
2323LL | let _ = ptr.offset(5);
2424 | ^^^^^^^^^^^^^
@@ -30,7 +30,7 @@ LL + let _ = ptr.add(5);
3030 |
3131
3232error: use of `offset` with a literal
33- --> tests/ui/ptr_offset_by_literal.rs:19 :17
33+ --> tests/ui/ptr_offset_by_literal.rs:20 :17
3434 |
3535LL | let _ = ptr.offset(-5);
3636 | ^^^^^^^^^^^^^^
@@ -42,7 +42,7 @@ LL + let _ = ptr.sub(5);
4242 |
4343
4444error: use of `wrapping_offset` with a literal
45- --> tests/ui/ptr_offset_by_literal.rs:25 :17
45+ --> tests/ui/ptr_offset_by_literal.rs:26 :17
4646 |
4747LL | let _ = ptr.wrapping_offset(5isize);
4848 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -54,7 +54,7 @@ LL + let _ = ptr.wrapping_add(5);
5454 |
5555
5656error: use of `wrapping_offset` with a literal
57- --> tests/ui/ptr_offset_by_literal.rs:27 :17
57+ --> tests/ui/ptr_offset_by_literal.rs:28 :17
5858 |
5959LL | let _ = ptr.wrapping_offset(-5isize);
6060 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -66,7 +66,7 @@ LL + let _ = ptr.wrapping_sub(5);
6666 |
6767
6868error: use of `offset` with a literal
69- --> tests/ui/ptr_offset_by_literal.rs:30 :17
69+ --> tests/ui/ptr_offset_by_literal.rs:31 :17
7070 |
7171LL | let _ = ptr.offset(-(5));
7272 | ^^^^^^^^^^^^^^^^
@@ -78,7 +78,7 @@ LL + let _ = ptr.sub(5);
7878 |
7979
8080error: use of `wrapping_offset` with a literal
81- --> tests/ui/ptr_offset_by_literal.rs:32 :17
81+ --> tests/ui/ptr_offset_by_literal.rs:33 :17
8282 |
8383LL | let _ = ptr.wrapping_offset(-(5));
8484 | ^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -90,7 +90,7 @@ LL + let _ = ptr.wrapping_sub(5);
9090 |
9191
9292error: use of `offset` with a literal
93- --> tests/ui/ptr_offset_by_literal.rs:36 :17
93+ --> tests/ui/ptr_offset_by_literal.rs:37 :17
9494 |
9595LL | let _ = ptr.offset(2_147_483_647isize);
9696 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -102,7 +102,7 @@ LL + let _ = ptr.add(2_147_483_647);
102102 |
103103
104104error: use of `offset` with a literal
105- --> tests/ui/ptr_offset_by_literal.rs:38 :17
105+ --> tests/ui/ptr_offset_by_literal.rs:39 :17
106106 |
107107LL | let _ = ptr.offset(-2_147_483_648isize);
108108 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -114,7 +114,7 @@ LL + let _ = ptr.sub(2_147_483_648);
114114 |
115115
116116error: use of `offset` with a literal
117- --> tests/ui/ptr_offset_by_literal.rs:41 :17
117+ --> tests/ui/ptr_offset_by_literal.rs:42 :17
118118 |
119119LL | let _ = ptr.offset(5_0__isize);
120120 | ^^^^^^^^^^^^^^^^^^^^^^
@@ -126,7 +126,7 @@ LL + let _ = ptr.add(5_0);
126126 |
127127
128128error: use of `offset` with a literal
129- --> tests/ui/ptr_offset_by_literal.rs:43 :17
129+ --> tests/ui/ptr_offset_by_literal.rs:44 :17
130130 |
131131LL | let _ = ptr.offset(-5_0__isize);
132132 | ^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments