[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
1 changed files with 6 additions and 2 deletions

View File

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