[ty] Dont provide goto definition for definitions which are not reexported in builtins (#21127)

This commit is contained in:
Matthew Mckee 2025-10-29 18:39:36 +00:00 committed by GitHub
parent d38a5292d2
commit 7045898ffa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 18 additions and 0 deletions

View file

@ -615,6 +615,7 @@ pub fn definitions_for_name<'db>(
};
find_symbol_in_scope(db, builtins_scope, name_str)
.into_iter()
.filter(|def| def.is_reexported(db))
.flat_map(|def| {
resolve_definition(
db,