-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Compile error in main code when doc-testing a crate that has the same name as a module #68488
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
Ensures that the used names are unique even if the crate is itself available under its name during compilation. See rust-lang/rust#68488
Ensures that the used names are unique even if the crate is itself available under its name during compilation. See rust-lang/rust#68488
Ensures that the used names are unique even if the crate is itself available under its name during compilation. See rust-lang/rust#68488
This should have been fixed recently by #68357. It errors correctly for me using |
@ollie27 The latest nightly errors, so I should probably change the title. You mean the correct behaviour is erroring? I did not realize this. It seems quite surprising to me that the crate itself compiles ( |
Yeah, actually that error does look wrong. cargo seems to pass |
Chiming in to say that this is affecting us in zerocopy now (though we can probably work around it). |
I have also run into this issue just now. Is there an easy way of disabling |
In a crate that has the same name as a top-level module, exporting a name from this module causes rustdoc (and only rustdoc) to error when it is ran.
error[E0659]: `this_crate` is ambiguous
The text was updated successfully, but these errors were encountered: