[ty] Fix false-positive [invalid-return-type] diagnostics on generator functions (#17871)

This commit is contained in:
Alex Waygood 2025-05-05 22:44:59 +01:00 committed by GitHub
parent 47e3aa40b3
commit bb6c7cad07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 253 additions and 22 deletions

View file

@ -194,6 +194,9 @@ pub(crate) struct SemanticIndex<'db> {
/// List of all semantic syntax errors in this file.
semantic_syntax_errors: Vec<SemanticSyntaxError>,
/// Set of all generator functions in this file.
generator_functions: FxHashSet<FileScopeId>,
}
impl<'db> SemanticIndex<'db> {