-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Document the lib if a lib and bin have the same name #4627
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
Conversation
|
r? @matklad (rust_highfive has picked a reviewer for you, use r? to override) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent, thanks @carols10cents !
What do you think about adding a tests, where bin and lib have the same name, but you invoke cargo doc as cargo doc --lib and cargo doc --bin? Presumably, these forms should both work?
tests/doc.rs
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 ❤️
tests/rustdoc.rs
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, I didn't realize we have separate cargo doc and cargo rustdoc commands!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup! 🤷♀️
I'm into it! I tested them manually and they work, will add tests :) |
|
More tests for you @matklad! ❤️ |
|
Tests always make me happy, yay! @bors r+ |
|
📌 Commit f3953b8 has been approved by |
|
⌛ Testing commit f3953b8b2146a5ee67a0ae5a153b1c3326380690 with merge 9ff0930c21ad0e7f9182e90a33ead552920df3e9... |
|
💔 Test failed - status-appveyor |
|
⌛ Testing commit f3953b8b2146a5ee67a0ae5a153b1c3326380690 with merge 825f3e34f6fe10984d735485d3095a62a3329c19... |
|
💔 Test failed - status-appveyor |
|
ummmmm why is this failing on appveyor...? Shouldn't appveyor have |
|
@bors: retry |
|
⌛ Testing commit f3953b8b2146a5ee67a0ae5a153b1c3326380690 with merge fb36031a84a7afcbad862b47677d7a72d6c2dbca... |
|
💔 Test failed - status-appveyor |
|
@carols10cents failure seems legit, but mysterious. |
Ah, I think I know what's going on: the real code prints paths with |
|
ahhhh i'll take out the square brackets and file a bug for the bug. |
Fixes #4341. - Removes the check that bailed if there was a bin and lib with the same name - Exclude bins with the same name as libs from the proposed targets to build when compiling docs - Adjust tests to expect this behavior
|
@bors r+ |
|
📌 Commit e98b9db has been approved by |
Document the lib if a lib and bin have the same name Fixes #4341, as discussed in that issue. - Removes the check that bailed if there was a bin and lib with the same name - Exclude bins with the same name as libs from the proposed targets to build when compiling docs - Adjust tests to expect this behavior
|
☀️ Test successful - status-appveyor, status-travis |
Fixes #4341, as discussed in that issue.
same name
build when compiling docs