@@ -30,57 +30,57 @@ error: this function has too many arguments (8/7)
3030LL | fn bad_method(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool, _eight: ()) {}
3131 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3232
33- error: this public function dereferences a raw pointer but is not marked `unsafe`
33+ error: this public function might dereference a raw pointer but is not marked `unsafe`
3434 --> $DIR/functions.rs:63:34
3535 |
3636LL | println!("{}", unsafe { *p });
3737 | ^
3838 |
3939 = note: `-D clippy::not-unsafe-ptr-arg-deref` implied by `-D warnings`
4040
41- error: this public function dereferences a raw pointer but is not marked `unsafe`
41+ error: this public function might dereference a raw pointer but is not marked `unsafe`
4242 --> $DIR/functions.rs:64:35
4343 |
4444LL | println!("{:?}", unsafe { p.as_ref() });
4545 | ^
4646
47- error: this public function dereferences a raw pointer but is not marked `unsafe`
47+ error: this public function might dereference a raw pointer but is not marked `unsafe`
4848 --> $DIR/functions.rs:65:33
4949 |
5050LL | unsafe { std::ptr::read(p) };
5151 | ^
5252
53- error: this public function dereferences a raw pointer but is not marked `unsafe`
53+ error: this public function might dereference a raw pointer but is not marked `unsafe`
5454 --> $DIR/functions.rs:76:30
5555 |
5656LL | println!("{}", unsafe { *p });
5757 | ^
5858
59- error: this public function dereferences a raw pointer but is not marked `unsafe`
59+ error: this public function might dereference a raw pointer but is not marked `unsafe`
6060 --> $DIR/functions.rs:77:31
6161 |
6262LL | println!("{:?}", unsafe { p.as_ref() });
6363 | ^
6464
65- error: this public function dereferences a raw pointer but is not marked `unsafe`
65+ error: this public function might dereference a raw pointer but is not marked `unsafe`
6666 --> $DIR/functions.rs:78:29
6767 |
6868LL | unsafe { std::ptr::read(p) };
6969 | ^
7070
71- error: this public function dereferences a raw pointer but is not marked `unsafe`
71+ error: this public function might dereference a raw pointer but is not marked `unsafe`
7272 --> $DIR/functions.rs:87:34
7373 |
7474LL | println!("{}", unsafe { *p });
7575 | ^
7676
77- error: this public function dereferences a raw pointer but is not marked `unsafe`
77+ error: this public function might dereference a raw pointer but is not marked `unsafe`
7878 --> $DIR/functions.rs:88:35
7979 |
8080LL | println!("{:?}", unsafe { p.as_ref() });
8181 | ^
8282
83- error: this public function dereferences a raw pointer but is not marked `unsafe`
83+ error: this public function might dereference a raw pointer but is not marked `unsafe`
8484 --> $DIR/functions.rs:89:33
8585 |
8686LL | unsafe { std::ptr::read(p) };
0 commit comments