Remove some uses of ReturnTypeInfo (#6577)

As with #6572, this is a step toward supporting function calls that have
arbitrary numbers of initializing returns.
This commit is contained in:
Geoff Romer
2026-01-13 17:23:27 +00:00
committed by GitHub
parent d66b2f899c
commit 4a47f1ebeb
10 changed files with 123 additions and 80 deletions
+3 -3
View File
@@ -452,9 +452,9 @@ fn F() {
// CHECK:STDERR: class C;
// CHECK:STDERR: ^
// CHECK:STDERR: fail_import_decl_value_return_type.carbon:[[@LINE-14]]:10: in file included here [InCppInclude]
// CHECK:STDERR: ./decl_value_return_type.h:2:7: note: return type declared here [IncompleteReturnTypeHere]
// CHECK:STDERR: class C;
// CHECK:STDERR: ^
// CHECK:STDERR: ./decl_value_return_type.h:4:1: note: return type declared here [IncompleteReturnTypeHere]
// CHECK:STDERR: auto foo() -> C;
// CHECK:STDERR: ^
// CHECK:STDERR:
Cpp.foo();
}
@@ -451,9 +451,9 @@ fn F() {
// CHECK:STDERR: struct S;
// CHECK:STDERR: ^
// CHECK:STDERR: fail_import_decl_value_return_type.carbon:[[@LINE-14]]:10: in file included here [InCppInclude]
// CHECK:STDERR: ./decl_value_return_type.h:2:8: note: return type declared here [IncompleteReturnTypeHere]
// CHECK:STDERR: struct S;
// CHECK:STDERR: ^
// CHECK:STDERR: ./decl_value_return_type.h:4:1: note: return type declared here [IncompleteReturnTypeHere]
// CHECK:STDERR: auto foo() -> S;
// CHECK:STDERR: ^
// CHECK:STDERR:
Cpp.foo();
}
+3 -3
View File
@@ -413,9 +413,9 @@ fn F() {
// CHECK:STDERR: union U;
// CHECK:STDERR: ^
// CHECK:STDERR: fail_import_decl_value_return_type.carbon:[[@LINE-14]]:10: in file included here [InCppInclude]
// CHECK:STDERR: ./decl_value_return_type.h:2:7: note: return type declared here [IncompleteReturnTypeHere]
// CHECK:STDERR: union U;
// CHECK:STDERR: ^
// CHECK:STDERR: ./decl_value_return_type.h:4:1: note: return type declared here [IncompleteReturnTypeHere]
// CHECK:STDERR: auto foo() -> U;
// CHECK:STDERR: ^
// CHECK:STDERR:
Cpp.foo();
}