-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Add a way to debug or get panic information from failing doctests #5642
Comments
|
It doesn't seem to for me. ///
/// ```
/// fn bar() {
/// panic!();
/// }
/// fn main() {
/// bar();
/// }
/// ```
pub fn foo() {
}
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
} gives:
|
Hm, it seems to work here:
Not sure what would be the steps to debug this... |
I'm on macOS. Perhaps you're on Linux? |
Yep, I am on linux. The relevant Cargo code is here: cargo/src/cargo/ops/cargo_test.rs Line 144 in 5845464
It might be the case that this is actually an issue with rustdoc and not Cargo per se. |
@jrmuizel which version of rust are you using? I'm able to repro this on nightly rustc 1.28.0-nightly (2a1c4eec4 2018-06-25) (linux and macos). I can run a bisect to see what changed. |
rustc 1.28.0-nightly (523097979 2018-06-18) |
This is rust-lang/rust#51162. |
Closing in favor of rust-lang/rust issue! |
I wasn't able to find a way to do this.
The text was updated successfully, but these errors were encountered: