@@ -2,77 +2,89 @@ error: this function has too many arguments (8/7)
2
2
--> $DIR/functions.rs:8:1
3
3
|
4
4
LL | fn bad(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool, _eight: ()) {}
5
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
6
|
7
7
= note: `-D clippy::too-many-arguments` implied by `-D warnings`
8
8
9
9
error: this function has too many arguments (8/7)
10
- --> $DIR/functions.rs:25:5
10
+ --> $DIR/functions.rs:11:1
11
+ |
12
+ LL | / fn bad_multiline(
13
+ LL | | one: u32,
14
+ LL | | two: u32,
15
+ LL | | three: &str,
16
+ ... |
17
+ LL | | eight: ()
18
+ LL | | ) {
19
+ | |_^
20
+
21
+ error: this function has too many arguments (8/7)
22
+ --> $DIR/functions.rs:45:5
11
23
|
12
24
LL | fn bad(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool, _eight: ());
13
25
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
26
15
27
error: this function has too many arguments (8/7)
16
- --> $DIR/functions.rs:34 :5
28
+ --> $DIR/functions.rs:54 :5
17
29
|
18
30
LL | fn bad_method(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool, _eight: ()) {}
19
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20
32
21
33
error: this public function dereferences a raw pointer but is not marked `unsafe`
22
- --> $DIR/functions.rs:43 :34
34
+ --> $DIR/functions.rs:63 :34
23
35
|
24
36
LL | println!("{}", unsafe { *p });
25
37
| ^
26
38
|
27
39
= note: `-D clippy::not-unsafe-ptr-arg-deref` implied by `-D warnings`
28
40
29
41
error: this public function dereferences a raw pointer but is not marked `unsafe`
30
- --> $DIR/functions.rs:44 :35
42
+ --> $DIR/functions.rs:64 :35
31
43
|
32
44
LL | println!("{:?}", unsafe { p.as_ref() });
33
45
| ^
34
46
35
47
error: this public function dereferences a raw pointer but is not marked `unsafe`
36
- --> $DIR/functions.rs:45 :33
48
+ --> $DIR/functions.rs:65 :33
37
49
|
38
50
LL | unsafe { std::ptr::read(p) };
39
51
| ^
40
52
41
53
error: this public function dereferences a raw pointer but is not marked `unsafe`
42
- --> $DIR/functions.rs:56 :30
54
+ --> $DIR/functions.rs:76 :30
43
55
|
44
56
LL | println!("{}", unsafe { *p });
45
57
| ^
46
58
47
59
error: this public function dereferences a raw pointer but is not marked `unsafe`
48
- --> $DIR/functions.rs:57 :31
60
+ --> $DIR/functions.rs:77 :31
49
61
|
50
62
LL | println!("{:?}", unsafe { p.as_ref() });
51
63
| ^
52
64
53
65
error: this public function dereferences a raw pointer but is not marked `unsafe`
54
- --> $DIR/functions.rs:58 :29
66
+ --> $DIR/functions.rs:78 :29
55
67
|
56
68
LL | unsafe { std::ptr::read(p) };
57
69
| ^
58
70
59
71
error: this public function dereferences a raw pointer but is not marked `unsafe`
60
- --> $DIR/functions.rs:67 :34
72
+ --> $DIR/functions.rs:87 :34
61
73
|
62
74
LL | println!("{}", unsafe { *p });
63
75
| ^
64
76
65
77
error: this public function dereferences a raw pointer but is not marked `unsafe`
66
- --> $DIR/functions.rs:68 :35
78
+ --> $DIR/functions.rs:88 :35
67
79
|
68
80
LL | println!("{:?}", unsafe { p.as_ref() });
69
81
| ^
70
82
71
83
error: this public function dereferences a raw pointer but is not marked `unsafe`
72
- --> $DIR/functions.rs:69 :33
84
+ --> $DIR/functions.rs:89 :33
73
85
|
74
86
LL | unsafe { std::ptr::read(p) };
75
87
| ^
76
88
77
- error: aborting due to 12 previous errors
89
+ error: aborting due to 13 previous errors
78
90
0 commit comments