Skip to content

Commit 9abf6fc

Browse files
committed
Fix ptr offset tests
1 parent 20dfaf7 commit 9abf6fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ui/ptr_offset_with_cast.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: use of `offset` with a `usize` casted to an `isize`
44
10 | ptr.offset(offset_usize as isize);
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `ptr.add(offset_usize)`
66
|
7-
= note: `-D ptr-offset-with-cast` implied by `-D warnings`
7+
= note: `-D clippy::ptr-offset-with-cast` implied by `-D warnings`
88

99
error: use of `wrapping_offset` with a `usize` casted to an `isize`
1010
--> $DIR/ptr_offset_with_cast.rs:14:9

0 commit comments

Comments
 (0)