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

Remove extra string cast from map #22844

Merged

Conversation

jeremiah-corrado
Copy link
Contributor

@jeremiah-corrado jeremiah-corrado commented Jul 31, 2023

Removes the potential for a deprecation warning when accessing a map of a non-primitive key type.

The Map module's KeyNotFoundError uses string.format to create error message for keys of any type. However, one of map's this assessors was casting the key to string when creating a KeyNotFoundError, which can create a deprecation warning as of #22068. This PR removes that cast.

  • paratest

@jeremiah-corrado jeremiah-corrado merged commit 40fcbd4 into chapel-lang:main Jul 31, 2023
7 checks passed
@jeremiah-corrado jeremiah-corrado deleted the fix-map-error-cast branch July 31, 2023 18:17
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.

1 participant