mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-19 12:16:43 +00:00
[ty] Rename inner query for better debugging experience (#21106)
This commit is contained in:
parent
29462ea1d4
commit
ae0343f848
1 changed files with 6 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue