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

rustdoc --test interleaves failure output #12623

Closed
huonw opened this issue Feb 28, 2014 · 1 comment
Closed

rustdoc --test interleaves failure output #12623

huonw opened this issue Feb 28, 2014 · 1 comment
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@huonw
Copy link
Member

huonw commented Feb 28, 2014

Seems like it's because it's not capturing stderr.

#[crate_id="par-rustdoc"];

/*!
```
?
```

```
!
```

```
$
```
*/
<anon>:6:1: 6:2 <anon>:5:1: 5:2error:  unexpected token: `}`
error: unexpected token: `$`
<anon>:<anon>6: 5} 
$
                  ^
^
<anon>:5:1: 5:2 error: unknown start of token: ?
<anon>:5 ?
         ^
test _0 ... FAILED
test _2 ... FAILED
test _1 ... FAILED

failures:

---- _0 stdout ----
    task '_0' failed at '~Any', /home/huon/rust/src/libsyntax/diagnostic.rs:49

---- _2 stdout ----
    task '_2' failed at '~Any', /home/huon/rust/src/libsyntax/diagnostic.rs:49

---- _1 stdout ----
    task '_1' failed at '~Any', /home/huon/rust/src/libsyntax/diagnostic.rs:49


failures:
    _0
    _1
    _2

test result: FAILED. 0 passed; 3 failed; 0 ignored; 0 measured
@huonw
Copy link
Member Author

huonw commented Feb 28, 2014

cc @cmr, @alexcrichton

bors added a commit that referenced this issue Mar 1, 2014
This helps prevent the unfortunate interleavings found in #12623.
bors added a commit to rust-lang-ci/rust that referenced this issue Jul 25, 2022
fix: deduplicate cfg completions

cfg completions are duplicated if they are set with multiple values.
This patch deduplicates them.

fixes: [rust-lang#12623](rust-lang/rust-analyzer#12623)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

1 participant