fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
3.9 KiB110 linesraw
1error: this function has too many arguments (8/7)
2  --> $DIR/functions.rs:8:1
3   |
4LL | 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   = help: to override `-D warnings` add `#[allow(clippy::too_many_arguments)]`
9
10error: this function has too many arguments (8/7)
11  --> $DIR/functions.rs:13:1
12   |
13LL | / fn bad_multiline(
14LL | |
15LL | |     one: u32,
16LL | |     two: u32,
17...  |
18LL | |     eight: ()
19LL | | ) {
20   | |_^
21
22error: this function has too many arguments (8/7)
23  --> $DIR/functions.rs:48:5
24   |
25LL |     fn bad(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool, _eight: ());
26   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27
28error: this function has too many arguments (8/7)
29  --> $DIR/functions.rs:58:5
30   |
31LL |     fn bad_method(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool, _eight: ()) {}
32   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33
34error: this public function might dereference a raw pointer but is not marked `unsafe`
35  --> $DIR/functions.rs:68:34
36   |
37LL |         println!("{}", unsafe { *p });
38   |                                  ^
39   |
40   = note: `-D clippy::not-unsafe-ptr-arg-deref` implied by `-D warnings`
41   = help: to override `-D warnings` add `#[allow(clippy::not_unsafe_ptr_arg_deref)]`
42
43error: this public function might dereference a raw pointer but is not marked `unsafe`
44  --> $DIR/functions.rs:71:35
45   |
46LL |         println!("{:?}", unsafe { p.as_ref() });
47   |                                   ^
48
49error: this public function might dereference a raw pointer but is not marked `unsafe`
50  --> $DIR/functions.rs:73:33
51   |
52LL |         unsafe { std::ptr::read(p) };
53   |                                 ^
54
55error: this public function might dereference a raw pointer but is not marked `unsafe`
56  --> $DIR/functions.rs:85:30
57   |
58LL |     println!("{}", unsafe { *p });
59   |                              ^
60
61error: this public function might dereference a raw pointer but is not marked `unsafe`
62  --> $DIR/functions.rs:87:31
63   |
64LL |     println!("{:?}", unsafe { p.as_ref() });
65   |                               ^
66
67error: this public function might dereference a raw pointer but is not marked `unsafe`
68  --> $DIR/functions.rs:89:29
69   |
70LL |     unsafe { std::ptr::read(p) };
71   |                             ^
72
73error: this public function might dereference a raw pointer but is not marked `unsafe`
74  --> $DIR/functions.rs:96:30
75   |
76LL |     println!("{}", unsafe { *p });
77   |                              ^
78
79error: this public function might dereference a raw pointer but is not marked `unsafe`
80  --> $DIR/functions.rs:98:31
81   |
82LL |     println!("{:?}", unsafe { p.as_ref() });
83   |                               ^
84
85error: this public function might dereference a raw pointer but is not marked `unsafe`
86  --> $DIR/functions.rs:100:29
87   |
88LL |     unsafe { std::ptr::read(p) };
89   |                             ^
90
91error: this public function might dereference a raw pointer but is not marked `unsafe`
92  --> $DIR/functions.rs:110:34
93   |
94LL |         println!("{}", unsafe { *p });
95   |                                  ^
96
97error: this public function might dereference a raw pointer but is not marked `unsafe`
98  --> $DIR/functions.rs:112:35
99   |
100LL |         println!("{:?}", unsafe { p.as_ref() });
101   |                                   ^
102
103error: this public function might dereference a raw pointer but is not marked `unsafe`
104  --> $DIR/functions.rs:114:33
105   |
106LL |         unsafe { std::ptr::read(p) };
107   |                                 ^
108
109error: aborting due to 16 previous errors
110