diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-07-17 16:22:29 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-17 16:22:29 +0200 |
| commit | 23dd3a099c6b7fecaac4ba0b5c5605cf1687f568 (patch) | |
| tree | 9539f1ccabe49332bc1857597b667b1b1684fd5d /library/std/src/sys/pal/unix/stack_overflow.rs | |
| parent | c98487e3bebc81139973e2eb8008eb3a331cb309 (diff) | |
| parent | 4821b84b92a2f2bbed06191cab5cc44693e0652b (diff) | |
| download | rust-23dd3a099c6b7fecaac4ba0b5c5605cf1687f568.tar.gz rust-23dd3a099c6b7fecaac4ba0b5c5605cf1687f568.zip | |
Rollup merge of #127579 - surechen:fix_127285, r=lcnr
Solve a error `.clone()` suggestion when moving a mutable reference
If the moved value is a mut reference, it is used in a generic function and it's type is a generic param, suggest it can be reborrowed to avoid moving.
for example:
```rust
struct Y(u32);
// x's type is '& mut Y' and it is used in `fn generic<T>(x: T) {}`.
fn generic<T>(x: T) {}
```
fixes #127285
Diffstat (limited to 'library/std/src/sys/pal/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
