]> git.proxmox.com Git - cargo.git/commit
Auto merge of #3083 - jhbabon:fix-warning-in-feature-tests, r=alexcrichton
authorbors <bors@rust-lang.org>
Sun, 11 Sep 2016 18:14:34 +0000 (11:14 -0700)
committerGitHub <noreply@github.com>
Sun, 11 Sep 2016 18:14:34 +0000 (11:14 -0700)
commitb931a0fd4bfa557b63c8f339ecab9762127d46ec
tree30d127203996cb821ef742d35952846e8bbe9397
parent398de2516028611b1cdd980cd72bd2194004d205
parent1f88ad531844b0d191ccc76fe97d9f2b813aca7a
Auto merge of #3083 - jhbabon:fix-warning-in-feature-tests, r=alexcrichton

FIX: Properly close dep_feature_in_cmd_line test.

It was including the test `all_features_flag_enables_all_features` inside its function body and it was causing this warning when executing `cargo test`:

```
   Compiling cargo v0.13.0 (file:///home/jhbabon/Code/cargo)
tests/features.rs:965:1: 1006:2 warning: function is never used: `all_features_flag_enables_all_features`, #[warn(dead_code)] on by default
tests/features.rs:965 fn all_features_flag_enables_all_features() {
                      ^
tests/features.rs:964:1: 964:8 warning: unused attribute, #[warn(unused_attributes)] on by default
tests/features.rs:964 #[test]
                      ^~~~~~~
     Running target/debug/features-e37991fdf417989c
```