Skip to content

Commit f374813

Browse files
committed
RequirementMachine: Add missing entry to Symbol::Kinds
When we added same-shape requirements, we broke -analyze-requirement-machine, which outputs some histograms. Add a regression test to make sure this code path doesn't bitrot.
1 parent 0988236 commit f374813

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

lib/AST/RequirementMachine/Symbol.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const StringRef Symbol::Kinds[] = {
3030
"assocty",
3131
"generic",
3232
"name",
33+
"shape",
3334
"layout",
3435
"super",
3536
"concrete"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// RUN: %target-typecheck-verify-swift -analyze-requirement-machine
2+
3+
public func f<T: FixedWidthInteger>(_: T) {}

0 commit comments

Comments
 (0)