File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed
tests/ui/precondition-checks Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -160,12 +160,10 @@ impl<'tcx> LateLintPass<'tcx> for PtrNullChecks {
160
160
let ( arg_indices, are_zsts_allowed) : ( & [ _ ] , _ ) = match diag_name {
161
161
sym:: ptr_read
162
162
| sym:: ptr_read_unaligned
163
- | sym:: ptr_read_volatile
164
163
| sym:: ptr_replace
165
164
| sym:: ptr_write
166
165
| sym:: ptr_write_bytes
167
- | sym:: ptr_write_unaligned
168
- | sym:: ptr_write_volatile => ( & [ 0 ] , true ) ,
166
+ | sym:: ptr_write_unaligned => ( & [ 0 ] , true ) ,
169
167
sym:: slice_from_raw_parts | sym:: slice_from_raw_parts_mut => ( & [ 0 ] , false ) ,
170
168
sym:: ptr_copy
171
169
| sym:: ptr_copy_nonoverlapping
Original file line number Diff line number Diff line change 3
3
//@ error-pattern: unsafe precondition(s) violated: ptr::read_volatile requires
4
4
//@ revisions: misaligned
5
5
6
- #![ allow( invalid_null_arguments) ]
7
-
8
6
use std:: ptr;
9
7
10
8
fn main ( ) {
You can’t perform that action at this time.
0 commit comments