rust/crates
bors[bot] 7e012ae8b5
Merge #5893
5893: Allow running a test as a binary r=matklad a=jonas-schievink

If a test uses `harness = false`, it just contains an `fn main` that is executed via `cargo test`. This adds support for that.

Note though that Cargo doesn't actually tell us whether `harness = false`, so this hint will always show up when you put an `fn main` into an integration test. Normally people shouldn't be doing that if they do use the harness though.

Co-authored-by: Jonas Schievink <jonas.schievink@ferrous-systems.com>
2020-08-26 17:41:45 +00:00
..
arena Add TBD description to arena 2020-08-24 13:29:10 +02:00
assists **Inline Variable** works with field shorthand 2020-08-26 13:03:14 +02:00
base_db Add description for crates that will be published 2020-08-24 13:07:22 +02:00
cfg Add description for crates that will be published 2020-08-24 13:07:22 +02:00
flycheck Add description for crates that will be published 2020-08-24 13:07:22 +02:00
hir Remove monomorphisation from doclinks resolving code 2020-08-25 14:58:22 +02:00
hir_def Support extern types 2020-08-24 22:02:55 +02:00
hir_expand Add description for crates that will be published 2020-08-24 13:07:22 +02:00
hir_ty Add description for crates that will be published 2020-08-24 13:07:22 +02:00
ide Cleanup hover links tests 2020-08-26 18:36:16 +02:00
ide_db Add description for crates that will be published 2020-08-24 13:07:22 +02:00
mbe Add description for crates that will be published 2020-08-24 13:07:22 +02:00
parser Complete pub in fields 2020-08-25 17:22:23 +02:00
paths Add description for crates that will be published 2020-08-24 13:07:22 +02:00
proc_macro_api Add description for crates that will be published 2020-08-24 13:07:22 +02:00
proc_macro_srv Add description for crates that will be published 2020-08-24 13:07:22 +02:00
proc_macro_test Add description for crates that will be published 2020-08-24 13:07:22 +02:00
profile Add description for crates that will be published 2020-08-24 13:07:22 +02:00
project_model Add sysroot shortcut to rust-project.json 2020-08-25 19:41:56 +02:00
rust-analyzer Allow running a test as a binary 2020-08-26 17:33:03 +02:00
ssr Add version to deps in cargo.toml 2020-08-24 11:10:41 +02:00
stdx Add description for crates that will be published 2020-08-24 13:07:22 +02:00
syntax Complete pub in fields 2020-08-25 17:22:23 +02:00
test_utils Add description for crates that will be published 2020-08-24 13:07:22 +02:00
text_edit Provide better stack trace for overlapping edits 2020-08-25 17:59:37 +02:00
toolchain Add description for crates that will be published 2020-08-24 13:07:22 +02:00
tt Add description for crates that will be published 2020-08-24 13:07:22 +02:00
vfs Add description for crates that will be published 2020-08-24 13:07:22 +02:00
vfs-notify Add description for crates that will be published 2020-08-24 13:07:22 +02:00