2017-02-07 21:05:30 +01:00
|
|
|
error: this function has too many arguments (8/7)
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/functions.rs:8:1
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | fn bad(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool, _eight: ()) {}
|
2023-10-02 21:24:23 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-08-01 16:30:44 +02:00
|
|
|
= note: `-D clippy::too-many-arguments` implied by `-D warnings`
|
2023-08-01 14:02:21 +02:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::too_many_arguments)]`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
|
error: this function has too many arguments (8/7)
|
2025-02-12 23:44:38 +01:00
|
|
|
--> tests/ui/functions.rs:12:1
|
2019-05-01 15:32:54 -04:00
|
|
|
|
|
|
|
|
|
LL | / fn bad_multiline(
|
2023-08-24 21:32:12 +02:00
|
|
|
LL | |
|
2025-02-11 17:57:08 +01:00
|
|
|
LL | |
|
2019-05-01 15:32:54 -04:00
|
|
|
LL | | one: u32,
|
|
|
|
|
... |
|
|
|
|
|
LL | | eight: ()
|
|
|
|
|
LL | | ) {
|
2023-10-02 21:24:23 +00:00
|
|
|
| |_^
|
2019-05-01 15:32:54 -04:00
|
|
|
|
|
|
|
|
error: this function has too many arguments (8/7)
|
2025-02-12 23:44:38 +01:00
|
|
|
--> tests/ui/functions.rs:48:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | fn bad(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool, _eight: ());
|
2019-09-18 08:37:41 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
|
error: this function has too many arguments (8/7)
|
2025-02-12 23:44:38 +01:00
|
|
|
--> tests/ui/functions.rs:58:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | fn bad_method(_one: u32, _two: u32, _three: &str, _four: bool, _five: f32, _six: f32, _seven: bool, _eight: ()) {}
|
2023-10-02 21:24:23 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2021-06-03 08:41:37 +02:00
|
|
|
error: this public function might dereference a raw pointer but is not marked `unsafe`
|
2025-02-12 23:44:38 +01:00
|
|
|
--> tests/ui/functions.rs:68:34
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | println!("{}", unsafe { *p });
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^
|
|
|
|
|
|
|
2018-08-01 16:30:44 +02:00
|
|
|
= note: `-D clippy::not-unsafe-ptr-arg-deref` implied by `-D warnings`
|
2023-08-01 14:02:21 +02:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::not_unsafe_ptr_arg_deref)]`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2021-06-03 08:41:37 +02:00
|
|
|
error: this public function might dereference a raw pointer but is not marked `unsafe`
|
2025-02-12 23:44:38 +01:00
|
|
|
--> tests/ui/functions.rs:71:35
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | println!("{:?}", unsafe { p.as_ref() });
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^
|
|
|
|
|
|
2021-06-03 08:41:37 +02:00
|
|
|
error: this public function might dereference a raw pointer but is not marked `unsafe`
|
2025-02-12 23:44:38 +01:00
|
|
|
--> tests/ui/functions.rs:74:33
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | unsafe { std::ptr::read(p) };
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^
|
|
|
|
|
|
2021-06-03 08:41:37 +02:00
|
|
|
error: this public function might dereference a raw pointer but is not marked `unsafe`
|
2025-02-12 23:44:38 +01:00
|
|
|
--> tests/ui/functions.rs:86:30
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | println!("{}", unsafe { *p });
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^
|
|
|
|
|
|
2021-06-03 08:41:37 +02:00
|
|
|
error: this public function might dereference a raw pointer but is not marked `unsafe`
|
2025-02-12 23:44:38 +01:00
|
|
|
--> tests/ui/functions.rs:89:31
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | println!("{:?}", unsafe { p.as_ref() });
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^
|
|
|
|
|
|
2021-06-03 08:41:37 +02:00
|
|
|
error: this public function might dereference a raw pointer but is not marked `unsafe`
|
2025-02-12 23:44:38 +01:00
|
|
|
--> tests/ui/functions.rs:92:29
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | unsafe { std::ptr::read(p) };
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^
|
|
|
|
|
|
2021-06-03 08:41:37 +02:00
|
|
|
error: this public function might dereference a raw pointer but is not marked `unsafe`
|
2025-02-12 23:44:38 +01:00
|
|
|
--> tests/ui/functions.rs:99:30
|
2022-01-17 13:29:07 +01:00
|
|
|
|
|
|
|
|
|
LL | println!("{}", unsafe { *p });
|
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
|
error: this public function might dereference a raw pointer but is not marked `unsafe`
|
2025-02-12 23:44:38 +01:00
|
|
|
--> tests/ui/functions.rs:102:31
|
2022-01-17 13:29:07 +01:00
|
|
|
|
|
|
|
|
|
LL | println!("{:?}", unsafe { p.as_ref() });
|
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
|
error: this public function might dereference a raw pointer but is not marked `unsafe`
|
2025-02-12 23:44:38 +01:00
|
|
|
--> tests/ui/functions.rs:105:29
|
2022-01-17 13:29:07 +01:00
|
|
|
|
|
|
|
|
|
LL | unsafe { std::ptr::read(p) };
|
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
|
error: this public function might dereference a raw pointer but is not marked `unsafe`
|
2025-02-12 23:44:38 +01:00
|
|
|
--> tests/ui/functions.rs:115:34
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | println!("{}", unsafe { *p });
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^
|
|
|
|
|
|
2021-06-03 08:41:37 +02:00
|
|
|
error: this public function might dereference a raw pointer but is not marked `unsafe`
|
2025-02-12 23:44:38 +01:00
|
|
|
--> tests/ui/functions.rs:118:35
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | println!("{:?}", unsafe { p.as_ref() });
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^
|
|
|
|
|
|
2021-06-03 08:41:37 +02:00
|
|
|
error: this public function might dereference a raw pointer but is not marked `unsafe`
|
2025-02-12 23:44:38 +01:00
|
|
|
--> tests/ui/functions.rs:121:33
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | unsafe { std::ptr::read(p) };
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^
|
|
|
|
|
|
2022-01-17 13:29:07 +01:00
|
|
|
error: aborting due to 16 previous errors
|
2018-01-16 17:06:27 +01:00
|
|
|
|