Skip to content

Commit 4c3c5ff

Browse files
committed
---
yaml --- r: 15710 b: refs/heads/try c: b12e275 h: refs/heads/master v: v3
1 parent c7107cb commit 4c3c5ff

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: c2382f9ebf1ad668df7624955268f4485068449a
5+
refs/heads/try: b12e27595e35bd838b20011ff9fbb84e4680c46f
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/rustc/middle/resolve.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,8 +514,8 @@ fn resolve_names(e: @env, c: @ast::crate) {
514514
e.def_map.insert(pat.id, fnd);
515515
}
516516
some(fnd@ast::def_const(_)) {
517-
e.sess.span_err(p.span, "Sorry, rebinding or matching \
518-
against symbolic constants is not allowed.");
517+
e.sess.span_err(p.span, "pattern variable conflicts \
518+
with constant '" + path_to_ident(p) + "'");
519519
}
520520
// Binds a var -- nothing needs to be done
521521
_ {}

branches/try/src/test/compile-fail/issue-1193.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// error-pattern: Sorry, rebinding or matching against symbolic
1+
// error-pattern: pattern variable conflicts
22
mod foo {
33
type t = u8;
44

0 commit comments

Comments
 (0)