mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-19 12:20:27 +00:00
Make C++ enum types impl Core.Copy. (#7013)
Remove special-case handling in conversion logic for C++ enum types, synthesize a custom witness of `Core.Copy` using the `primitive_copy` builtin function.
This commit is contained in:
1 parent
0851d657c8
commit
6f0ec37a8b
6 files changed
+107
-77
No files matched your search
@@ -121,7 +121,7 @@ static auto MakeFunctionSignature(Context& context, SemIR::LocId loc_id,
|
||||
|
||||
StartFunctionSignature(context);
|
||||
|
||||
// Build and add a `[ref self: Self]` parameter if needed.
|
||||
// Build and add a `self: Self` or `ref self: Self` parameter if needed.
|
||||
if (args.self_type_id.has_value()) {
|
||||
context.full_pattern_stack().StartImplicitParamList();
|
||||
|
||||
|
||||
Reference in new issue
Block a user