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

Latest cargo warns about auto discovery #50445

Closed
csmoe opened this issue May 4, 2018 · 0 comments
Closed

Latest cargo warns about auto discovery #50445

csmoe opened this issue May 4, 2018 · 0 comments
Labels
E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

Comments

@csmoe
Copy link
Member

csmoe commented May 4, 2018

warning: An explicit [[test]] section is specified in Cargo.toml which currently
disables Cargo from automatically inferring other test targets.
This inference behavior will change in the Rust 2018 edition and the following
files will be included as a test target:

* /rust/src/liballoc/tests/vec.rs
* /rust/src/liballoc/tests/string.rs
* /rust/src/liballoc/tests/cow_str.rs
* /rust/src/liballoc/tests/heap.rs
* /rust/src/liballoc/tests/binary_heap.rs
* /rust/src/liballoc/tests/str.rs
* /rust/src/liballoc/tests/linked_list.rs
* /rust/src/liballoc/tests/lib.rs
* /rust/src/liballoc/tests/fmt.rs
* /rust/src/liballoc/tests/vec_deque.rs
* /rust/src/liballoc/tests/slice.rs

This is likely to break cargo build or cargo test as these files may not be
ready to be compiled as a test target today. You can future-proof yourself
and disable this warning by adding `autotests = false` to your [package]
section. You may also move the files to a location where Cargo would not
automatically infer them to be a target, such as in subfolders.

For more information on this warning you can consult
https://github.com/rust-lang/cargo/issues/5330

cargo issue: rust-lang/cargo#5330

@csmoe csmoe added the E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. label May 4, 2018
@csmoe csmoe closed this as completed May 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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