Conversation
Member
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
1869d04 to
942ff7b
Compare
…s and have side effect
942ff7b to
477753c
Compare
Contributor
Benchmarks Rust
|
IWANABETHATGUY
approved these changes
May 25, 2025
Base automatically changed from
05-25-refactor_rust_ensure_module_can_only_be_wrapped_via_wrap_module_recursively_
to
main
May 25, 2025 15:55
hyf0
added a commit
that referenced
this pull request
May 26, 2025
… on others and have side effect #4670`
hyf0
added a commit
that referenced
this pull request
May 26, 2025
… on others and have side effect #4670`
hyf0
added a commit
that referenced
this pull request
May 26, 2025
… on others and have side effect #4670`
hyf0
added a commit
that referenced
this pull request
May 26, 2025
… on others and have side effect #4670`
github-merge-queue bot
pushed a commit
that referenced
this pull request
May 26, 2025
… on others and have side effect #4670` (#4686) <!-- Thank you for contributing! --> ### Description Close #4684. --- No side effect is not the full condition to safely remove the wrapper. A module might not have side effects, but it might rely on the order that side-effect module get executed first. See the case at #4684. <!-- Please insert your description here and provide especially info about the "what" this PR is solving -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Part of #3410, #3981.
It turns out if a module doesn't have side effect and doesn't rely on other modules(in other words, not resiponsible for initlizing other modules), it could be safely not wrapped.