-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Duplicate module warning error #2359
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
Comments
Finally fixed this. I thought that if you had a foo.rc file you could have a foo.rs which would automatically get compiled in and allow you to put the foo.rs items in the project namespace. When I did my renaming I changed things around to use that pattern, but that seemed to be the cause of my duplicate module error. After renaming rwebserve.rs to server.rs and adding |
Closing this. |
I don't think that this should be closed:
|
set up triagebot `@Mark-Simulacrum` does this look like a sensible configuration?
Co-authored-by: Zyad Hassan <[email protected]>
I don't have a repro for this, but it's a really annoying error because it seems to be a lie and it's not at all clear how users can fix it. I had a library depending on three other libraries. The external libraries were copied into a local project/bin directory so that I had more control over them.
This was all working fine until I decided to rename my project. As part of this process I removed my bin directory and copied new versions of the external libraries into bin. Now when I do
rustc --out-dir bin -L bin -O src/rwebserve.rc
I get:If I change the use statement to "use socketXXX" I get the same error which makes me think that it is not a duplicate definition (and I don't see how it would be). My guess is that this is caused when using libraries built by slightly different versions of rustc. Unfortunately I now get an ICE trying to build one of the libraries so I can't try it out atm (currently building a new rustc in the hopes that that will fix the ICE).
The text was updated successfully, but these errors were encountered: