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

Work around rust-lang/rust#58516 #1545

Merged
merged 1 commit into from
May 21, 2019
Merged

Work around rust-lang/rust#58516 #1545

merged 1 commit into from
May 21, 2019

Conversation

infinity0
Copy link
Contributor

Actually it looks like the loop could be dropped completely in the "not-strict-macro" case but I wasn't sure if used.get() might panic or something.

@alexcrichton
Copy link
Contributor

Hm weird! So stylistically this is definitely a step backwards, but it seems reasonable if it's working around an LLVM bug. Can you be sure to leave comments explaining the duplication though so we know what to do with this when encountering it in the future?

@infinity0
Copy link
Contributor Author

Will do. Do you want me to drop the redundant loop as well, or shall I keep it so the two versions are closer to each other?

@alexcrichton
Copy link
Contributor

Seems reasonable!

@infinity0
Copy link
Contributor Author

Done!

@alexcrichton alexcrichton merged commit 9b04fe9 into rustwasm:master May 21, 2019
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.

2 participants