mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 19:50:14 +01:00
Disallow impl in match_first twice (#7493)
Prevent dead code by diagnosing putting the same `impl` in a `match_first` block more than once.
This commit is contained in:
@@ -4786,7 +4786,8 @@ difference.
|
||||
#### Prioritization rule
|
||||
|
||||
> **TODO:** Document the changes to prioritization adopted in
|
||||
> [#5337: Interface extension and `final impl` update](/proposals/p005337-interface-extension-and-final-impl-update.md).
|
||||
> [#5337: Interface extension and `final impl` update](/proposals/p005337-interface-extension-and-final-impl-update.md) and
|
||||
> [#7493: Disallow impl in match_first twice](/proposals/p007493-disallow-impl-in-match-first-twice.md).
|
||||
|
||||
Since at most one library can contain `impl` definitions with a given type
|
||||
structure, all `impl` definitions with a given type structure must be in the
|
||||
|
||||
Reference in New Issue
Block a user