-
Notifications
You must be signed in to change notification settings - Fork 14k
Closed
Labels
C-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Description
is_ref:
rust/compiler/rustc_middle/src/ty/sty.rs
Lines 1809 to 1811 in da7c50c
| pub fn is_ref(self) -> bool { | |
| matches!(self.kind(), Ref(..)) | |
| } |
is_region_ptr:
rust/compiler/rustc_middle/src/ty/sty.rs
Lines 1917 to 1919 in da7c50c
| 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.Category: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.