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:
Richard Smith authored and GitHub committed 2023-12-05 17:34:04 +00:00
1 parent 433d626b04
commit 22dff46ed2
22 files changed
+42 -65

No files matched your search

+1 -2
View File
@@ -181,8 +181,7 @@ auto DeclNameStack::CanResolveQualifier(NameContext& name_context,
auto builder = context_->emitter().Build(
name_context.parse_node, QualifiedDeclInIncompleteClassScope,
context_->sem_ir().StringifyType(
context_->classes().Get(class_decl->class_id).self_type_id,
true));
context_->classes().Get(class_decl->class_id).self_type_id));
context_->NoteIncompleteClass(class_decl->class_id, builder);
builder.Emit();
} else {