Refuse own-family reads before any survey, and panic on a clash where readSurvey.edge enters a read's pins
This commit is contained in:
+9
-1
@@ -24,7 +24,7 @@ func (f *drawFence) checkDrawGroup(path string, n node) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (f *drawFence) checkDraws(path string, n node) error {
|
||||
func checkOwnFamilies(path string, n node) error {
|
||||
t, ok := n.(*template)
|
||||
if !ok {
|
||||
return nil
|
||||
@@ -32,6 +32,14 @@ func (f *drawFence) checkDraws(path string, n node) error {
|
||||
if err := checkOwnFamily(t); err != nil {
|
||||
return fmt.Errorf("%s: %w", path, err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (f *drawFence) checkDraws(path string, n node) error {
|
||||
t, ok := n.(*template)
|
||||
if !ok {
|
||||
return nil
|
||||
}
|
||||
if !f.readsPath(t) {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user