[ty] Rename inner query for better debugging experience (#21106)

This commit is contained in:
Micha Reiser 2025-10-28 12:26:05 +01:00 committed by GitHub
parent 29462ea1d4
commit ae0343f848
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -649,7 +649,11 @@ impl<'db> ProtocolInstanceType<'db> {
/// normalised to `object`.
pub(super) fn is_equivalent_to_object(self, db: &'db dyn Db) -> bool {
#[salsa::tracked(cycle_initial=initial, heap_size=ruff_memory_usage::heap_size)]
fn inner<'db>(db: &'db dyn Db, protocol: ProtocolInstanceType<'db>, _: ()) -> bool {
fn is_equivalent_to_object_inner<'db>(
db: &'db dyn Db,
protocol: ProtocolInstanceType<'db>,
_: (),
) -> bool {
Type::object()
.satisfies_protocol(
db,
@ -666,7 +670,7 @@ impl<'db> ProtocolInstanceType<'db> {
true
}
inner(db, self, ())
is_equivalent_to_object_inner(db, self, ())
}
/// Return a "normalized" version of this `Protocol` type.