rust/compiler/rustc_resolve
Matthias Krüger 49f950434b
Rollup merge of #125407 - pacak:no-lending-iterators, r=pnkfelix
Detect when user is trying to create a lending `Iterator` and give a custom explanation

The scope for this diagnostic is to detect lending iterators specifically and it's main goal is to help beginners to understand that what they are trying to implement might not be possible for `Iterator` trait specifically.

I ended up to changing the wording from originally proposed in the ticket because it might be misleading otherwise: `Data` might have a lifetime parameter but it can be unrelated to items user is planning to return.

Fixes https://github.com/rust-lang/rust/issues/125337
2024-06-05 18:21:08 +02:00
..
src Rollup merge of #125407 - pacak:no-lending-iterators, r=pnkfelix 2024-06-05 18:21:08 +02:00
Cargo.toml Update pulldown-cmark version to 0.9.5 2024-01-29 14:14:03 +01:00
messages.ftl And more general error 2024-05-24 11:20:33 -04:00