rustc_target: rename {Fn,Arg}Type to {Fn,Arg}Abi.#65938
rustc_target: rename {Fn,Arg}Type to {Fn,Arg}Abi.#65938bors merged 4 commits intorust-lang:masterfrom
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.FnAbiis 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 misleadingTypein 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