Logo
Explore Help
Sign In
itsscb/rust
1
0
Fork 0
You've already forked rust
mirror of https://github.com/rust-lang/rust.git synced 2025-11-18 12:17:27 +00:00
Code Issues Packages Projects Releases Wiki Activity
rust/compiler/rustc_borrowck
History
surechen 4821b84b92 If the moved value is a mut reference, it is used in a generic function and it's type is a generic param, 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
2024-07-17 10:07:02 +08:00
..
src
If the moved value is a mut reference, it is used in a generic function and it's type is a generic param, it can be reborrowed to avoid moving.
2024-07-17 10:07:02 +08:00
Cargo.toml
…
messages.ftl
Better account for FnOnce in move errors
2024-04-11 16:41:42 +00:00
Powered by Gitea Version: 1.23.6 Page: 1298ms Template: 39ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API