mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Consolidate caller match in one function call (#4446)
Co-authored-by: Jon Ross-Perkins <jperkins@google.com>
This commit is contained in:
co-authored by
Jon Ross-Perkins
parent
89eed4220f
commit
e20e8bfbea
@@ -36,7 +36,8 @@ static auto NoteNoReturnTypeProvided(Context::DiagnosticBuilder& diag,
|
||||
diag.Note(function.latest_decl_id(), ReturnTypeOmittedNote);
|
||||
}
|
||||
|
||||
// Produces a note describing the return type of the given function.
|
||||
// Produces a note describing the return type of the given function, which
|
||||
// must be a function whose definition is currently being checked.
|
||||
static auto NoteReturnType(Context& context, Context::DiagnosticBuilder& diag,
|
||||
const SemIR::Function& function) {
|
||||
auto return_type_inst_id =
|
||||
|
||||
Reference in New Issue
Block a user