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

[wgsl-in] Don't allow redefinition of module scope identifiers #1551

Merged
merged 2 commits into from
Nov 29, 2021

Conversation

Gordon-F
Copy link
Collaborator

I guess fix for #1480.

Copy link
Member

@kvark kvark left a comment

Choose a reason for hiding this comment

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

We need to forbid any kind of name collision at the module scope. Functions are one of many. Does it make sense to have this logic finding collisions for functions only, still? Perhaps, we need just a set of strings that are forbidden for names, which we grow as we scan the module.

@Gordon-F Gordon-F changed the title [wgsl-in] Don't allow function name redefinition [wgsl-in] Don't allow redefinition of module scope identifiers Nov 26, 2021
@Gordon-F Gordon-F requested a review from kvark November 26, 2021 19:23
src/front/wgsl/mod.rs Outdated Show resolved Hide resolved
Copy link
Member

@kvark kvark left a comment

Choose a reason for hiding this comment

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

Thank you!

@kvark kvark enabled auto-merge (rebase) November 28, 2021 15:54
@Gordon-F
Copy link
Collaborator Author

Something wrong with CI.

@Gordon-F Gordon-F closed this Nov 28, 2021
auto-merge was automatically disabled November 28, 2021 19:56

Pull request was closed

@Gordon-F Gordon-F reopened this Nov 28, 2021
@Gordon-F
Copy link
Collaborator Author

@kvark ready for merge.

@kvark kvark merged commit dba6beb into gfx-rs:master Nov 29, 2021
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.

None yet

2 participants