Skip to content

Commit d287aa8

Browse files
committed
---
yaml --- r: 81271 b: refs/heads/snap-stage3 c: 155857f h: refs/heads/master i: 81269: 3251639 81267: f0ded26 81263: bdf8f47 v: v3
1 parent 344ed47 commit d287aa8

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 4c6bf4872012c010f84dc7fa2cdfe87522533f89
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 8d6f4c207a5a9cf8721d4cd2c884390eb3d5e61f
4+
refs/heads/snap-stage3: 155857f5488f2b6ca04c3abe6ac22833028c1497
55
refs/heads/try: 70152ff55722878cde684ee6462c14c65f2c4729
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/librustc/middle/check_match.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ pub fn check_arms(cx: &MatchCheckCtxt, arms: &[Arm]) {
137137

138138
// Lint for constants that look like binding identifiers (#7526)
139139
let pat_matches_non_uppercase_static: &fn(@Pat) = |p| {
140-
let msg = "static constant in pattern should have an uppercase identifier";
140+
let msg = "static constant in pattern should be all caps";
141141
match (&p.node, cx.tcx.def_map.find(&p.id)) {
142142
(&PatIdent(_, ref path, _), Some(&DefStatic(_, false))) => {
143143
// last identifier alone is right choice for this lint.

branches/snap-stage3/src/librustc/middle/lint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ static lint_table: &'static [(&'static str, LintSpec)] = &[
213213
("non_uppercase_pattern_statics",
214214
LintSpec {
215215
lint: non_uppercase_pattern_statics,
216-
desc: "static constants in match patterns should be uppercased",
216+
desc: "static constants in match patterns should be all caps",
217217
default: warn
218218
}),
219219

branches/snap-stage3/src/test/compile-fail/match-static-const-lc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub static a : int = 97;
1717
fn f() {
1818
let r = match (0,0) {
1919
(0, a) => 0,
20-
//~^ ERROR static constant in pattern should have an uppercase id
20+
//~^ ERROR static constant in pattern should be all caps
2121
(x, y) => 1 + x + y,
2222
};
2323
assert!(r == 1);
@@ -31,7 +31,7 @@ fn g() {
3131
use m::aha;
3232
let r = match (0,0) {
3333
(0, aha) => 0,
34-
//~^ ERROR static constant in pattern should have an uppercase id
34+
//~^ ERROR static constant in pattern should be all caps
3535
(x, y) => 1 + x + y,
3636
};
3737
assert!(r == 1);

0 commit comments

Comments
 (0)