@@ -2,77 +2,89 @@ error: this function has too many arguments (8/7)
22 --> $DIR/functions.rs:8:1
33 |
44LL | fn bad(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool, _eight: ()) {}
5- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66 |
77 = note: `-D clippy::too-many-arguments` implied by `-D warnings`
88
99error: 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
1123 |
1224LL | fn bad(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool, _eight: ());
1325 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1426
1527error: this function has too many arguments (8/7)
16- --> $DIR/functions.rs:34 :5
28+ --> $DIR/functions.rs:54 :5
1729 |
1830LL | fn bad_method(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool, _eight: ()) {}
19- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2032
2133error: this public function dereferences a raw pointer but is not marked `unsafe`
22- --> $DIR/functions.rs:43 :34
34+ --> $DIR/functions.rs:63 :34
2335 |
2436LL | println!("{}", unsafe { *p });
2537 | ^
2638 |
2739 = note: `-D clippy::not-unsafe-ptr-arg-deref` implied by `-D warnings`
2840
2941error: this public function dereferences a raw pointer but is not marked `unsafe`
30- --> $DIR/functions.rs:44 :35
42+ --> $DIR/functions.rs:64 :35
3143 |
3244LL | println!("{:?}", unsafe { p.as_ref() });
3345 | ^
3446
3547error: this public function dereferences a raw pointer but is not marked `unsafe`
36- --> $DIR/functions.rs:45 :33
48+ --> $DIR/functions.rs:65 :33
3749 |
3850LL | unsafe { std::ptr::read(p) };
3951 | ^
4052
4153error: this public function dereferences a raw pointer but is not marked `unsafe`
42- --> $DIR/functions.rs:56 :30
54+ --> $DIR/functions.rs:76 :30
4355 |
4456LL | println!("{}", unsafe { *p });
4557 | ^
4658
4759error: this public function dereferences a raw pointer but is not marked `unsafe`
48- --> $DIR/functions.rs:57 :31
60+ --> $DIR/functions.rs:77 :31
4961 |
5062LL | println!("{:?}", unsafe { p.as_ref() });
5163 | ^
5264
5365error: this public function dereferences a raw pointer but is not marked `unsafe`
54- --> $DIR/functions.rs:58 :29
66+ --> $DIR/functions.rs:78 :29
5567 |
5668LL | unsafe { std::ptr::read(p) };
5769 | ^
5870
5971error: this public function dereferences a raw pointer but is not marked `unsafe`
60- --> $DIR/functions.rs:67 :34
72+ --> $DIR/functions.rs:87 :34
6173 |
6274LL | println!("{}", unsafe { *p });
6375 | ^
6476
6577error: this public function dereferences a raw pointer but is not marked `unsafe`
66- --> $DIR/functions.rs:68 :35
78+ --> $DIR/functions.rs:88 :35
6779 |
6880LL | println!("{:?}", unsafe { p.as_ref() });
6981 | ^
7082
7183error: this public function dereferences a raw pointer but is not marked `unsafe`
72- --> $DIR/functions.rs:69 :33
84+ --> $DIR/functions.rs:89 :33
7385 |
7486LL | unsafe { std::ptr::read(p) };
7587 | ^
7688
77- error: aborting due to 12 previous errors
89+ error: aborting due to 13 previous errors
7890
0 commit comments