]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/functions.stderr
Merge commit '6ed6f1e6a1a8f414ba7e6d9b8222e7e5a1686e42' into clippyup
[rust.git] / src / tools / clippy / tests / ui / functions.stderr
1 error: this function has too many arguments (8/7)
2   --> $DIR/functions.rs:8:1
3    |
4 LL | fn bad(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool, _eight: ()) {}
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::too-many-arguments` implied by `-D warnings`
8
9 error: this function has too many arguments (8/7)
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
23    |
24 LL |     fn bad(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool, _eight: ());
25    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26
27 error: this function has too many arguments (8/7)
28   --> $DIR/functions.rs:54:5
29    |
30 LL |     fn bad_method(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool, _eight: ()) {}
31    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32
33 error: this public function dereferences a raw pointer but is not marked `unsafe`
34   --> $DIR/functions.rs:63:34
35    |
36 LL |         println!("{}", unsafe { *p });
37    |                                  ^
38    |
39    = note: `-D clippy::not-unsafe-ptr-arg-deref` implied by `-D warnings`
40
41 error: this public function dereferences a raw pointer but is not marked `unsafe`
42   --> $DIR/functions.rs:64:35
43    |
44 LL |         println!("{:?}", unsafe { p.as_ref() });
45    |                                   ^
46
47 error: this public function dereferences a raw pointer but is not marked `unsafe`
48   --> $DIR/functions.rs:65:33
49    |
50 LL |         unsafe { std::ptr::read(p) };
51    |                                 ^
52
53 error: this public function dereferences a raw pointer but is not marked `unsafe`
54   --> $DIR/functions.rs:76:30
55    |
56 LL |     println!("{}", unsafe { *p });
57    |                              ^
58
59 error: this public function dereferences a raw pointer but is not marked `unsafe`
60   --> $DIR/functions.rs:77:31
61    |
62 LL |     println!("{:?}", unsafe { p.as_ref() });
63    |                               ^
64
65 error: this public function dereferences a raw pointer but is not marked `unsafe`
66   --> $DIR/functions.rs:78:29
67    |
68 LL |     unsafe { std::ptr::read(p) };
69    |                             ^
70
71 error: this public function dereferences a raw pointer but is not marked `unsafe`
72   --> $DIR/functions.rs:87:34
73    |
74 LL |         println!("{}", unsafe { *p });
75    |                                  ^
76
77 error: this public function dereferences a raw pointer but is not marked `unsafe`
78   --> $DIR/functions.rs:88:35
79    |
80 LL |         println!("{:?}", unsafe { p.as_ref() });
81    |                                   ^
82
83 error: this public function dereferences a raw pointer but is not marked `unsafe`
84   --> $DIR/functions.rs:89:33
85    |
86 LL |         unsafe { std::ptr::read(p) };
87    |                                 ^
88
89 error: aborting due to 13 previous errors
90