-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
rustc -o -
crashes
#26719
Comments
Triage: no change. |
I almost want to say that this isn't a bug. Do gcc and clang handle this case? I feel like it would be odd to write the compiler's output (binary data) to stdout. |
gcc and clang both output to a file called $ ls
example.c
$ gcc -o - example.c
$ ls
- example.c
$ ./-
Hello, world!
$ rm -- -
$ clang -o - example.c
$ ls
- example.c |
Triage: no change |
It would be nice if we could still output to stdout in the case where |
The issue is fixed: $ cat main.rs
fn main() {
println!("yep, it works")
}
$ rustc -o - main.rs > ./does-it-work && chmod +x does-it-work && ./does-it-work
yep, it works But it looks like the fix forgot to write a regression test for the non- We should add such a test before we close this issue. @rustbot label E-needs-test |
@rustbot claim |
Hi team would like to contribute to the project as a beginner to rust. I see that the task is to add a unit test? Is this available? |
@rustbot claim |
I am going to give it a shot. |
Add tests for some old fixed issues Closes rust-lang#30867 Closes rust-lang#30472 Closes rust-lang#28994 Closes rust-lang#26719 (and migrates the relevant test to the new run-make) Closes rust-lang#23600 cc `@jieyouxu` for the run-make-support changes try-job: x86_64-msvc
Rollup merge of rust-lang#131355 - clubby789:old-tests, r=jieyouxu Add tests for some old fixed issues Closes rust-lang#30867 Closes rust-lang#30472 Closes rust-lang#28994 Closes rust-lang#26719 (and migrates the relevant test to the new run-make) Closes rust-lang#23600 cc `@jieyouxu` for the run-make-support changes try-job: x86_64-msvc
When I tried this, I was hoping it would output the executable to stdout. Saving it as a file called
-
would be reasonable behavior too.The text was updated successfully, but these errors were encountered: