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

Fix "Unused imported module" rule #9

Open
2 tasks
ljmf00 opened this issue Apr 19, 2022 · 0 comments
Open
2 tasks

Fix "Unused imported module" rule #9

ljmf00 opened this issue Apr 19, 2022 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@ljmf00
Copy link
Member

ljmf00 commented Apr 19, 2022

  • core.runtime is reported unused but Runtime object is being used.
  • std is reported unused when import core.runtime; is present.

import std;
import core.runtime;

UnitTestResult customModuleUnitTester()
{
    return UnitTestResult(100, 100, false, true);
}

shared static this()
{
    Runtime.extendedModuleUnitTester = &customModuleUnitTester;
}

void main()
{
    import core.stdc.stdio;
    fprintf(stderr, "main\n");
    writeln("f");
}
@ljmf00 ljmf00 added bug Something isn't working help wanted Extra attention is needed labels Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant