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

test: Add an option to not capture output #13706

Merged
merged 1 commit into from
Apr 24, 2014

Conversation

alexcrichton
Copy link
Member

A new flag to the test runner, --nocapture, can be passed to instruct that the
output of tests should not be captured by default. The behavior can also be
triggered via a RUST_TEST_NOCAPTURE environment variable being set.

Closes #13374

A new flag to the test runner, --nocapture, can be passed to instruct that the
output of tests should not be captured by default. The behavior can also be
triggered via a RUST_TEST_NOCAPTURE environment variable being set.

Closes rust-lang#13374
bors added a commit that referenced this pull request Apr 24, 2014
A new flag to the test runner, --nocapture, can be passed to instruct that the
output of tests should not be captured by default. The behavior can also be
triggered via a RUST_TEST_NOCAPTURE environment variable being set.

Closes #13374
@bors bors closed this Apr 24, 2014
@bors bors merged commit 65f68dc into rust-lang:master Apr 24, 2014
@alexcrichton alexcrichton deleted the test-nocapture branch April 24, 2014 22:14
arcnmx pushed a commit to arcnmx/rust that referenced this pull request Dec 17, 2022
…eykril

Handle raw identifiers in proc macro server

Fixes rust-lang#13706

When proc macros create `proc_macro::Ident`s, they pass an identifier text without "r#" prefix and a flag `is_raw` to proc macro server. Our `tt::Ident` currently stores the text *with* "r#" so we need to adjust them somewhere.

Rather than following rustc and adding `is_raw` field to our `tt::Ident`, I opted for adjusting the representation of identifiers in proc macro server, because we don't need the field outside it.

It's hard to write regression test for this, but at least I:
- ran `cargo +nightly t --features sysroot-abi` and all the tests passed
- built proc macro server with `cargo +nightly b -r --bin rust-analyzer-proc-macro-srv --features sysroot-abi` and made sure rust-lang#13706 resolved
  - For the record, the nightly versions used are `rustc 1.67.0-nightly (32e613b 2022-12-02)` and `cargo 1.67.0-nightly (e027c4b5d 2022-11-25)`.
flip1995 pushed a commit to flip1995/rust that referenced this pull request Nov 28, 2024
…ang#13722)

Fix rust-lang#13706

changelog: [`trait_duplication_in_bounds`]: fix ICE on duplicate type or
constant bound
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Optionally allow writing to stdout in test runs
2 participants