diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-03-13 18:12:05 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-03-13 18:12:05 +0530 |
| commit | 0d37323fd3052ca893caa7ec7b1a7263a1cd0656 (patch) | |
| tree | c9bf947cd7b86cd3a9d86984d7413a391c54bf3f /src/libtest | |
| parent | 0e4b8d6117d767d78c61ff5416572ae5eaaa7440 (diff) | |
| parent | b042ffc4a768c2bd6d7588b1b2f47af22669c2cb (diff) | |
| download | rust-0d37323fd3052ca893caa7ec7b1a7263a1cd0656.tar.gz rust-0d37323fd3052ca893caa7ec7b1a7263a1cd0656.zip | |
Rollup merge of #21468 - sanxiyn:dead-variant, r=
This implements a wish suggested in #17410, detecting enum variants that are never constructed, even in the presence of `#[derive(Clone)]`. The implementation is general and not specific to `#[derive(Clone)]`. r? @jakub-
Diffstat (limited to 'src/libtest')
| -rw-r--r-- | src/libtest/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libtest/lib.rs b/src/libtest/lib.rs index 19da658ed4f..80d5ab5baf3 100644 --- a/src/libtest/lib.rs +++ b/src/libtest/lib.rs @@ -121,6 +121,7 @@ impl fmt::Display for TestName { #[derive(Clone, Copy)] enum NamePadding { PadNone, + #[allow(dead_code)] PadOnLeft, PadOnRight, } |
