-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename Ty::is_ty_infer
-> Ty::is_ty_or_numeric_infer
#106754
Rename Ty::is_ty_infer
-> Ty::is_ty_or_numeric_infer
#106754
Conversation
Some changes occurred in need_type_info.rs cc @lcnr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you still mention infer
in the name, maybe is_ty_or_numeric_infer
?
I don't have a strong mental connection from var
to inference variables and I don't expect people would search for var
when needing this method.
r=me afterwards
r? @lcnr
☔ The latest upstream changes (presumably #106773) made this pull request unmergeable. Please resolve the merge conflicts. |
fd3e586
to
2a43eeb
Compare
Ty::is_ty_infer
-> Ty::is_ty_or_numeric_var
Ty::is_ty_infer
-> `Ty::is_ty_or_numeric_infer
2a43eeb
to
8e27211
Compare
Ty::is_ty_infer
-> `Ty::is_ty_or_numeric_inferTy::is_ty_infer
-> Ty::is_ty_or_numeric_infer
@bors r=lcnr |
…-confusing, r=lcnr Rename `Ty::is_ty_infer` -> `Ty::is_ty_or_numeric_infer` Makes sure people are aware that they may have a type variable *or* an int/float variable. r? ``@oli-obk`` rust-lang#106322 (comment) but I could instead implement your solution, let me know. (This will conflict with rust-lang#106322 for now, ignore that 😄)
Rollup of 6 pull requests Successful merges: - rust-lang#106608 (Render missing generics suggestion verbosely) - rust-lang#106716 ([RFC 2397] Deny incorrect locations) - rust-lang#106754 (Rename `Ty::is_ty_infer` -> `Ty::is_ty_or_numeric_infer`) - rust-lang#106782 (Ignore tests move in git blame) - rust-lang#106785 (Make blame spans better for impl wfcheck) - rust-lang#106791 (Fix ICE formatting) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Rollup of 6 pull requests Successful merges: - rust-lang#106608 (Render missing generics suggestion verbosely) - rust-lang#106716 ([RFC 2397] Deny incorrect locations) - rust-lang#106754 (Rename `Ty::is_ty_infer` -> `Ty::is_ty_or_numeric_infer`) - rust-lang#106782 (Ignore tests move in git blame) - rust-lang#106785 (Make blame spans better for impl wfcheck) - rust-lang#106791 (Fix ICE formatting) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Makes sure people are aware that they may have a type variable or an int/float variable.
r? @oli-obk #106322 (comment) but I could instead implement your solution, let me know.
(This will conflict with #106322 for now, ignore that 😄)