Add missing trailing return types (#5006)

Noted CopyNameFromImportIR while glancing around (this one's interesting
because it's NameId, not void nor auto), did a scan just for a few other
cases. Not an exhaustive fix, and TBH assuming we'd prefer `auto ... ->
auto` since equivalent Carbon syntax would probably be `fn ... -> auto`
This commit is contained in:
Jon Ross-Perkins
2025-02-24 22:41:59 +00:00
committed by GitHub
parent 2ca3f92131
commit 21252b5e94
12 changed files with 21 additions and 18 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ auto FunctionContext::LowerBlockContents(SemIR::InstBlockId block_id) -> void {
// types, which would make getting the right overload resolution complex.
template <typename InstT>
static auto LowerInstHelper(FunctionContext& context, SemIR::InstId inst_id,
InstT inst) {
InstT inst) -> void {
if constexpr (!InstT::Kind.is_lowered()) {
CARBON_FATAL(
"Encountered an instruction that isn't expected to lower. It's "