2020-09-24 12:49:22 +00:00
|
|
|
error: usage of `Arc<T>` when T is a buffer type
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/rc_buffer_arc.rs:10:11
|
2020-09-24 12:49:22 +00:00
|
|
|
|
|
|
|
|
LL | bad1: Arc<String>,
|
|
|
|
| ^^^^^^^^^^^ help: try: `Arc<str>`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::rc-buffer` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::rc_buffer)]`
|
2020-09-24 12:49:22 +00:00
|
|
|
|
|
|
|
error: usage of `Arc<T>` when T is a buffer type
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/rc_buffer_arc.rs:11:11
|
2020-09-24 12:49:22 +00:00
|
|
|
|
|
|
|
|
LL | bad2: Arc<PathBuf>,
|
|
|
|
| ^^^^^^^^^^^^ help: try: `Arc<std::path::Path>`
|
|
|
|
|
|
|
|
error: usage of `Arc<T>` when T is a buffer type
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/rc_buffer_arc.rs:12:11
|
2020-09-24 12:49:22 +00:00
|
|
|
|
|
|
|
|
LL | bad3: Arc<Vec<u8>>,
|
|
|
|
| ^^^^^^^^^^^^ help: try: `Arc<[u8]>`
|
|
|
|
|
|
|
|
error: usage of `Arc<T>` when T is a buffer type
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/rc_buffer_arc.rs:13:11
|
2020-09-24 12:49:22 +00:00
|
|
|
|
|
|
|
|
LL | bad4: Arc<OsString>,
|
|
|
|
| ^^^^^^^^^^^^^ help: try: `Arc<std::ffi::OsStr>`
|
|
|
|
|
|
|
|
error: usage of `Arc<T>` when T is a buffer type
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/rc_buffer_arc.rs:19:17
|
2020-09-24 12:49:22 +00:00
|
|
|
|
|
|
|
|
LL | fn func_bad1(_: Arc<String>) {}
|
|
|
|
| ^^^^^^^^^^^ help: try: `Arc<str>`
|
|
|
|
|
|
|
|
error: usage of `Arc<T>` when T is a buffer type
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/rc_buffer_arc.rs:20:17
|
2020-09-24 12:49:22 +00:00
|
|
|
|
|
|
|
|
LL | fn func_bad2(_: Arc<PathBuf>) {}
|
|
|
|
| ^^^^^^^^^^^^ help: try: `Arc<std::path::Path>`
|
|
|
|
|
|
|
|
error: usage of `Arc<T>` when T is a buffer type
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/rc_buffer_arc.rs:21:17
|
2020-09-24 12:49:22 +00:00
|
|
|
|
|
|
|
|
LL | fn func_bad3(_: Arc<Vec<u8>>) {}
|
|
|
|
| ^^^^^^^^^^^^ help: try: `Arc<[u8]>`
|
|
|
|
|
|
|
|
error: usage of `Arc<T>` when T is a buffer type
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/rc_buffer_arc.rs:22:17
|
2020-09-24 12:49:22 +00:00
|
|
|
|
|
|
|
|
LL | fn func_bad4(_: Arc<OsString>) {}
|
|
|
|
| ^^^^^^^^^^^^^ help: try: `Arc<std::ffi::OsStr>`
|
|
|
|
|
|
|
|
error: aborting due to 8 previous errors
|
|
|
|
|