Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust source files to be compatible with changes I made to the Math module #1438

Merged
merged 2 commits into from
May 24, 2022

Conversation

lydia-duncan
Copy link
Contributor

@lydia-duncan lydia-duncan commented May 23, 2022

The Chapel team is in the process of splitting the Math standard library into a
portion that continues to be included by default and one that will require a
use or import statement going forward. To maintain compatibility with both
the previous releases and main/the upcoming release, update these files to no
longer use explicit naming to access the symbols in that module (since the ones
that are being included by default are no longer in the module named "Math" but
are instead in a new module named "AutoMath" that won't exist for previous
releases)

While here, I also updated test/TestBase.chpl to fix the issue test/UnitTestSort.chpl
was encountering with latest Chapel main. That test was complaining it could not
find AryUtil, because the 1.27 pre-release has changed our handling of public use
to no longer bring in the name of the module in addition to the symbols it contains,
unless an as clause is used. Add an as clause so that the name is now
brought in again. (see chapel-lang/chapel#19306 (comment)
for how the scoping rules are expected to change in the upcoming 1.27 release)

…module

The Chapel team is in the process of splitting the Math standard library into a
portion that continues to be included by default and one that will require a
`use` or `import` statement going forward.  To maintain compatibility with both
the previous releases and main/the upcoming release, update these files to no
longer use explicit naming to access the symbols in that module (since the ones
that are being included by default are no longer in the module named "Math" but
are instead in a new module named "AutoMath" that won't exist for previous
releases)

----
Signed-off-by: Lydia Duncan <[email protected]>
@lydia-duncan

This comment was marked as resolved.

That test was complaining it could not find AryUtil, because the 1.27
pre-release has changed our handling of `public use` to no longer bring in the
name of the module in addition to the symbols it contains, unless an `as` clause
is used.  Add an `as` clause so that the name is now brought in again.

I believe this was missed due to not running testing locally.

----
Signed-off-by: Lydia Duncan <[email protected]>
@lydia-duncan lydia-duncan marked this pull request as ready for review May 24, 2022 15:10
@lydia-duncan
Copy link
Contributor Author

@mhmerrill or @reuster986 - would one of you be able to review this PR?

Copy link
Contributor

@Ethan-DeBandi99 Ethan-DeBandi99 left a comment

Choose a reason for hiding this comment

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

Looks good

Copy link
Member

@stress-tess stress-tess left a comment

Choose a reason for hiding this comment

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

This all looks good to me!

@mhmerrill mhmerrill merged commit faf3c8c into Bears-R-Us:master May 24, 2022
@lydia-duncan lydia-duncan deleted the fixMathRefs branch May 24, 2022 20:35
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.

4 participants