Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Constants used in range patterns should not be considered unused
- Loading branch information
Jakub Bukaj
committed
Oct 31, 2014
1 parent
52c3fe9
commit d23d633
Showing
2 changed files
with
31 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT | ||
// file at the top-level directory of this distribution and at | ||
// http://rust-lang.org/COPYRIGHT. | ||
// | ||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | ||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | ||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | ||
// option. This file may not be copied, modified, or distributed | ||
// except according to those terms. | ||
|
||
#![deny(dead_code)] | ||
|
||
const LOW_RANGE: char = '0'; | ||
const HIGH_RANGE: char = '9'; | ||
|
||
fn main() { | ||
match '5' { | ||
LOW_RANGE...HIGH_RANGE => (), | ||
_ => () | ||
}; | ||
} |
d23d633
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from alexcrichton
at https://github.com/jakub-/rust/commit/d23d633eb843078551f382fc729e5d20f62b9c87
d23d633
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging jakub-/rust/issue-18464 = d23d633 into auto
d23d633
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jakub-/rust/issue-18464 = d23d633 merged ok, testing candidate = 3d8b29c
d23d633
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some tests failed:
failure: http://buildbot.rust-lang.org/builders/auto-win-64-nopt-t/builds/564
exception: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/2079
exception: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/2078
exception: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/2071
exception: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/2078
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/2072
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/2071
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/2071
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/2075
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/2068
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/2067
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/2071
exception: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/1729
exception: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/1723
exception: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/1731
exception: http://buildbot.rust-lang.org/builders/auto-win-64-opt/builds/568
exception: http://buildbot.rust-lang.org/builders/auto-win-64-nopt-c/builds/557
d23d633
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from alexcrichton
at https://github.com/jakub-/rust/commit/d23d633eb843078551f382fc729e5d20f62b9c87
d23d633
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging jakub-/rust/issue-18464 = d23d633 into auto
d23d633
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jakub-/rust/issue-18464 = d23d633 merged ok, testing candidate = 2707adf1
d23d633
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some tests failed:
failure: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/2080
exception: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/2081
exception: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/2073
exception: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/2080
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/2074
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/2073
exception: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/2073
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/2077
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/2070
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/2069
exception: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/2073
exception: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/1731
exception: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/1725
exception: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/1733
exception: http://buildbot.rust-lang.org/builders/auto-win-64-opt/builds/570
exception: http://buildbot.rust-lang.org/builders/auto-win-64-nopt-t/builds/566
exception: http://buildbot.rust-lang.org/builders/auto-win-64-nopt-c/builds/559