about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-06-05 18:21:08 +0200
committerGitHub <noreply@github.com>2024-06-05 18:21:08 +0200
commit49f950434b7fa82cfc1a98b0834da9c7a4120f48 (patch)
tree8db6bf174afd71e377e536090aff4aadf62932e1 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parent28deff4244092610d8caf22f98f8efc0887c24fd (diff)
parentb70fb4159be7ea3e549a242cf7a6e4ebcb41f168 (diff)
downloadrust-49f950434b7fa82cfc1a98b0834da9c7a4120f48.tar.gz
rust-49f950434b7fa82cfc1a98b0834da9c7a4120f48.zip
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
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions