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

review: fix: Stop adding duplicated modules when cloning them #4747

Merged
merged 1 commit into from
Jun 12, 2022

Conversation

I-Al-Istannen
Copy link
Collaborator

@I-Al-Istannen I-Al-Istannen commented Jun 12, 2022

This issue was discovered while trying to reproduce #4746. Printing a module caused it to be cloned, leading to a duplicate insertion into the global module list. This in turn triggered the "overlapping modules found" sanity check (thankfully!).

@I-Al-Istannen I-Al-Istannen changed the title fix: Stop adding duplicated modules when cloning them wip: fix: Stop adding duplicated modules when cloning them Jun 12, 2022
@I-Al-Istannen I-Al-Istannen changed the title wip: fix: Stop adding duplicated modules when cloning them review: fix: Stop adding duplicated modules when cloning them Jun 12, 2022
@I-Al-Istannen I-Al-Istannen force-pushed the fix/module-printing-duplicates branch from 41c4feb to 86883b4 Compare June 12, 2022 12:06
Previously, cloning a module (e.g. while printing it), caused the module
to be inserted in to the global list of modules *again*.

Co-authored-by: Hannes Greule <[email protected]>
@I-Al-Istannen I-Al-Istannen force-pushed the fix/module-printing-duplicates branch from 86883b4 to df1a623 Compare June 12, 2022 13:44
Copy link
Collaborator

@slarse slarse left a comment

Choose a reason for hiding this comment

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

Thanks @I-Al-Istannen, lgtm.

@slarse slarse merged commit 39bebb8 into INRIA:master Jun 12, 2022
@I-Al-Istannen I-Al-Istannen deleted the fix/module-printing-duplicates branch June 12, 2022 20:13
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