Skip to content

[cleanup] Ty::is_ref and Ty::is_region_ptr are identical #109372

Closed
@scottmcm

Description

@scottmcm

is_ref:

pub fn is_ref(self) -> bool {
matches!(self.kind(), Ref(..))
}

is_region_ptr:

pub fn is_region_ptr(self) -> bool {
matches!(self.kind(), Ref(..))
}

I don't know which name is better, but there probably shouldn't be two is_* helpers doing exactly the same thing.

Metadata

Metadata

Assignees

Labels

C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions