mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-22 23:32:38 +00:00
Fix canonicalization and simplify default value patterns. (#7837)
Removes support for unspecified default values. Fixes canonicalization of the `DefaultValuePattern` instruction by making them immutable after they are issued, and by removing the `DefaultValueId` operand which wasn't being canonicalized.
This commit is contained in:
1 parent
3fad8b9eab
commit
1579d4ec7e
50 files changed
+3878
-4325
No files matched your search
@@ -190,7 +190,6 @@ auto HandlePatternListElementCheckForDefaultValue(Context& context) -> void {
|
||||
return;
|
||||
}
|
||||
|
||||
// No underscore, we parse this as a normal expression.
|
||||
context.PushStateForExpr(state.ambient_precedence);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user