about summary refs log tree commit diff
path: root/library/std/src/sys/pal/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-07-17 16:22:29 +0200
committerGitHub <noreply@github.com>2024-07-17 16:22:29 +0200
commit23dd3a099c6b7fecaac4ba0b5c5605cf1687f568 (patch)
tree9539f1ccabe49332bc1857597b667b1b1684fd5d /library/std/src/sys/pal/unix/stack_overflow.rs
parentc98487e3bebc81139973e2eb8008eb3a331cb309 (diff)
parent4821b84b92a2f2bbed06191cab5cc44693e0652b (diff)
downloadrust-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