7

fix(rustc): suggest `items` be borrowed in `for i in items[x..]` by notriddle ·...

 3 years ago
source link: https://github.com/rust-lang/rust/pull/88578
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Copy link

Contributor

nagisa commented 13 days ago

edited

Can you also add a test for the negative case if it doesn't already exist? i.e. a case where adding a borrow wouldn't actually help. It is still fine if the compiler does suggest (incorrectly) borrowing there, despite the code to avoid this, but at the very least we'll know what exactly is happening.

r=me otherwise.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK