]> git.lizzy.rs Git - rust.git/blob - clippy_tests/examples/functions.stderr
Fix the test suite after cargo update
[rust.git] / clippy_tests / examples / functions.stderr
1 error: this function has too many arguments (8/7)
2   --> functions.rs:11:1
3    |
4 11 | / fn bad(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool, _eight: ()) {
5 12 | | }
6    | |_^
7    |
8    = note: `-D too-many-arguments` implied by `-D warnings`
9
10 error: this function has too many arguments (8/7)
11   --> functions.rs:19:5
12    |
13 19 |     fn bad(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool, _eight: ());
14    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15    |
16    = note: `-D too-many-arguments` implied by `-D warnings`
17
18 error: this function has too many arguments (8/7)
19   --> functions.rs:28:5
20    |
21 28 |     fn bad_method(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool, _eight: ()) {}
22    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23    |
24    = note: `-D too-many-arguments` implied by `-D warnings`
25
26 error: this public function dereferences a raw pointer but is not marked `unsafe`
27   --> functions.rs:37:34
28    |
29 37 |         println!("{}", unsafe { *p });
30    |                                  ^
31    |
32    = note: `-D not-unsafe-ptr-arg-deref` implied by `-D warnings`
33
34 error: this public function dereferences a raw pointer but is not marked `unsafe`
35   --> functions.rs:38:35
36    |
37 38 |         println!("{:?}", unsafe { p.as_ref() });
38    |                                   ^
39    |
40    = note: `-D not-unsafe-ptr-arg-deref` implied by `-D warnings`
41
42 error: this public function dereferences a raw pointer but is not marked `unsafe`
43   --> functions.rs:39:33
44    |
45 39 |         unsafe { std::ptr::read(p) };
46    |                                 ^
47    |
48    = note: `-D not-unsafe-ptr-arg-deref` implied by `-D warnings`
49
50 error: this public function dereferences a raw pointer but is not marked `unsafe`
51   --> functions.rs:50:30
52    |
53 50 |     println!("{}", unsafe { *p });
54    |                              ^
55    |
56    = note: `-D not-unsafe-ptr-arg-deref` implied by `-D warnings`
57
58 error: this public function dereferences a raw pointer but is not marked `unsafe`
59   --> functions.rs:51:31
60    |
61 51 |     println!("{:?}", unsafe { p.as_ref() });
62    |                               ^
63    |
64    = note: `-D not-unsafe-ptr-arg-deref` implied by `-D warnings`
65
66 error: this public function dereferences a raw pointer but is not marked `unsafe`
67   --> functions.rs:52:29
68    |
69 52 |     unsafe { std::ptr::read(p) };
70    |                             ^
71    |
72    = note: `-D not-unsafe-ptr-arg-deref` implied by `-D warnings`
73
74 error: this public function dereferences a raw pointer but is not marked `unsafe`
75   --> functions.rs:61:34
76    |
77 61 |         println!("{}", unsafe { *p });
78    |                                  ^
79    |
80    = note: `-D not-unsafe-ptr-arg-deref` implied by `-D warnings`
81
82 error: this public function dereferences a raw pointer but is not marked `unsafe`
83   --> functions.rs:62:35
84    |
85 62 |         println!("{:?}", unsafe { p.as_ref() });
86    |                                   ^
87    |
88    = note: `-D not-unsafe-ptr-arg-deref` implied by `-D warnings`
89
90 error: this public function dereferences a raw pointer but is not marked `unsafe`
91   --> functions.rs:63:33
92    |
93 63 |         unsafe { std::ptr::read(p) };
94    |                                 ^
95    |
96    = note: `-D not-unsafe-ptr-arg-deref` implied by `-D warnings`
97
98 error: aborting due to previous error(s)
99
100
101 To learn more, run the command again with --verbose.