mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Remove support for disambiguating a stringified type as being a type. (#3456)
Most of the calls to `StringifyType` already passed `true` for `in_type_context`. Checking the rest, I found that every one of them was already sufficiently clear that they were printing a type, or could be made so with a very small change to the diagnostic text.
This commit is contained in:
@@ -25,9 +25,8 @@ auto HandleCallExpr(Context& context, Parse::NodeId parse_node) -> bool {
|
||||
if (callee_type_id != SemIR::TypeId::Error) {
|
||||
CARBON_DIAGNOSTIC(CallToNonCallable, Error,
|
||||
"Value of type `{0}` is not callable.", std::string);
|
||||
context.emitter().Emit(
|
||||
call_expr_parse_node, CallToNonCallable,
|
||||
context.sem_ir().StringifyType(callee_type_id, true));
|
||||
context.emitter().Emit(call_expr_parse_node, CallToNonCallable,
|
||||
context.sem_ir().StringifyType(callee_type_id));
|
||||
}
|
||||
context.node_stack().Push(parse_node, SemIR::InstId::BuiltinError);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user