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

semtypinst: remove the "meta-types allowed" mode #866

Merged

Conversation

zerbina
Copy link
Collaborator

@zerbina zerbina commented Sep 1, 2023

Summary

With all users of the mode gone, the mode itself is removed, preventing
it from becoming accidentally relied on again.

Details

  • remove all usages of the TReplTypeVars.allowMetaTypes field
  • perform some small clean-up of unused code
  • remove the allowedMetaTypes field itself
  • remove the allowedMetaTypes parameter from instGenericContainer

Closes #846

@zerbina zerbina added compiler/sem Related to semantic-analysis system of the compiler simplification Removal of the old, unused, unnecessary or un/under-specified language features. labels Sep 1, 2023
Copy link
Collaborator

@saem saem left a comment

Choose a reason for hiding this comment

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

awesome, very glad it's gone.

Comment on lines +108 to +109
# types. Used as a work-around for instantiation
# cache issues
Copy link
Collaborator

Choose a reason for hiding this comment

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

excellent, emphasizes that it needs to be fixed rather than actually required.

@saem
Copy link
Collaborator

saem commented Sep 1, 2023

/merge

@github-actions
Copy link

github-actions bot commented Sep 1, 2023

Merge requested by: @saem

Contents after the first section break of the PR description has been removed and preserved below:


@chore-runner chore-runner bot added this pull request to the merge queue Sep 1, 2023
Merged via the queue into nim-works:devel with commit 380718e Sep 1, 2023
18 checks passed
@zerbina zerbina deleted the remove-meta-types-allowed-mode branch September 1, 2023 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler/sem Related to semantic-analysis system of the compiler simplification Removal of the old, unused, unnecessary or un/under-specified language features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

simplify instantiation of generic types (semtypinst)
2 participants