@@ -30,57 +30,57 @@ error: this function has too many arguments (8/7)
30
30
LL | fn bad_method(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool, _eight: ()) {}
31
31
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32
32
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`
34
34
--> $DIR/functions.rs:63:34
35
35
|
36
36
LL | println!("{}", unsafe { *p });
37
37
| ^
38
38
|
39
39
= note: `-D clippy::not-unsafe-ptr-arg-deref` implied by `-D warnings`
40
40
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`
42
42
--> $DIR/functions.rs:64:35
43
43
|
44
44
LL | println!("{:?}", unsafe { p.as_ref() });
45
45
| ^
46
46
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`
48
48
--> $DIR/functions.rs:65:33
49
49
|
50
50
LL | unsafe { std::ptr::read(p) };
51
51
| ^
52
52
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`
54
54
--> $DIR/functions.rs:76:30
55
55
|
56
56
LL | println!("{}", unsafe { *p });
57
57
| ^
58
58
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`
60
60
--> $DIR/functions.rs:77:31
61
61
|
62
62
LL | println!("{:?}", unsafe { p.as_ref() });
63
63
| ^
64
64
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`
66
66
--> $DIR/functions.rs:78:29
67
67
|
68
68
LL | unsafe { std::ptr::read(p) };
69
69
| ^
70
70
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`
72
72
--> $DIR/functions.rs:87:34
73
73
|
74
74
LL | println!("{}", unsafe { *p });
75
75
| ^
76
76
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`
78
78
--> $DIR/functions.rs:88:35
79
79
|
80
80
LL | println!("{:?}", unsafe { p.as_ref() });
81
81
| ^
82
82
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`
84
84
--> $DIR/functions.rs:89:33
85
85
|
86
86
LL | unsafe { std::ptr::read(p) };
0 commit comments