-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
rustc_target: rename {Fn,Arg}Type to {Fn,Arg}Abi. #65938
Conversation
This comment has been minimized.
This comment has been minimized.
|
@eddyb said in chat
Totally strawman proposal: |
|
While I agree that the name may not be perfect, it is strictly an improvement. I don't like the other options, and We can revisit with more detailed naming later if someone comes up with a better name. @bors r+ |
📌 Commit 8b06209 has been approved by |
rustc_target: rename {Fn,Arg}Type to {Fn,Arg}Abi. I was trying to tweak the API of `FnType` (now `FnAbi`) and the name kept bothering me. `FnAbi` is to a function signature a bit like a layout is to a type, so the name still isn't perfect yet, but at least it doesn't have the misleading `Type` in it anymore. If this can't land I think I can continue my original refactor without it, so I'm not strongly attached to it. r? @nagisa cc @oli-obk
☀️ Test successful - checks-azure |
I was trying to tweak the API of
FnType
(nowFnAbi
) and the name kept bothering me.FnAbi
is to a function signature a bit like a layout is to a type, so the name still isn't perfect yet, but at least it doesn't have the misleadingType
in it anymore.If this can't land I think I can continue my original refactor without it, so I'm not strongly attached to it.
r? @nagisa cc @oli-obk