Skip to content

rustc's --test flag should imply --bin #1444

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

Closed
brson opened this issue Jan 5, 2012 · 1 comment
Closed

rustc's --test flag should imply --bin #1444

brson opened this issue Jan 5, 2012 · 1 comment
Labels
A-driver Area: rustc_driver that ties everything together into the `rustc` compiler A-testsuite Area: The testsuite used to check the correctness of rustc E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

Comments

@brson
Copy link
Contributor

brson commented Jan 5, 2012

Crate's that have the #[crate_type = "lib"] attribute are compiled as libs even when compiling with --test. This is probably not intuitive.

@brson
Copy link
Contributor Author

brson commented Jan 17, 2012

Done.

@brson brson closed this as completed Jan 17, 2012
bjorn3 added a commit to bjorn3/rust that referenced this issue Jan 26, 2024
Use `rust-analyzer.rustc.source` to get r-a working with rustc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-driver Area: rustc_driver that ties everything together into the `rustc` compiler A-testsuite Area: The testsuite used to check the correctness of rustc E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Projects
None yet
Development

No branches or pull requests

1 participant