-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
[cleanup] Ty::is_ref and Ty::is_region_ptr are identical #109372
Copy link
Copy link
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.
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.
Type
Fields
Give feedbackNo fields configured for issues without a type.
is_ref:rust/compiler/rustc_middle/src/ty/sty.rs
Lines 1809 to 1811 in da7c50c
is_region_ptr:rust/compiler/rustc_middle/src/ty/sty.rs
Lines 1917 to 1919 in da7c50c
I don't know which name is better, but there probably shouldn't be two
is_*helpers doing exactly the same thing.