about summary refs log tree commit diff
path: root/tests/rustdoc/source-code-pages/html-no-source.rs
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-04-14 08:50:44 +0200
committerSamuel Tardieu <sam@rfc1149.net>2025-04-14 09:55:38 +0200
commit77b3ac3d5731b34441cb4ef0badcf9cc261b2013 (patch)
treec74e29afecf7f8d42e09e5d2de0880cbd770445f /tests/rustdoc/source-code-pages/html-no-source.rs
parent69ade776fa8a05371c0921124c5a4bcba343b3e1 (diff)
downloadrust-77b3ac3d5731b34441cb4ef0badcf9cc261b2013.tar.gz
rust-77b3ac3d5731b34441cb4ef0badcf9cc261b2013.zip
Check for lifetime uses in closures as well
The `BodyLifetimeChecker` which checks for the use of any non-anonymous
non-static lifetime did not recurse into closures, missing lifetime
uses. This would lead to a bogus elision suggestion.

The `BodyLifetimeChecker` is not refined enough to avoid false
positives, as any conforming lifetime, including one coming from the outer
context, would be considered a hit. The number of false positives might
increase now that we check closures as well, in case those closures
define and use lifetimes themselves.
Diffstat (limited to 'tests/rustdoc/source-code-pages/html-no-source.rs')
0 files changed, 0 insertions, 0 deletions