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