Skip to content

Commit 04d758d

Browse files
committed
---
yaml --- r: 145660 b: refs/heads/try2 c: 155857f h: refs/heads/master v: v3
1 parent 7a4c7d3 commit 04d758d

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
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 8d6f4c207a5a9cf8721d4cd2c884390eb3d5e61f
8+
refs/heads/try2: 155857f5488f2b6ca04c3abe6ac22833028c1497
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/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/try2/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/try2/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)