Skip to content

[BUG FIX] Add _type_has_method_sequal_reduce to Span and SourceNode#8248

Merged
masahi merged 2 commits intoapache:mainfrom
electriclilies:fix_span_sequalreduce
Jun 15, 2021
Merged

[BUG FIX] Add _type_has_method_sequal_reduce to Span and SourceNode#8248
masahi merged 2 commits intoapache:mainfrom
electriclilies:fix_span_sequalreduce

Conversation

@electriclilies
Copy link
Contributor

@electriclilies electriclilies commented Jun 11, 2021

Span and SourceName have the methods SEqualReduce but do not have the field _type_has_method_sequal_reduce, which causes failures if you try to assert_structural_equal on ASTs containing Spans or SourceNames.

This PR adds _type_has_method_sequal_reduce to Span and SourceName.

@mbrookhart @tkonolige could you take a look? Thanks

Copy link
Contributor

@mbrookhart mbrookhart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@masahi masahi merged commit 6b72dc7 into apache:main Jun 15, 2021
@electriclilies electriclilies deleted the fix_span_sequalreduce branch June 15, 2021 20:36
@electriclilies
Copy link
Contributor Author

Thanks @masahi!

trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Jun 17, 2021
…pache#8248)

* add field _type_has_method_sequal_reduce to Span and SourceName

* retrigger CI
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request Jun 17, 2021
…pache#8248)

* add field _type_has_method_sequal_reduce to Span and SourceName

* retrigger CI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments